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

Alexei Gradinari (JIRA) noreply at issues.asterisk.org
Tue Nov 15 15:01:10 CST 2016


Alexei Gradinari created ASTERISK-26603:
-------------------------------------------

             Summary: [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: 13.12.2
            Reporter: Alexei Gradinari


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.

The patch removes call of ast_set_write_format which is not necessary.




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



More information about the asterisk-bugs mailing list