diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-18 03:05:27 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-15 20:24:15 +0800 |
commit | 317ae72c47c097d24a98e65511fd8b1f35a11be6 (patch) | |
tree | a074423c40bd56d8363d51335ab4ba4f202e4304 /openbsc/src/nat/bsc_mgcp_utils.c | |
parent | 7a773696dcd6ac47b1e7c92a6fbea47f55e687c1 (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/src/nat/bsc_mgcp_utils.c')
-rw-r--r-- | openbsc/src/nat/bsc_mgcp_utils.c | 1 |
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); } |