summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2010-07-16 10:00:58 +0000
committerOlle Johansson <oej@edvina.net>2010-07-16 10:00:58 +0000
commite129b31fc6641edcd08f9e369bbd915d3d683377 (patch)
tree66a1b6bdd4c7e628f65780c4ed2a03d1734dfef7 /configs
parent65203b12dd5a3185d02cb6601f91556d5fde4a54 (diff)
Add ability to configure the Max-Forwards header in the dialplan, as well as in
sip.conf configuration for the channel and for devices. The Max-Forwards header is used to prevent loops in a SIP network. Each intermediary, like SIP proxys and SBCs, decrement this counter and detects when it reaches zero, at which point the SIP request is nicely killed in a SIP-friendly way. Review: https://reviewboard.asterisk.org/r/778/ Thanks to dvossel for the review and good advice. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs')
-rw-r--r--configs/sip.conf.sample3
1 files changed, 3 insertions, 0 deletions
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample
index 598ce920f..30327dde3 100644
--- a/configs/sip.conf.sample
+++ b/configs/sip.conf.sample
@@ -202,6 +202,8 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;minexpiry=60 ; Minimum length of registrations/subscriptions (default 60)
;defaultexpiry=120 ; Default length of incoming/outgoing registration
;mwiexpiry=3600 ; Expiry time for outgoing MWI subscriptions
+;maxforwards=70 ; Setting for the SIP Max-Forwards: header (loop prevention)
+ ; Default value is 70
;qualifyfreq=60 ; Qualification: How often to check for the host to be up in seconds
; Set to low value if you use low timeout for NAT of UDP sessions
; Default: 60
@@ -1035,6 +1037,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; directmediadeny
; unsolicited_mailbox
; use_q850_reason
+; maxforwards
;[sip_proxy]
; For incoming calls only. Example: FWD (Free World Dialup)