Phone not connecting over tcp

I have a FreePBX server hosted as Vultr and every now and then when a call comes in the systems doesn’t register any phones and the call is lost. I have created a work around that checks if there aren’t any phones registered and if so the call is routed to an external number. I would however rather solve the issue and the first thing I thought was moving to TCP instead of UDP. I opened a port on the firewall, enabled TCP under SIP settings, changed the default port just in case. I then changed the account settings in one phone so that it connects via TCP, but the telephone keep trying but eventually fails.

What can I do to troubleshoot? Is there anything other I should do? And any other ideas concerning the no registered phone issue? When this happens, internet is still up btw.

I’m using pjsip extensions.

What do the phone and freepbx logs say about the registration attempts?

I’m only seeing logs like this on FreePBX:

[2023-04-03 09:47:27] VERBOSE[30794] res_pjsip_registrar.c: Attempted to remove non-existent contact 'sip:[email protected]:35130' from AOR '204' by request

there has to be more in the log than that. Is there a log you can access from the phone itself (if you Google)?

I have the log file downloaded and redacted, but can’t remember the site to post it…


Phone not connecting via TCP: <134>Apr 4 07:45:49 GUI [1719:1719]: WEB <6+info > 149.352.992:[DoService:94]~ -

No registered phones: 27096[2023-04-03 16:21:41] VERBOSE[8956][C-00000283] netsock2.c: Using SIP RTP T -

Set up either sip debug or PJ Debug depending on what protocol you’re using. Then capture the PBX logs again you’re going to have to capture a broader set of logs as the registration errors will likely not be part of an individual call.

I tried the default port (5060) and now I am able to connect over TCP. A firewall thing maybe?

I’m not going to “reset” all my phones to connect via TCP and see if this gives a more stable experience.

1 Like

Likely, let us know how it goes.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.