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:
parent
7a773696dc
commit
317ae72c47
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue