summaryrefslogtreecommitdiff
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2012-02-14 13:35:02 +0000
committerSean Bright <sean@malleable.com>2012-02-14 13:35:02 +0000
commit98111f8f1fec3b30cba6186b37e192b107b62ed7 (patch)
tree366b7c713448bd11148f4ede72a88494ba56b4ee /channels/chan_iax2.c
parent002b8bf3208cf52949eeb4ffad62d332f664d8f1 (diff)
Clear the high order bit from the destination call number before sending.
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 ........ Merged revisions 355183 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@355184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 17cc0bbe2..76e83d0d6 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -4789,7 +4789,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;