From c7a055522da15bc29d0a78df1233983b5b372740 Mon Sep 17 00:00:00 2001 From: oej Date: Fri, 16 Jul 2010 10:00:58 +0000 Subject: 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 --- configs/sip.conf.sample | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configs') 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) -- cgit v1.2.3