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.
This commit is contained in:
Holger Hans Peter Freyther 2010-04-18 03:05:27 +08:00
parent 7a773696dc
commit 317ae72c47
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}