aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-28 14:56:00 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-29 16:35:24 +0800
commit591003328dac804592c8a5dc749d93d5e0be4347 (patch)
tree56ac3b3e723299359245ef54339a0802f76f8a97 /openbsc
parent82049d81413c23f08e7a5418f30676001e1a4588 (diff)
nat: Use the bsc_timeslot when talking to the BSC downstream
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 067df0ed..e3258f02 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -156,9 +156,10 @@ void bsc_mgcp_dlcx(struct sccp_connections *con)
{
/* send a DLCX down the stream */
if (con->bsc_timeslot != -1 && con->crcx) {
- int endp = mgcp_timeslot_to_endpoint(0, con->msc_timeslot);
- bsc_mgcp_send_dlcx(con->bsc, endp);
- bsc_mgcp_free_endpoint(con->bsc->nat, endp);
+ int bsc_endp = mgcp_timeslot_to_endpoint(0, con->bsc_timeslot);
+ int msc_endp = mgcp_timeslot_to_endpoint(0, con->msc_timeslot);
+ bsc_mgcp_send_dlcx(con->bsc, bsc_endp);
+ bsc_mgcp_free_endpoint(con->bsc->nat, msc_endp);
}
bsc_mgcp_init(con);