Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openwrt-telephony
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feed
openwrt-telephony
Commits
08a4b5e4
Commit
08a4b5e4
authored
2 years ago
by
Yalu Zhang
Browse files
Options
Downloads
Patches
Plain Diff
Asterisk: Remove unused parameter host from config_asterisk.sh
Also correct some indentations.
parent
8db7ad7d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
net/asterisk/files/iopsys/lib/voice/config_asterisk.sh
+8
-10
8 additions, 10 deletions
net/asterisk/files/iopsys/lib/voice/config_asterisk.sh
with
8 additions
and
10 deletions
net/asterisk/files/iopsys/lib/voice/config_asterisk.sh
+
8
−
10
View file @
08a4b5e4
...
...
@@ -250,7 +250,6 @@ configure_sip_provider() {
local
outbound_proxy
local
outbound_proxy_port
local
domain
local
host
local
user
local
authuser
local
secret
...
...
@@ -271,7 +270,6 @@ configure_sip_provider() {
config_get outbound_proxy
$1
outbound_proxy
""
config_get outbound_proxy_port
$1
outbound_proxy_port
""
config_get domain
$1
domain
""
config_get host
$1
host
"
$domain
"
config_get user
$1
user
config_get authuser
$1
authuser
config_get secret
$1
secret
...
...
@@ -279,13 +277,14 @@ configure_sip_provider() {
config_get transport
$1
transport
"udp"
config_get encryption
$1
encryption
"no"
config_get mediasec
$1
mediasec
"0"
config_get realm
$1
realm
""
config_get dtmf_mode
$1
dtmf_mode
"rfc4733"
config_get tos_audio
$1
tos_audio
config_get tos_video
$1
tos_video
config_get defaultexpiry
$1
defaultexpiry
config_get registertimeout
$1
registertimeout
config_get registerattempts
$1
registerattempts
config_get realm
$1
realm
""
config_get dtmf_mode
$1
dtmf_mode
"rfc4733"
config_get tos_audio
$1
tos_audio
config_get tos_video
$1
tos_video
config_get defaultexpiry
$1
defaultexpiry
config_get registertimeout
$1
registertimeout
config_get registerattempts
$1
registerattempts
# This is a hack to fix security issue #14962
user
=
${
user
//
"'"
/
}
authuser
=
${
authuser
//
"'"
/
}
...
...
@@ -306,7 +305,6 @@ configure_sip_provider() {
elif
[
"
$transport
"
==
"tls"
]
;
then
port
=
5061
;
fi
else
server_uri
=
$outbound_proxy
;
if
[
-z
"
$outbound_proxy_port
"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment