]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Clear the high order bit from the destination call number before sending.
authorSean Bright <sean@malleable.com>
Tue, 14 Feb 2012 13:33:51 +0000 (13:33 +0000)
committerSean Bright <sean@malleable.com>
Tue, 14 Feb 2012 13:33:51 +0000 (13:33 +0000)
send_apathetic_reply takes the incoming frame's source call number as the
destination call number for the outgoing frame.  If the incoming frame was a
full frame, then the high order bit of the source call number is set and will be
interpreted as a retransmit when sent back out as the destination call number.
........

Merged revisions 355182 from http://svn.asterisk.org/svn/asterisk/branches/1.8

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

channels/chan_iax2.c

index b7f6cbf2937c78f209617c4d495e6141437cdcc9..f1954360bebea08ced889f337872e941b355aa52 100644 (file)
@@ -4793,7 +4793,7 @@ static int send_apathetic_reply(unsigned short callno, unsigned short dcallno,
        }
 
        data.f.scallno = htons(0x8000 | callno);
-       data.f.dcallno = htons(dcallno);
+       data.f.dcallno = htons(dcallno & ~IAX_FLAG_RETRANS);
        data.f.ts = htonl(ts);
        data.f.iseqno = seqno;
        data.f.oseqno = 0;