aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgcp_ss7.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mgcp_ss7.c')
-rw-r--r--src/mgcp_ss7.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c
index dcc3aa1..f9e5682 100644
--- a/src/mgcp_ss7.c
+++ b/src/mgcp_ss7.c
@@ -32,6 +32,7 @@
#include <osmocom/vty/command.h>
#include <osmocom/vty/vty.h>
+#include <osmocom/vty/telnet_interface.h>
/* uniporte includes */
#ifndef NO_UNIPORTE
@@ -765,6 +766,7 @@ static void handle_options(int argc, char **argv)
int main(int argc, char **argv)
{
struct mgcp_ss7 *mgcp;
+ int rc;
log_init(&log_info);
stderr_target = log_target_create_stderr();
@@ -789,6 +791,10 @@ int main(int argc, char **argv)
return -1;
}
+ rc = telnet_init(NULL, NULL, 4243);
+ if (rc < 0)
+ return rc;
+
printf("Creating MGCP MGW with endpoints: %d ip: %s mgw: %s rtp-base: %d payload: %d\n",
number_endpoints, local_ip, mgw_ip, base_port, payload);