diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-11 14:19:03 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-16 12:45:58 +0100 |
commit | e833478898850aad99fe5b9b1efee34e6ec1ca64 (patch) | |
tree | 6ed239d42901811cbccd70a115dcacb9c64d34e2 /src/main_stp.c | |
parent | a9530059a1ecab57a0ebe362ad8b8f3353e3f7b2 (diff) |
isup: Hook the reset scanner before we forward the ISUP message1.3.0
Scan for two kind of reset messages in the ISUP messages. Forward
them to the mgcp_ss7.
Diffstat (limited to 'src/main_stp.c')
-rw-r--r-- | src/main_stp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main_stp.c b/src/main_stp.c index fd20eb3..11f6255 100644 --- a/src/main_stp.c +++ b/src/main_stp.c @@ -70,6 +70,12 @@ struct bsc_data *bsc; extern void cell_vty_init(void); extern void handle_options(int argc, char **argv); +static void mgcp_destroy_cb(struct mgcp_callagent *agent, struct msgb *msg) +{ + /* we do not care about potential responses here */ + msgb_free(msg); +} + static struct mtp_link_set *find_link_set(struct bsc_data *bsc, int len, const char *buf) { @@ -261,6 +267,13 @@ int main(int argc, char **argv) return -1; } + if (mgcp_create_port(&bsc->mgcp_agent) != 0) { + LOGP(DINP, LOGL_ERROR, + "Failed to create the MGCP call agent.\n"); + return -1; + } + bsc->mgcp_agent.read_cb = mgcp_destroy_cb; + /* start all apps */ llist_for_each_entry(app, &bsc->apps, entry) { LOGP(DINP, LOGL_NOTICE, |