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

Anatoli (JIRA) noreply at issues.asterisk.org
Fri Nov 13 15:16:32 CST 2015


Anatoli created ASTERISK-25550:
----------------------------------

             Summary: 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.6.0, 13.4.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