aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmsc
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-12 11:43:44 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-07-12 23:42:46 +0200
commit62afc1467a4de533370c9592abaa956d77c40665 (patch)
tree2cdab69fc5b7eab6a7db97a3fdd3cd89116d2794 /src/libmsc
parent1b312c97955aafe62eb4d9f316c1b3f84f41a23d (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. Change-Id: Ia3bd8bfe9a09e300cf11629f7d7e3012ca8f394d
Diffstat (limited to 'src/libmsc')
-rw-r--r--src/libmsc/msc_ifaces.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libmsc/msc_ifaces.c b/src/libmsc/msc_ifaces.c
index 5d019cf40..3dbe7c3e9 100644
--- a/src/libmsc/msc_ifaces.c
+++ b/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);
- }
-}