mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
voice_client: sip: qualifyfreq: New option
This commit is contained in:
parent
32423fabf8
commit
9e3ea79880
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue