From f97e48b0defeed17d54e4ba8d88a34f43de61919 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 16 Nov 2009 22:55:28 +0100 Subject: [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. --- openbsc/src/bssap.c | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- cgit v1.2.3