Good Morning Colleagues
I hope you are doing good and safe .
Kindly find the below details regarding my issue:
I have a server with FreePBX 15.0.17.47 installed .
FreePBX system firewall is disabled.
FreePBX server located behind ADSL router but located in DMZ zone.
Zoiper installed on Android phone.
In Egypt , You can connect to the internet either through Landline provider or 4G provider.
When i am at remote office using internet through Landline , Zoiper register successfully.
When i am at remote office but using internet through 4G , Zoiper didn’t register.
I am coming from 3CX world so when using 3CX softphone on Android and need to register either using internet through landline or 4G , No issue at all and it can register in both case.
Any suggestion how to solve the issue with Zoiper through 4G ?
The cause won’t be 4G itself. Is the mobile network applying NAT? Which channel driver are you using? Please provide sip set debug on/pjsip set logger on output, from the full log, for a failed registration.
Good Morning David55
Thanks for your replay . Kindly find my below notes:
I have issued the below commands: asterisk -r core set verbose 5 core set debug 5 sip set debug on pjsip set logger on
Extension 881 has two endpoints . One of them is at the same local network of FreePBX server and has IP Address (192.168.1.58) . The other endpoint is Zoiper on my Android phone . This endpoint will have dynamic public ip address and will try to register to public ip address of FreePBX.
I am uploading the full log with this replay . Appreciate to remove “.tgz” . I just add it so i can upload the file.
If anything is not clear , KIndly let me know as i am new to FreePBX.
It appears that registration is ok, but sometimes OPTIONS (qualify) packets get no response.
Please put this into /etc/asterisk/pjsip.aor_custom_post.conf (at the end if the file has other contents): [881](+type=aor) qualify_timeout=16.0
then restart Asterisk.
Also, confirm that you have Max Contacts for extension 881 set to at least 4.
If no luck, paste a new log at pastebin.freepbx.org, post the link here and also do a test with Qualify Frequency for extension 881 set to 0.
I’m puzzled. It appears that Zoiper was briefly registered correctly. Starting at line 5132, we see a valid reply to OPTIONS from the mobile and line 5158 shows 2 available contacts. However, Zoiper was somehow unable to renew its registration and on line 5243 we see the contact being deleted because of registration expiration (not because of qualify failing).
While the mobile carrier may have blocked re-registration, IMO it’s more likely that the app was paused in the background (to save battery) and as a result didn’t renew the registration. I know almost nothing about Zoiper but it probably has some logging options that would show what happened.
You might try setting the registration interval to e.g. 10 minutes (it’s now 1 minute) and see whether you can make and/or receive calls during that time.
Also, your phone likely has settings for each app regarding battery usage restrictions that you could adjust to work around the problem.
I find zoiper to lose registration on 4g as well. However gswave has worked reliably for me. I dont like the subscription model of zoiper, and would rather pay a one time fee.
Did it initially show registered? Keeping it running in the foreground, were you able to call out? While still running in the foreground, what happened on an incoming call?