aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_stp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_stp.c')
-rw-r--r--src/main_stp.c13
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,