[asterisk-bugs] [JIRA] (ASTERISK-27695) res_pjsip: local_net setting not updated on config reload

Jacek Konieczny (JIRA) noreply at issues.asterisk.org
Mon Mar 12 10:11:13 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242548#comment-242548 ] 

Jacek Konieczny commented on ASTERISK-27695:
--------------------------------------------

I was convinced that I did test it with 'allow_reload = true'… at least when I was testing this in Asterisk 14, but I could be confused by 'external_*_address' settings which do change even when 'allow_reload' is false.

Anyway… on Asterisk 15.2.2 'allow_reload = true' local_net setting is updated as expected, so I guess this issue can be closed. I am sorry for the false alarm.

> res_pjsip: local_net setting not updated on config reload
> ---------------------------------------------------------
>
>                 Key: ASTERISK-27695
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27695
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 14.7.5, 15.2.2
>            Reporter: Jacek Konieczny
>            Assignee: Jacek Konieczny
>            Severity: Minor
>              Labels: pjsip
>
> A change to {{local_net}} setting in {{pjsip.conf}} transport section is not reloaded on '{{reload res_pjsip}}', while '{{external_signaling_address}}' and '{{external_media_address}} ' are updated correctly.
> I have looked into the source code, but there seem to be a bit too much magic happening there for me to create a trivial patch.
> The problem seems to be that the '{{transport_localnet_handler()}}' function used to update this setting uses a different 'temporary state' object then is later used in '{{transport_apply}}' and actually applied to the transport.



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



More information about the asterisk-bugs mailing list