path: root/openbsc/src/osmo-msc/msc_main.c
diff options
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-08 15:36:14 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-18 17:50:09 +0200
commit9b5dee4e33fc432898ecfe490e28e0748dea83c9 (patch)
tree098cd84bbf8f852771da551a32acdd35cb142095 /openbsc/src/osmo-msc/msc_main.c
parent21521acd3f9147db01fde7729181c26769efdc77 (diff)
mgcp: make sure all endpoints are closed on startup
If the MSC is crashing and restarting, it may leave some endpoints open. The endpoints can not be re-used until they are deleted (DLCX). This patch sends a DLCX to all possible endpoints (usually this is in a countable range) in order to clear possible open endpoints from a previous run
Diffstat (limited to 'openbsc/src/osmo-msc/msc_main.c')
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/osmo-msc/msc_main.c b/openbsc/src/osmo-msc/msc_main.c
index 83d8fa4aa..4319b84e2 100644
--- a/openbsc/src/osmo-msc/msc_main.c
+++ b/openbsc/src/osmo-msc/msc_main.c
@@ -496,6 +496,10 @@ TODO: we probably want some of the _net_ ctrl commands from bsc_base_ctrl_cmds_i
return 7;
+ /* Make sure all mgcp endpoints are cleared */
+ msc_call_release_all(msc_network->mgcpgw.client);
/* Set up A-Interface */
/* TODO: implement A-Interface and remove above legacy stuff. */