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

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Mon Nov 30 13:02:16 CST 2020


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

Kevin Harwell updated ASTERISK-29180:
-------------------------------------

    Status: Open  (was: Triage)

> 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: 16.15.0, 18.1.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