aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 03:07:22 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 03:07:22 +0800
commitebb6b99c63f98d6cfba459ec54d00cb2ad94d4bd (patch)
tree17d5709b44714c1fd151676eb2109ab6eadcd146
parente08253a3f7691ccf4d36c42cd8363c16765203f1 (diff)
nat: Do not use 0/0 for mux/timeslot by default
0 is a valid timeslot and we should not use it... use a negative value to be save.
-rw-r--r--openbsc/src/nat/bsc_sccp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_sccp.c b/openbsc/src/nat/bsc_sccp.c
index 075a8f6a..59d0cd57 100644
--- a/openbsc/src/nat/bsc_sccp.c
+++ b/openbsc/src/nat/bsc_sccp.c
@@ -99,6 +99,7 @@ int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc
return -1;
}
+ bsc_mgcp_clear(conn);
llist_add_tail(&conn->list_entry, &bsc->nat->sccp_connections);
counter_inc(bsc->cfg->stats.sccp.conn);
counter_inc(bsc->cfg->nat->stats.sccp.conn);