Merged revisions 132777 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Tue, 22 Jul 2008 22:17:09 +0000 (22:17 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 22 Jul 2008 22:17:09 +0000 (22:17 +0000)
commitc1c75b0cbea82368e75ee6b2105cf91c21cab4d1
tree0333029b8935bb08b39eec882c9c50d8033044cb
parent35cf5f8984468a1e27996066549e858840101d0b
Merged revisions 132777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........

Allow Spiraled INVITEs to work correctly within Asterisk.

Prior to this change, a spiraled INVITE would cause a 482
Loop Detected to be sent to the caller. With this change,
if a potential loop is detected, the Request-URI is inspected
to see if it has changed from what was originally received. If
pedantic mode is on, then this inspection is fully RFC 3261
compliant. If pedantic mode is not on, then a string comparison
is used to test the equality of the two R-URIs.

This has been tested by using OpenSER to rewrite the R-URI
and send the INVITE back to Asterisk.

(closes issue #7403)
Reported by: stephen_dredge

Modified:
    branches/1.4/channels/chan_sip.c

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c