From e08253a3f7691ccf4d36c42cd8363c16765203f1 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 18 Apr 2010 03:05:27 +0800 Subject: nat: Clear the connection on a DLCX We can forget about the timeslot/multiplex when getting the DLCX. This way we make room for the next connection that might need to reuse this address. --- openbsc/src/nat/bsc_mgcp_utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc') diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c index abfadb8b4..0e34e6885 100644 --- a/openbsc/src/nat/bsc_mgcp_utils.c +++ b/openbsc/src/nat/bsc_mgcp_utils.c @@ -178,6 +178,7 @@ int bsc_mgcp_policy_cb(struct mgcp_config *cfg, int endpoint, int state, const c } } else if (state == MGCP_ENDP_DLCX) { /* we will free the endpoint now in case the BSS does not respond */ + bsc_mgcp_clear(sccp); bsc_endp->pending_delete = 1; mgcp_free_endp(mgcp_endp); } -- cgit v1.2.3