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.