[asterisk-bugs] [JIRA] (ASTERISK-29180) sip_to_pjsip.py: Default rewrite_contact=yes might be missing.

Alexander Traud (JIRA) noreply at issues.asterisk.org
Wed Nov 25 10:32:16 CST 2020


Alexander Traud created ASTERISK-29180:
------------------------------------------

             Summary: sip_to_pjsip.py: Default rewrite_contact=yes might be missing.
                 Key: ASTERISK-29180
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29180
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Contrib/General, Resources/res_pjsip
    Affects Versions: 18.1.0, 16.15.0
            Reporter: Alexander Traud
            Severity: Minor


The configuration conversion script [sip_to_pjsip.py|https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip#Migratingfromchan_siptores_pjsip-ConfigurationConversionScript] should copy not only present parameters but also default parameters -- if they have a different default. I found one example:{code}
nat=auto_force_rport{code}which is the default in chan_sip, see {{reload_config(.)}}. If that statement is absent in the configuration file {{sip.conf}}, nothing is converted to the configuration file {{pjsip.conf}} and internally the channel driver chan_pjsip uses its defaults:
{code}force_rport=yes
rewrite_contact=no{code}
However, if that statement was in {{sip.conf}}, it gets:
{code}force_rport=yes
rewrite_contact=yes{code}To be honest, I have no idea what is wrong, the script or the default of rewrite_contact in the source code of pjsip_configuration.c.



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



More information about the asterisk-bugs mailing list