diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-22 20:57:08 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-23 15:25:35 +0100 |
commit | 7176030e02ca59d5b4ee015f24ee2bf733eeed8e (patch) | |
tree | eed6a2bb6bd74d365a09e77cbdc875bfcac689ed /src/ss7_application.c | |
parent | 2917644d503b706f0df5cf7228fc284a79436e31 (diff) |
vty: Add all mighty new vty interface for osmo-stp
This new interface allows to have multiple linksets, msc
connections and ways to connect those in one instance of
the osmo-stp. Forbid to reset linksets without an app.
Diffstat (limited to 'src/ss7_application.c')
-rw-r--r-- | src/ss7_application.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ss7_application.c b/src/ss7_application.c index b3c9036..485aa2e 100644 --- a/src/ss7_application.c +++ b/src/ss7_application.c @@ -213,6 +213,7 @@ static int ss7_app_setup_stp(struct ss7_application *app, app->type = APP_STP; app->bsc->m2ua_trans->started = 1; + app->route_is_set = 1; return 0; } @@ -287,6 +288,7 @@ static int ss7_app_setup_relay(struct ss7_application *app, int type, app->route_dst.msc = msc; app->type = type; + app->route_is_set = 1; return 0; } @@ -338,6 +340,12 @@ static void start_set(struct ss7_application *app, struct mtp_link_set *set) int ss7_application_start(struct ss7_application *app) { + if (!app->route_is_set) { + LOGP(DINP, LOGL_ERROR, + "The routes are not configured on app %d.\n", app->nr); + return -1; + } + start_set(app, app->route_src.set); start_set(app, app->route_dst.set); |