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

Asterisk Team (JIRA) noreply at issues.asterisk.org
Sat Nov 21 17:53:33 CST 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-25550:
-------------------------------------

    Status: Waiting for Feedback  (was: Waiting for Feedback)

> Codecs negotiated incorrectly
> -----------------------------
>
>                 Key: ASTERISK-25550
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25550
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Codecs/General, Core/CodecInterface, pjproject/pjsip
>    Affects Versions: 13.4.0, 13.6.0
>         Environment: Ubuntu 14.04, PJSIP 2.4.5
>            Reporter: Anatoli
>            Assignee: Asterisk Team
>         Attachments: pjsip.log, tcp.dump
>
>
> 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