[asterisk-bugs] [JIRA] (ASTERISK-29978) chan_sip: Asterisk do not use the first media format in reply with SDP

Asterisk Team (JIRA) noreply at issues.asterisk.org
Mon Mar 21 07:46:07 CDT 2022


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

Asterisk Team commented on ASTERISK-29978:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

> chan_sip: Asterisk do not use the first media format in reply with SDP
> ----------------------------------------------------------------------
>
>                 Key: ASTERISK-29978
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29978
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/CodecHandling
>    Affects Versions: 16.24.1, 18.10.1
>            Reporter: Mark Petersen
>         Attachments: tcpdump-dev-asterisk.pcap
>
>
> when Asterisk receive 200 OK from Bob, it do not use the first codec in the 200 OK
> causing mitch match RTP, witch result in one way sound on most phones
> sip.conf
> disallow=all
> allow=g722,alaw,ulaw,gsm
> sip show peer hpbx 
>   Codecs       : (g722|alaw|ulaw|gsm)
> INVITE 
> m=audio 19534 RTP/AVP 8 9 0 3 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:9 G722/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:3 GSM/8000
> a=rtpmap:101 telephone-event/8000
> 200 OK
> m=audio 51172 RTP/AVP 8 9 0 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:9 G722/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:101 telephone-event/8000
> asterisk send using rtpmap:9 G722/8000 
> but should be using rtpmap:8 PCMA/8000
> according ti RFC https://datatracker.ietf.org/doc/html/rfc3264#section-7



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list