Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Feed
iopsys
Commits
9e3ea798
Commit
9e3ea798
authored
Feb 23, 2016
by
Patrik Stridvall
Browse files
voice_client: sip: qualifyfreq: New option
parent
32423fab
Changes
2
Hide whitespace changes
Inline
Side-by-side
voice-client/files/etc/asterisk_templates/sip.conf.TEMPLATE
View file @
9e3ea798
...
...
@@ -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
...
...
voice-client/files/etc/init.d/voice_client
View file @
9e3ea798
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment