[asterisk-bugs] [JIRA] (ASTERISK-21920) IAX trunk timestamps set to zero when it's bridged SIP channel wraps RTP timestamps
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Wed Jun 26 10:06:03 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-21920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207509#comment-207509 ]
Rusty Newton commented on ASTERISK-21920:
-----------------------------------------
I keep coming up with more questions. Do you have a way to reproduce the timestamp wrapping with RTP, or does it just happen frequently on SIP calls to your provider?
> IAX trunk timestamps set to zero when it's bridged SIP channel wraps RTP timestamps
> -----------------------------------------------------------------------------------
>
> Key: ASTERISK-21920
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-21920
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_iax2
> Affects Versions: 1.8.22.0
> Reporter: Gerhard
> Attachments: issue_21920_full_log, rtpwrapiaxissue-bothrtpandiaxstreams.pcap, rtpwrapiaxissue_logB.pcap
>
>
> I have a Asterisk 1.8.22.0 box, with a SIP trunk to a Voip provider, and an IAX trunk (trunked, trunktimestamps enabled) to a client's PBX.
> The client places a call that arrives at Asterisk via IAX, and then the call goes via SIP to the telco. A RTP stream is now being received from the telco.
> When this RTP stream's (from the telco) timestamp wraps (at 4 294 967 295), the IAX trunk timestamp transmitted from Asterisk is ZERO from then on, until the end of the call.
> I suspect this is done by the following code lines, which tries to prevent timestamps with negative values from being inserted in the IAX tx stream, without checking for RTP timestamp wrapping:
> chan_iax2.c :
> {noformat}
> Line 5940:
> if (ms < 0) {
> ms = 0;
> }
> Line 5947
> if (ms < 0)
> ms = 0;
> {noformat}
> See the tcpdump capture file supplied (the 1.8.22.0 Asterisk box has IP 192.168.200.222, the telco has IP 192.168.200.10, and the client has IP 192.168.200.5):
> At 12.854s into the capture, the RTP timestamp wraps.
> Correspondingly in the IAX trunk packet at 12.867s into the capture, the trunk timestamp is 0, and stays 0 (in the previous trunk packet the timestamp was still 10132)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list