aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 03:05:27 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 03:05:27 +0800
commite08253a3f7691ccf4d36c42cd8363c16765203f1 (patch)
tree0b9af9e1a58c0807ed9847e5bff7aaf9e4bdcedb /openbsc
parent5e860953643f5adc884e2e4f681802765098cb4e (diff)
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.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c1
1 files changed, 1 insertions, 0 deletions
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);
}