Merged revisions 114603 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Thu, 24 Apr 2008 14:59:05 +0000 (14:59 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 24 Apr 2008 14:59:05 +0000 (14:59 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114603 | oej | 2008-04-24 16:55:18 +0200 (Tor, 24 Apr 2008) | 3 lines

Only have one max-forwards header in outbound REFERs.
Discovered in the Asterisk SIP Masterclass in Orlando. Thanks Joe!

........

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

channels/chan_sip.c

index 637d123..dc43dec 100644 (file)
@@ -9810,7 +9810,6 @@ static int transmit_refer(struct sip_pvt *p, const char *dest)
        p->refer->status = REFER_SENT;   /* Set refer status */
 
        reqprep(&req, p, SIP_REFER, 0, 1);
        p->refer->status = REFER_SENT;   /* Set refer status */
 
        reqprep(&req, p, SIP_REFER, 0, 1);
-       add_header(&req, "Max-Forwards", DEFAULT_MAX_FORWARDS);
 
        add_header(&req, "Refer-To", referto);
        add_header(&req, "Allow", ALLOWED_METHODS);
 
        add_header(&req, "Refer-To", referto);
        add_header(&req, "Allow", ALLOWED_METHODS);