aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_nat_sccp.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-28 16:08:39 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-29 16:35:24 +0800
commitf4b343920668280b39ddb95209f6ab0ceccab630 (patch)
tree20244d3e611e6ff966c9cb4ab2879943c39c2bc4 /openbsc/include/openbsc/bsc_nat_sccp.h
parent591003328dac804592c8a5dc749d93d5e0be4347 (diff)
nat: Make the code work in terms of endpoints instead of timeslot/multiplex
We are going to have more than one trunk, so all code hardcoding the multiplex to zero must go. Avoid this kind of problem by saving the MGCP endpoint number and comparing that.
Diffstat (limited to 'openbsc/include/openbsc/bsc_nat_sccp.h')
-rw-r--r--openbsc/include/openbsc/bsc_nat_sccp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/bsc_nat_sccp.h b/openbsc/include/openbsc/bsc_nat_sccp.h
index 73e9c690c..fcfd23beb 100644
--- a/openbsc/include/openbsc/bsc_nat_sccp.h
+++ b/openbsc/include/openbsc/bsc_nat_sccp.h
@@ -79,10 +79,13 @@ struct sccp_connections {
int con_type;
int con_local;
- /* GSM audio handling. That is 32 * multiplex + ts */
+ /*
+ * audio handling. Remember if we have ever send a CRCX,
+ * remember the endpoint used by the MSC and BSC.
+ */
int crcx;
- int msc_timeslot;
- int bsc_timeslot;
+ int msc_endp;
+ int bsc_endp;
/* timeout handling */
struct timespec creation_time;