[asterisk-bugs] [JIRA] (ASTERISK-25550) Codecs negotiated incorrectly

Asterisk Team (JIRA) noreply at issues.asterisk.org
Fri Nov 13 15:16:33 CST 2015


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

Asterisk Team commented on ASTERISK-25550:
------------------------------------------

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.

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

> Codecs negotiated incorrectly
> -----------------------------
>
>                 Key: ASTERISK-25550
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25550
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: . I did not set the category correctly.
>    Affects Versions: 13.4.0, 13.6.0
>         Environment: Ubuntu 14.04, PJSIP 2.4.5
>            Reporter: Anatoli
>
> Hi,
> I'm not sure this is an Asterisk issue or a PJSIP one, please confirm.
> When an endpoint (in this case Linphone on iPhone) has 2 codecs selected as allowed (iLBC & G722) and tries to make a call to a destination whose codec is alaw, the sound that is heard on the origin endpoint sounds accelerated (like fast-forwarded) with heavy distortion, but on the destination phone (a cellphone or a landline) everything sounds OK.
> For the origin endpoint channel, {{core show channel}} outputs the following:
> {quote}
> NativeFormats: (g722|ilbc)
>     WriteFormat: slin
>      ReadFormat: slin
>  WriteTranscode: Yes (slin at 8000)->(ilbc at 8000)
>   ReadTranscode: Yes (g722 at 16000)->(slin at 8000)
> {quote}
> And for the destination one:
> {quote}
>   NativeFormats: (alaw)
>     WriteFormat: slin
>      ReadFormat: slin
>  WriteTranscode: Yes (slin at 8000)->(alaw at 8000)
>   ReadTranscode: Yes (alaw at 8000)->(slin at 8000)
> {quote}
> So it looks like the origin endpoint expects to send and receive the media coded using a single codec but Asterisk/PJSIP decide to receive the media from the endpoint coded using G722 and to send it back using iLBC.
> PJSIP is configured to allow G722 & iLBC for the origin endpoint and alaw for the destination one.
> If the origin endpoint chooses only one codec in the configuration (either iLBC or G722), everything works fine.
> Please let me know if additional information is needed.
> Thanks,
> Anatoli



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



More information about the asterisk-bugs mailing list