mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-01 20:43:47 +00:00
nat: When we fail to reallocate... also close down the MGCP part
Give the BSC a chanche to close down MGCP ports as well.
This commit is contained in:
@@ -98,6 +98,7 @@ int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc
|
|||||||
if (assign_src_local_reference(&conn->patched_ref, bsc->nat) != 0) {
|
if (assign_src_local_reference(&conn->patched_ref, bsc->nat) != 0) {
|
||||||
LOGP(DNAT, LOGL_ERROR, "BSC %d reused src ref: %d and we failed to generate a new id.\n",
|
LOGP(DNAT, LOGL_ERROR, "BSC %d reused src ref: %d and we failed to generate a new id.\n",
|
||||||
bsc->cfg->nr, sccp_src_ref_to_int(parsed->src_local_ref));
|
bsc->cfg->nr, sccp_src_ref_to_int(parsed->src_local_ref));
|
||||||
|
bsc_mgcp_dlcx(conn);
|
||||||
llist_del(&conn->list_entry);
|
llist_del(&conn->list_entry);
|
||||||
talloc_free(conn);
|
talloc_free(conn);
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user