Commit 9e3ea798 authored by Patrik Stridvall's avatar Patrik Stridvall
Browse files

voice_client: sip: qualifyfreq: New option

parent 32423fab
......@@ -6,7 +6,7 @@ bindaddr=0.0.0.0
srvlookup=|SRVLOOKUP|
maxexpiry=|MAXEXPIRY|
minexpiry=|MINEXPIRY|
qualifyfreq=55
qualifyfreq=|QUALIFYFREQ|
alwaysauthreject=yes
t1min=100
timert1=500
......
......@@ -349,6 +349,7 @@ configure_sip()
local minexpiry
local defaultexpiry
local maxexpiry
local qualifyfreq
local registertimeout
local registerattempts
local registertimeoutbackoff
......@@ -381,6 +382,7 @@ configure_sip()
config_get minexpiry $1 minexpiry
config_get defaultexpiry $1 defaultexpiry
config_get maxexpiry $1 maxexpiry
config_get qualifyfreq $1 qualifyfreq
config_get registertimeout $1 registertimeout
config_get registerattempts $1 registerattempts
config_get registertimeoutbackoff $1 registertimeoutbackoff
......@@ -446,6 +448,11 @@ configure_sip()
sed -i "s/|MAXEXPIRY|/$maxexpiry/g" $WORKDIR/sip.tmp
fi
if [ -z "$qualifyfreq" ] ; then
qualifyfreq=55
fi
sed -i "s/|QUALIFYFREQ|/$qualifyfreq/" $WORKDIR/sip.tmp
if [ -z "$registertimeout" ] ; then
sed -i "s/registertimeout=|REGISTERTIMEOUT|/;registertimeout=/g" $WORKDIR/sip.tmp
else
......
Supports Markdown
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