Commit 82ae2b8b authored by Yalu Zhang's avatar Yalu Zhang

Asterisk: removed unused config parameters

parent f79d70d2
......@@ -32,14 +32,7 @@ bindport=|BINDPORT|
externhost=|EXTERNHOST|
dtmfmode=|DTMFMODE|
registertimeout=|REGISTERTIMEOUT|
registertimeoutguardsecs=|REGISTERTIMEOUTGUARDSECS|
registertimeoutguardlimit=|REGISTERTIMEOUTGUARDLIMIT|
registertimeoutguardpct=|REGISTERTIMEOUTGUARDPCT|
registerattempts=|REGISTERATTEMPTS|
registertimeoutbackoff=|REGISTERTIMEOUTBACKOFF|
registerattemptsbackoff=|REGISTERATTEMPTSBACKOFF|
register403timeout=|REGISTER403TIMEOUT|
register503timeout=|REGISTER503TIMEOUT|
remotehold=|REMOTEHOLD|
; Differentiated Services settings. See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for a description of these parameters.
......
......@@ -100,14 +100,6 @@ config sip_advanced 'sip_options'
option rtpend '20000'
option dtmfmode 'rfc2833'
option remotehold 'yes'
option contact_line_suffix '1'
option registertimeoutbackoff '512'
option registerattemptsbackoff '0'
option register403timeout '0'
option register503timeout '0'
option registertimeoutguardsecs '15'
option registertimeoutguardlimit '30'
option registertimeoutguardpct '0.2'
option defaultexpiry '300'
option tls_version 'sslv2'
option tls_cipher 'ALL'
......@@ -122,7 +114,6 @@ config tel_advanced 'tel_options'
option jbforce 'no'
option jbmaxsize '500'
option jbimpl 'adaptive'
option genericplc 'yes'
option dialoutmsec '4000'
option cw_enable 'yes'
option echo_cancel '1'
......@@ -133,7 +124,6 @@ config advanced_features 'call_features'
option callwaiting_enabled '1'
option redial_enabled '1'
option callreturn_enabled '1'
option advanced_register_settings '1'
config log 'log_options'
option console 'notice,warning,error'
......
......@@ -116,8 +116,6 @@ configure_sip() {
local defaultexpiry
local registertimeout
local registerattempts
local registertimeoutbackoff
local registerattemptsbackoff
local remotehold
local tos_sip
local tos_audio
......@@ -129,9 +127,6 @@ configure_sip() {
local dnsmgr
local dnsmgr_refresh_interval
local srvlookup
local registertimeoutguardsecs
local registertimeoutguardlimit
local registertimeoutguardpct
config_get useragent $1 useragent
config_get externhost $1 externhost
......@@ -145,10 +140,6 @@ configure_sip() {
config_get defaultexpiry $1 defaultexpiry
config_get registertimeout $1 registertimeout
config_get registerattempts $1 registerattempts
config_get registertimeoutbackoff $1 registertimeoutbackoff
config_get registerattemptsbackoff $1 registerattemptsbackoff
config_get register403timeout $1 register403timeout
config_get register503timeout $1 register503timeout
config_get remotehold $1 remotehold
config_get tos_sip $1 tos_sip
config_get tos_audio $1 tos_audio
......@@ -162,9 +153,6 @@ configure_sip() {
config_get dnsmgr $1 dnsmgr
config_get dnsmgr_refresh_interval $1 dnsmgr_refresh_interval
config_get srvlookup $1 srvlookup
config_get registertimeoutguardsecs $1 registertimeoutguardsecs
config_get registertimeoutguardlimit $1 registertimeoutguardlimit
config_get registertimeoutguardpct $1 registertimeoutguardpct
[ -z "$useragent" ] && useragent="$USERAGENT"
......@@ -201,23 +189,6 @@ configure_sip() {
sed -i "s/|REGISTERTIMEOUT|/$registertimeout/g" $WORK_DIR/sip.conf
fi
if [ -z "$registertimeoutguardsecs" ] ; then
sed -i "s/registertimeoutguardsecs=|REGISTERTIMEOUTGUARDSECS|/;registertimeoutguardsecs=/g" $WORK_DIR/sip.conf
else
sed -i "s/|REGISTERTIMEOUTGUARDSECS|/$registertimeoutguardsecs/g" $WORK_DIR/sip.conf
fi
if [ -z "$registertimeoutguardlimit" ] ; then
sed -i "s/registertimeoutguardlimit=|REGISTERTIMEOUTGUARDLIMIT|/;registertimeoutguardlimit=/g" $WORK_DIR/sip.conf
else
sed -i "s/|REGISTERTIMEOUTGUARDLIMIT|/$registertimeoutguardlimit/g" $WORK_DIR/sip.conf
fi
if [ -z "$registertimeoutguardpct" ] ; then
sed -i "s/registertimeoutguardpct=|REGISTERTIMEOUTGUARDPCT|/;registertimeoutguardpct=/g" $WORK_DIR/sip.conf
else
sed -i "s/|REGISTERTIMEOUTGUARDPCT|/$registertimeoutguardpct/g" $WORK_DIR/sip.conf
fi
if [ -z "$registerattempts" ] ; then
sed -i "s/registerattempts=|REGISTERATTEMPTS|/;registerattempts=/g" $WORK_DIR/sip.conf
......@@ -225,30 +196,6 @@ configure_sip() {
sed -i "s/|REGISTERATTEMPTS|/$registerattempts/g" $WORK_DIR/sip.conf
fi
if [ -z "$registertimeoutbackoff" ] ; then
sed -i "s/registertimeoutbackoff=|REGISTERTIMEOUTBACKOFF|/;registertimeoutbackoff=/g" $WORK_DIR/sip.conf
else
sed -i "s/|REGISTERTIMEOUTBACKOFF|/$registertimeoutbackoff/g" $WORK_DIR/sip.conf
fi
if [ -z "$registerattemptsbackoff" ] ; then
sed -i "s/registerattemptsbackoff=|REGISTERATTEMPTSBACKOFF|/;registerattemptsbackoff=/g" $WORK_DIR/sip.conf
else
sed -i "s/|REGISTERATTEMPTSBACKOFF|/$registerattemptsbackoff/g" $WORK_DIR/sip.conf
fi
if [ -z "$register403timeout" ] ; then
sed -i "s/register403timeout=|REGISTER403TIMEOUT|/;register403timeout=/g" $WORK_DIR/sip.conf
else
sed -i "s/|REGISTER403TIMEOUT|/$register403timeout/g" $WORK_DIR/sip.conf
fi
if [ -z "$register503timeout" ] ; then
sed -i "s/register503timeout=|REGISTER503TIMEOUT|/;register503timeout=/g" $WORK_DIR/sip.conf
else
sed -i "s/|REGISTER503TIMEOUT|/$register503timeout/g" $WORK_DIR/sip.conf
fi
if [ -z "$remotehold" ] ; then
sed -i "s/remotehold=|REMOTEHOLD|/;remotehold=/g" $WORK_DIR/sip.conf
else
......@@ -1393,12 +1340,6 @@ configure_sip_user_extension() {
echo "exten => $extension,n(endcall),Hangup()" >> $WORK_DIR/extensions_local
}
configure_codecs() {
local genericplc
config_get genericplc tel_options genericplc
sed -i "s/|PLC|/$genericplc/" $WORK_DIR/codecs.conf
}
# Configure default settings for chan_telephony.conf
configure_tel() {
local jbenable
......@@ -1723,7 +1664,7 @@ create_temp_files() {
file=$WORK_DIR/codecs.conf
echo "[plc]" > $file
echo "genericplc = |PLC| ;Enables packet loss concealment [yes/no]" >> $file
echo "genericplc = yes ;Enables packet loss concealment [yes/no]" >> $file
file=$WORK_DIR/res_stun_monitor.conf
echo "[general]" > $file
......@@ -1787,8 +1728,6 @@ generate_asterisk_config_files() {
config_foreach configure_tel_line tel_line
config_foreach configure_tel_line_extension tel_line
config_foreach create_extensions_dialtone tel_line
echo "Configuring codecs"
configure_codecs
# Voicemai
echo "Configuring voice mail"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment