[asterisk-bugs] [JIRA] (ASTERISK-21246) After RTP is negotiated (ALAW) between two SIP endpoints; Asterisk starts sending ULAW marker packets to both endpoints

Michael L. Young (JIRA) noreply at issues.asterisk.org
Thu Apr 25 11:59:38 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=205845#comment-205845 ] 

Michael L. Young edited comment on ASTERISK-21246 at 4/25/13 11:57 AM:
-----------------------------------------------------------------------

Please try this updated patch if you can.  [^asterisk-21246-rtp-cng-payload-error_1.8_v2.diff]

I appreciate your testing.

What is actually supposed to be happening is that, since you have "rtpkeepalive" set to 20 secs, Asterisk will send an empty rtp packet.  We are using a CN packet to keep the rtp alive.

The bug is that we are setting the payload to ULAW when it should have been CN.  Also, we should not be setting the marker bit like we currently are doing.  I also have fixed the debug message that has been bothering me so that we get an accurate debug message which matches the actual seqno in the pcap.

Thanks for your testing and feedback.  I was also able to finally produce these packets by setting rtpkeepalive and everything appears to be working but it is always good to have another person test it in their environment.
                
      was (Author: elguero):
    Please try this updated patch if you can.  [^asterisk-21246-rtp-cng-payload-error_1.8_v2.diff]

I appreciate your testing.

There is no codec change happening.  That is the bug.  What is actually supposed to be happening is that, since you have "rtpkeepalive" set to 20 secs, Asterisk will send an empty rtp packet.  We are using a CN packet to keep the rtp alive.

The bug is that we are setting the payload to ULAW when it should have been CN.  Also, we should not be setting the marker bit like we currently are doing.  I also have fixed the debug message that has been bothering me so that we get an accurate debug message which matches the actual seqno in the pcap.

Thanks for your testing and feedback.  I was also able to finally produce these packets by setting rtpkeepalive and everything appears to be working but it is always good to have another person test it in their environment.
                  
> After  RTP is negotiated (ALAW) between two SIP endpoints; Asterisk starts sending ULAW marker packets to both endpoints 
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-21246
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21246
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General, Resources/res_rtp_asterisk
>    Affects Versions: 1.8.17.0, 1.8.18.0, 1.8.19.0, 1.8.20.1
>         Environment: ubuntu 10.04
>            Reporter: Peter Katzmann
>            Assignee: Peter Katzmann
>         Attachments: asterisk-21246-rtp-cng-payload-error_1.8.diff, asterisk-21246-rtp-cng-payload-error_1.8_v2.diff, asterisk.conf.tar.gz, CallWithTranscoding, codecchange.0, codecchange.2, codecchange-24032013.bz2, codecchange-24032013-udp.pcap, codecchange.3, codecchange-filtered.pcap.gz, codecchange-patched, codecchange-patched.pcap, filtered1512-2-leg.pcap, filtered1512-2.pcap, myDebugLog, myDebugLog, negiot-switch, vanilla-trace.txt, ws-trace.txt
>
>
> See attached traces
> During call asterisk switches the negotiated codec (alaw) in the rtp to ulaw.
> If there is no renegotiation (like on my snom 720 sometimes), the user has a audible distortion.

--
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