Skip to content
Snippets Groups Projects
Commit b5469e16 authored by Wenpeng Song's avatar Wenpeng Song Committed by Yalu Zhang
Browse files

Codec Related modification

- Retrieve a codec list from a sip provider as the default cap for chan_voicemngr.
- For incoming requests, respond with only the first codec in the remote list that
  is also in the local list(remote_first) to increase stability.
parent 31e06838
No related branches found
No related tags found
1 merge request!73Codec Related modification
......@@ -47,6 +47,8 @@ dialoutmsec=|DIALOUTMSEC|
; Inter-digit timer open
interdigitopenmsec=|INTERDIGITOPENMSEC|
codeclist = |CODEC_LIST|
; Comfort Noise Generation
; 0 = CNG off
; 1 = White noise
......
......@@ -8,6 +8,7 @@ from_domain = |DOMAIN|
disallow = all
|ALLOW|
outgoing_call_offer_pref = local_merge
incoming_call_offer_pref = remote_first
outbound_auth = |NAME|
aors = |NAME|
transport = transport-|TRANSPORT|
......
......@@ -1574,17 +1574,32 @@ configure_tel_options() {
sed -i "s/|PACKET_LOSS_CONCEALMENT|/yes/" $WORK_DIR/codecs.conf
fi
if [ "$flash_spec" == "etsi" ]; then
sed -i "s/|FLASH_SPEC|/etsi/" $WORK_DIR/chan_telephony.conf
else
sed -i "s/|FLASH_SPEC|/uk/" $WORK_DIR/chan_telephony.conf
fi
if [ "$flash_spec" == "etsi" ]; then
sed -i "s/|FLASH_SPEC|/etsi/" $WORK_DIR/chan_telephony.conf
else
sed -i "s/|FLASH_SPEC|/uk/" $WORK_DIR/chan_telephony.conf
fi
local codec_list
local codec
local codec_to_list=""
config_get codec_list sip0 "codecs"
if [ -z "$codec_list" ] ; then
codec_to_list="alaw,ulaw\\n"
fi
for codec in $codec_list; do
[ -z "$codec" ] && continue
codec_to_list=$codec_to_list"$codec,"
done
sed -i "s/|CODEC_LIST|/$codec_to_list/" $WORK_DIR/chan_telephony.conf
if [ -n "$country" ]; then
sed -i "s/|LANGUAGE|/$country/" $WORK_DIR/chan_telephony.conf
else
sed -i "s/|LANGUAGE|/se/" $WORK_DIR/chan_telephony.conf
fi
}
configure_outgoingmap()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment