From d76b53c00ee96d7d47e535ce0283c6379348009a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 12 May 2010 00:35:07 +0800 Subject: nat: When we fail to reallocate... also close down the MGCP part Give the BSC a chanche to close down MGCP ports as well. --- openbsc/src/nat/bsc_sccp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/src') diff --git a/openbsc/src/nat/bsc_sccp.c b/openbsc/src/nat/bsc_sccp.c index f9ddd64fb..f117ad186 100644 --- a/openbsc/src/nat/bsc_sccp.c +++ b/openbsc/src/nat/bsc_sccp.c @@ -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) { 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_mgcp_dlcx(conn); llist_del(&conn->list_entry); talloc_free(conn); return -1; -- cgit v1.2.3