diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-16 22:55:28 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-20 17:35:46 +0100 |
commit | f97e48b0defeed17d54e4ba8d88a34f43de61919 (patch) | |
tree | 651ddf6d12e3aed587b2d90d0d7ce5a72bc3540c /openbsc/src/bssap.c | |
parent | 761600b0fddb77a220aabf1ae42f5bc5887f3c16 (diff) |
[bssap] Send multirate config for HR AMR with 5.9k
Send a hardcoded multirate config when usin the
AMR codec. This should be more configurable in
the future.
Diffstat (limited to 'openbsc/src/bssap.c')
-rw-r--r-- | openbsc/src/bssap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/bssap.c b/openbsc/src/bssap.c index 8941bab21..7d14175ba 100644 --- a/openbsc/src/bssap.c +++ b/openbsc/src/bssap.c @@ -439,6 +439,12 @@ static int bssmap_handle_assignm_req(struct sccp_connection *conn, msc_data->rtp_port = rtp_calculate_port(multiplex, rtp_base_port); DEBUGP(DMSC, "Sending ChanModify for speech on: sccp: %p mode: 0x%x\n", conn, chan_mode); + if (chan_mode == GSM48_CMODE_SPEECH_AMR) { + msg->lchan->mr_conf.ver = 1; + msg->lchan->mr_conf.icmi = 1; + msg->lchan->mr_conf.m5_90 = 1; + } + return gsm48_lchan_modify(msg->lchan, chan_mode); reject: |