diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-19 20:29:30 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-20 17:35:47 +0100 |
commit | 7f71d99cc3f8bface8eda3004ae51c26ce9bb698 (patch) | |
tree | c5e969e657c4769c5b6cda1985caabe6decb20fd /openbsc/src/bssap.c | |
parent | b92167cf80a7d1d8b562c1cfac1b1fcd85abee97 (diff) |
[bsc] Add a rtp base port to the BSC config too
Stop having a global variable... keep it in the
gsm network or the mgcp
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r-- | openbsc/src/bssap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index f97a17107..874400fd1 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -440,7 +440,8 @@ static int bssmap_handle_assignm_req(struct sccp_connection *conn, /* the mgcp call agent starts counting at one. a bit of a weird mapping */ if (multiplex == 0) multiplex = 1; - msc_data->rtp_port = rtp_calculate_port(multiplex, rtp_base_port); + msc_data->rtp_port = rtp_calculate_port(multiplex, + network->rtp_base_port); DEBUGP(DMSC, "Sending ChanModify for speech on: sccp: %p mode: 0x%x on 0x%x port: %u\n", conn, chan_mode, multiplex, msc_data->rtp_port); if (chan_mode == GSM48_CMODE_SPEECH_AMR) { |