[asterisk-bugs] [JIRA] (ASTERISK-29441) Core reload making TCP endpoints go offline

Luke Escude (JIRA) noreply at issues.asterisk.org
Thu May 20 11:27:17 CDT 2021


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

Luke Escude commented on ASTERISK-29441:
----------------------------------------

Okay, I have figured it out.

If transport-tcp is defined in pjsip.conf BEFORE transport-udp, the issue doesn't occur when performing a reload.

But, if transport-tcp is defined AFTER transport-udp, Asterisk starts using UDP for all the TCP endpoints.

Please see the attached debug log - It begins with asterisk starting up, and everything works normally. Then I perform a core reload with TCP defined before UDP - Everything continues to work. Then I perform a second core reload with UDP defined before TCP, and you'll notice all the outbound registrations becoming dysfunctional.

So, pjsip.conf transport definition order matters.

See attached - Thanks!

> Core reload making TCP endpoints go offline
> -------------------------------------------
>
>                 Key: ASTERISK-29441
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29441
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/PBX
>    Affects Versions: 16.18.0
>         Environment: CentOS 7 x64
>            Reporter: Luke Escude
>            Assignee: Unassigned
>            Severity: Major
>         Attachments: debug_log_29441.txt
>
>
> So I updated our Asterisk image last night from 16.14 to the newest, 16.18.
> All of our endpoints use transport-tcp, and the image booted fresh just fine - Everything connected. Including outbound registrations (from Asterisk to an upstream SIP proxy)
> But, every time we perform a 'core reload' all TCP endpoints disconnect and won't re-register (Asterisk begins sending the REGISTER packets over UDP instead of TCP).
> The following errors appear in the console when reloading:
> [May 20 15:45:52] WARNING[8794]: res_pjsip/config_transport.c:559 transport_apply: Transport 'transport-udp' is not fully reloadable, not reloading: protocol, bind, TLS, TCP, ToS, or CoS options.
> [May 20 15:45:52] WARNING[8794]: res_pjsip/config_transport.c:559 transport_apply: Transport 'transport-tcp' is not fully reloadable, not reloading: protocol, bind, TLS, TCP, ToS, or CoS options.
> Restarting asterisk fixes the issue, but we cannot reload.



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



More information about the asterisk-bugs mailing list