mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
[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.
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user