[asterisk-bugs] [JIRA] (ASTERISK-28373) persistant registrations not working for TCP transport

Michael (JIRA) noreply at issues.asterisk.org
Fri Apr 5 15:34:47 CDT 2019


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

Michael commented on ASTERISK-28373:
------------------------------------

I am using rewrite_contact for all endpoints for possibility of nat.  That would explain it.  Seemed easier to just have this setting on for all endpoints so if a phone gets moved back and forth between nat and non-nated, everything just works.  For nat endpoints it just works, and didn't seem to cause a problem with non-nated phones.

So, when i do remove "rewrite_contact", it does seem to keep the registration on restart.  I guess I should only use this option for endpoints that actually need it.

Thanks for all your hard work Joshua.  I've seen/read so many of your forum comments.

> persistant registrations not working for TCP transport
> ------------------------------------------------------
>
>                 Key: ASTERISK-28373
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28373
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: . I did not set the category correctly.
>    Affects Versions: 16.3.0
>         Environment: debian 9 amd64
> asterisk v16.3.0
> using pjsip
> mysql ODBC 
>            Reporter: Michael
>            Severity: Minor
>              Labels: pjsip
>
> not sure what component/s to select.
> With regards to persisant sip registrations, only UDP transport works.  TCP doesn't seem to.  What I observe happening is when I shut down asterisk, and start it back up, all TCP sip registrations are removed from the ps_contacts table but UDP registrations remain.  I've confirmed this in the sql logs.  There are indeed delete commands for the TCP registrations.
> So, when asterisk is restarted, UDP endpoints work right away.  TCP endpoints need to wait until they re-register.



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



More information about the asterisk-bugs mailing list