aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/msc_ifaces.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-12 11:43:44 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-18 17:50:09 +0200
commit778e14a51e28294e2e4f4c869c01ec177713c263 (patch)
treed29936f2419523d59b2404bd9595d3f842d78a9f /openbsc/src/libmsc/msc_ifaces.c
parent7a36bbad99e4cdbd5c081a5db62663aca3aee191 (diff)
Revert "mgcp: make sure all endpoints are closed on startup"
Clearing all endpoints by sending a DLCX on startup has ben found to be a bit too offensive. It also will not help against inconsitancies that may occour during runtime (e.g. an overheard DLCX during regular call teardown). This reverts commit b669ea94cb78fd9b56ee8dd9392538151349f8ba.
Diffstat (limited to 'openbsc/src/libmsc/msc_ifaces.c')
-rw-r--r--openbsc/src/libmsc/msc_ifaces.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/openbsc/src/libmsc/msc_ifaces.c b/openbsc/src/libmsc/msc_ifaces.c
index 5d019cf40..3dbe7c3e9 100644
--- a/openbsc/src/libmsc/msc_ifaces.c
+++ b/openbsc/src/libmsc/msc_ifaces.c
@@ -356,21 +356,3 @@ void msc_call_release(struct gsm_trans *trans)
/* Release endpoint id */
mgcpgw_client_release_endpoint(conn->iu.mgcp_rtp_endpoint, mgcp);
}
-
-void msc_call_release_all(struct mgcpgw_client *mgcp)
-{
- struct msgb *msg;
- unsigned int i;
-
- uint16_t first_endpoint = mgcp->actual.first_endpoint;
- uint16_t last_endpoint = mgcp->actual.last_endpoint;
-
- for (i = first_endpoint; i < last_endpoint; i++) {
- msg = mgcp_msg_dlcx(mgcp, i);
- if (mgcpgw_client_tx(mgcp, msg, NULL, NULL))
- LOGP(DMGCP, LOGL_ERROR,
- "Failed to send DLCX message for endpoint %u\n", i);
-
- mgcpgw_client_release_endpoint(i, mgcp);
- }
-}