GoIP gateway in REGISTER loop every 60 seconds despite re-registration set to 300 (with FreePBX 16)

Hi,

Currently running FreePBX on Debian, fully up to date and otherwise working. I have ruled out network issues for now (no observable link losses, etc). GoIP is in an IPsec tunnel directly able to connect to FreePBX, all firewall rules at both ends permit audio/media and SIP exchanges. There are no disconnections of the tunnels (verified also with ICMP ECHO with 0% packet loss).

The GoIP gateway keeps cycling registrations, the AOR contact is removed “due to request”, yet no indication of why this is happening comes up. The re-registration time is set to 300 seconds, yet this is occurring at an exact 60 second mark, every time.

126579[2024-01-25 23:30:32] VERBOSE[75816] res_pjsip_registrar.c: Added contact 'sip:goip01@XXX_GOIP:5060' to AOR 'goip01' with expiration of 300 seconds
126580[2024-01-25 23:30:32] VERBOSE[75816] res_pjsip_registrar.c: Removed contact 'sip:goip01@XXX_GOIP:5060' from AOR 'goip01' due to request
126581[2024-01-25 23:30:32] VERBOSE[77740] res_pjsip/pjsip_options.c: Contact goip01/sip:goip01@XXX_GOIP:5060 has been deleted
126582[2024-01-25 23:31:02] VERBOSE[75816] res_pjsip_registrar.c: Added contact 'sip:goip01@XXX_GOIP:5060' to AOR 'goip01' with expiration of 300 seconds
126583[2024-01-25 23:31:02] VERBOSE[75816] res_pjsip/pjsip_configuration.c: Endpoint goip01 is now Reachable
126584[2024-01-25 23:31:02] VERBOSE[75816] res_pjsip/pjsip_options.c: Contact goip01/sip:goip01@XXX_GOIP:5060 is now Reachable. RTT: 10.747 msec
126585[2024-01-25 23:31:32] VERBOSE[75816] res_pjsip_registrar.c: Removed contact 'sip:goip01@XXX_GOIP:5060' from AOR 'goip01' due to request
126586[2024-01-25 23:31:32] VERBOSE[77740] res_pjsip/pjsip_options.c: Contact goip01/sip:goip01@XXX_GOIP:5060 has been deleted
126587[2024-01-25 23:31:32] VERBOSE[77740] res_pjsip/pjsip_configuration.c: Endpoint goip01 is now Unreachable
126588[2024-01-25 23:31:41] VERBOSE[75816] res_pjsip_registrar.c: Added contact 'sip:goip01@XXX_GOIP:5060' to AOR 'goip01' with expiration of 300 seconds
126589[2024-01-25 23:31:41] VERBOSE[75816] res_pjsip/pjsip_configuration.c: Endpoint goip01 is now Reachable
126590[2024-01-25 23:31:41] VERBOSE[75816] res_pjsip/pjsip_options.c: Contact goip01/sip:goip01@XXX_GOIP:5060 is now Reachable. RTT: 9.956 msec

The effect is obviously fairly bad: the calls drop.

I have not found any up to date guides for setting up GoIP with FreePBX 16, but overall I followed and adapted the configurations that I could find around the forum and elsewhere. Trunk handles both incoming and outgoing calls just fine, the latter via prefix matching so I can have two trunks in the same PBX, routing only specific calls through the GoIP.

What is the likely culprit of the registration cycle/resets? My AOR contacts custom configuration (changing qualify timeouts has no effect):

[goip01](+type=aor)
max_contacts=1
qualify_frequency=300
qualify_timeout=300.0
minimum_expiration=300

The trunk is set to no Receive/Send registration. All addresses are static.

I know almost nothing about GoIP, but am assuming it’s similar (on the SIP side) to FXO gateways:

I suspect that there is a conflict between the GoIP attempting to register, and the trunk setting of Registration None.

Please try these trunk settings:

Remove the custom config.
Trunk name: (must match the username, possibly called user ID or auth ID, in GoIP)
Secret: (must match the SIP password in GoIP)
Authentication: Both
Registration: Receive
Match Inbound Authentication: Auth Username

If you still have trouble, at the Asterisk command prompt, type
pjsip set logger on
and after causing incorrect behavior, paste the relevant section of the Asterisk log at pastebin.com and post the link here. If you are too new to post links, just post the last eight characters of the URL.

If the GoIP fails to register, or registration is unstable, paste the log of the failing registration attempt and the resulting replies.

If it registers ok but calls fail, paste the log(s) for an incoming and/or an outgoing attempt, whichever are failing.

An alternative approach is to keep your existing FreePBX settings, but get the GoIP to not register. I have no idea how to do that, or if it is even possible.

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