diff --git a/include/osmocom/mgcp/Makefile.am b/include/osmocom/mgcp/Makefile.am index 60f29c6f9..15ff01a53 100644 --- a/include/osmocom/mgcp/Makefile.am +++ b/include/osmocom/mgcp/Makefile.am @@ -6,7 +6,6 @@ noinst_HEADERS = \ mgcp_endp.h \ mgcp_sdp.h \ mgcp_codec.h \ - mgcp_ctrl.h \ mgcp_trunk.h \ debug.h \ mgcp_ratectr.h \ diff --git a/include/osmocom/mgcp/mgcp_ctrl.h b/include/osmocom/mgcp/mgcp_ctrl.h deleted file mode 100644 index d7ab7cbcb..000000000 --- a/include/osmocom/mgcp/mgcp_ctrl.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * (C) 2020 by Harald Welte - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ - -#pragma once - -struct ctrl_handle *mgw_ctrl_interface_setup(struct mgcp_config *cfg, - const char *bind_addr, uint16_t port); - diff --git a/src/libosmo-mgcp/Makefile.am b/src/libosmo-mgcp/Makefile.am index de42c0e9b..309ae3f23 100644 --- a/src/libosmo-mgcp/Makefile.am +++ b/src/libosmo-mgcp/Makefile.am @@ -45,7 +45,6 @@ libosmo_mgcp_a_SOURCES = \ mgcp_stat.c \ mgcp_endp.c \ mgcp_trunk.c \ - mgcp_ctrl.c \ mgcp_ratectr.c \ mgcp_e1.c \ mgcp_iuup.c \ diff --git a/src/libosmo-mgcp/mgcp_ctrl.c b/src/libosmo-mgcp/mgcp_ctrl.c deleted file mode 100644 index 0ba231b73..000000000 --- a/src/libosmo-mgcp/mgcp_ctrl.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * (C) 2020 by Harald Welte - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ - -#include -#include - - -static int mgw_ctrl_node_lookup(void *data, vector vline, int *node_type, - void **node_data, int *i) -{ - return 0; -} - - -struct ctrl_handle *mgw_ctrl_interface_setup(struct mgcp_config *cfg, - const char *bind_addr, uint16_t port) -{ - return ctrl_interface_setup_dynip2(cfg, bind_addr, port, mgw_ctrl_node_lookup, - _LAST_CTRL_NODE); -} diff --git a/src/osmo-mgw/mgw_main.c b/src/osmo-mgw/mgw_main.c index 7a76210b4..cd9d75d38 100644 --- a/src/osmo-mgw/mgw_main.c +++ b/src/osmo-mgw/mgw_main.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include @@ -51,7 +50,7 @@ #include #include #include - +#include #include #include @@ -366,7 +365,7 @@ int main(int argc, char **argv) if (rc < 0) return rc; - cfg->ctrl = mgw_ctrl_interface_setup(cfg, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_MGW); + cfg->ctrl = ctrl_interface_setup(cfg, OSMO_CTRL_PORT_MGW, NULL); if (!cfg->ctrl) { fprintf(stderr, "Failed to init the control interface on %s:%u. Exiting\n", ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_MGW);