Add ability to configure the Max-Forwards header in the dialplan, as well as in
authorOlle Johansson <oej@edvina.net>
Fri, 16 Jul 2010 10:00:58 +0000 (10:00 +0000)
committerOlle Johansson <oej@edvina.net>
Fri, 16 Jul 2010 10:00:58 +0000 (10:00 +0000)
commite129b31fc6641edcd08f9e369bbd915d3d683377
tree66a1b6bdd4c7e628f65780c4ed2a03d1734dfef7
parent65203b12dd5a3185d02cb6601f91556d5fde4a54
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
CHANGES
channels/chan_sip.c
channels/sip/include/sip.h
configs/sip.conf.sample
doc/tex/channelvariables.tex