diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 10:00:58 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 10:00:58 +0000 |
commit | c7a055522da15bc29d0a78df1233983b5b372740 (patch) | |
tree | 66a1b6bdd4c7e628f65780c4ed2a03d1734dfef7 /configs | |
parent | 884f6d5489131ce6ae1ee0ed6a909092cfaca49f (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: http://svn.digium.com/svn/asterisk/trunk@276951 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs')
-rw-r--r-- | configs/sip.conf.sample | 3 |
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) |