Skip to content

Commit

Permalink
Merge pull request #286 from nethesis/fix_snom_outbound_proxy
Browse files Browse the repository at this point in the history
Fix SNOM outbound proxy setting
  • Loading branch information
Amygos authored Jan 29, 2024
2 parents e74a216 + ea58439 commit 7eb565d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/templates/snom.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
<user_pass idx="{{ identity }}" perm="">{{ _context['account_password_' ~ identity] }}</user_pass>
<user_host idx="{{ identity }}" perm="">{{ hostname }}</user_host>
<user_outbound idx="{{ identity }}" perm="">
{{- hostname ~ ':'
{{- (_context['outbound_proxy_' ~ identity] is defined and _context['outbound_proxy_' ~ identity] != '' ? _context['outbound_proxy_' ~ identity] : hostname) ~ ':'
~ (_context['account_encryption_' ~ identity] ? sip_tls_port : sip_udp_port) ~ ';transport='
~ (_context['account_encryption_' ~ identity] ? 'tls' : 'udp')
-}}
Expand Down
2 changes: 1 addition & 1 deletion data/templates/snomD8XX.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<user_pass idx="{{ identity }}" perm="">{{ _context['account_password_' ~ identity] }}</user_pass>
<user_host idx="{{ identity }}" perm="">{{ hostname }}</user_host>
<user_outbound idx="{{ identity }}" perm="">
{{- hostname ~ ':'
{{- (_context['outbound_proxy_' ~ identity] is defined and _context['outbound_proxy_' ~ identity] != '' ? _context['outbound_proxy_' ~ identity] : hostname) ~ ':'
~ (_context['account_encryption_' ~ identity] ? sip_tls_port : sip_udp_port) ~ ';transport='
~ (_context['account_encryption_' ~ identity] ? 'tls' : 'udp')
-}}
Expand Down

0 comments on commit 7eb565d

Please sign in to comment.