[asterisk-bugs] [JIRA] (ASTERISK-26458) res_pjsip: Insufficient handling of dynamic public IP address

Andreas Wetzel (JIRA) noreply at issues.asterisk.org
Tue Oct 11 13:11:01 CDT 2016


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

Andreas Wetzel edited comment on ASTERISK-26458 at 10/11/16 1:09 PM:
---------------------------------------------------------------------

There are two distinct problems here:

1) There does not seem to be a way to have asterisk refresh the public IP address. This is the one shown with 'pjsip dump endpt' under 'published as', which seems to be used for the 'o=' lines of the sdp and probably also for the 'c=' lines for all external communication with the ITSP.

2) The 'pjsip send register' command only allows to specify a single registration entry, but not to re-send all configured outbound registrations.

*edit*: registration expiry time seems to be the default of 3600 sec, and the response from the ITSP's server seems to indicate it even tolerates as much as 4500 sec. So it could take a while until the next registration is being sent out regularly.


was (Author: rakanishu):
There are two distinct problems here:

1) There does not seem to be a way to have asterisk refresh the public IP address. This is the one shown with 'pjsip show endpt' under 'published as', which seems to be used for the 'o=' lines of the sdp and probably also for the 'c=' lines for all external communication with the ITSP.

2) The 'pjsip send register' command only allows to specify a single registration entry, but not to re-send all configured outbound registrations.

> res_pjsip: Insufficient handling of dynamic public IP address
> -------------------------------------------------------------
>
>                 Key: ASTERISK-26458
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26458
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip, Resources/res_pjsip_outbound_registration
>    Affects Versions: 13.11.2
>         Environment: FreeBSD 10.3-RELEASE-p9 i386
>            Reporter: Andreas Wetzel
>            Severity: Minor
>
> I have a consumer DSL line which gets disconnected from the ISP's side every 24 hours. When that happens a number of things occur:
> - My IP address changes
> - DNS may return a different IP address for my ITSP's SIP server
> - All outbound registrations need to be renewed, otherwise I get a '401 unauthorized response' from my ITSP's SIP server when trying to place an outbound call prior to the corresponding registration being renewed.
> Currently none of the reloading mechanisms present in asterisk seem to make it refetch the machine's public IP address (the one that is shown in 'pjsip dump endpt' under 'published as'), or to force an immediate renewal of all configured outbound registrations. Only way is to do a full restart of asterisk i.e. 'core restart gracefully'.



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



More information about the asterisk-bugs mailing list