[asterisk-bugs] [JIRA] (ASTERISK-26603) [patch] chan_pjsip: not switching sending codec to receiving codec when asymmetric_rtp_codec=no

Daniel Heckl (JIRA) noreply at issues.asterisk.org
Mon Feb 6 16:10:09 CST 2017


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

Daniel Heckl updated ASTERISK-26603:
------------------------------------

    Attachment: debug.txt
                record.wav

I think the patch is incorrect. I have tested 13.14.0-rc1 and detected strange noises. With 13.13.1 I did not hear any sounds. Attached the strange noise. 

Sometimes the sound file sounds good and sometimes the sound file sounds bad as in the attached .wav file.

My guess is that asterisk changes the codec too often while playing the file.

> [patch] chan_pjsip: not switching sending codec to receiving codec when asymmetric_rtp_codec=no
> -----------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-26603
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26603
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: GIT
>            Reporter: Alexei Gradinari
>            Assignee: Alexei Gradinari
>      Target Release: 13.14.0, 14.3.0
>
>         Attachments: debug.txt, record.wav
>
>
> The patch https://gerrit.asterisk.org/#/c/4172/ introduced a new option 'asymmetric_rtp_codec' to disable asymmetric codecs for sending
> and receiving.
> But it makes incorrectly.
> The sending codec is switched to the receiving codec and then is switched back to the best native codec on EVERY receiving RTP packets.
> This is because after call of ast_channel_set_rawwriteformat there is call
> of ast_set_write_format which calls set_format which sets rawwriteformat to the best native format.



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



More information about the asterisk-bugs mailing list