VitXi Mobile & VitalPBX Mobile Push Registration issue on iOS

Did you really uninstall the old app and install the new one?

I have the same issue, the server shows no contact info in Reports PJSIP endpoints as soon as you close the app on your andriod phone, when you open the app you will see the PJSIP contact info.
When the app is closed I see a icon at the top (VitalPBX mobile push) and a number 1 besides the app icon but the server looses the contact info.
3.212.223.16 is in whitelist are there other ports or address’s needed open. Geo firewall is on with Canada/US open.

Distro CentOS Linux release 7.9.2009 (Core)
Kernel 3.10.0-1160.53.1.el7.x86_64
Asterisk 18.6.0
VitalPBX 3.1.5-4

[root@ptpbx3 ~]# asterisk -rx"database show devices/PJSIP/204"
/devices/PJSIP/204/assigned_exten : 204
/devices/PJSIP/204/emergency_cid :
/devices/PJSIP/204/hot_desk : no
/devices/PJSIP/204/location : 1
/devices/PJSIP/204/push_id : [“fjw-dlf6SLyQOVJIfZUaqB:APA91(removed area)IoJU7kknQXC-d”]
/devices/PJSIP/204/send_push : yes
/devices/PJSIP/204/tenant : 6d82a1b5a48e9e32
7 results found.

Could you send a screenshot of the app installed on your Mobile? Additionally, can you also send a screenshot of the Extension configurations?


When app is closed I see this but can not receive call

@GaryC Do you have any other phone device connected to the same account that is using the mobile app?

No only 1 cell phone connecting to this account. It was working a while back but stopped working I think it was after a pbx update but not completely sure.

I deleted the app and reinstalled, it kept the account settings so I deleted the account and reconnected using the QR code FQDN. it now works but the reports show an old contacts in red, when app is off it has 2 contacts when app is on 3 contacts. but its working for now.


Hi there,

we also seem to be having issues with the mobile app, on Android and iOS. as long as the app is in the foreground and open the app will wing and remain contactable on the PBX reports, but on Android, as soon as I switch apps and put VitalPBX Mobile into the background, it is no longer contactable and the push notifications do not work so calls are missed. It is a similar issue with the iOS app. The app in the foreground works perfectly, but as soon as it is in the background, it stops being contactable and the device begins getting push registration errors. I saw somewhere that this is a known issue? We are looking to replace our ageing platform with VitalPBX, all the additional features are ace! The only thing that is holding us back is the mobile app and the push notifications. I have read this forum post and tried everything mentioned and still no joy, sadly. does anyone have any other advice?

Did you do as GeryC and uninstalled and installed the App again?

Hi mo10,

I have done the same as GeryC, I have completely removed the app and reinstalled it on Android and iOS, I can test the push service on an android device by disabling the account, going to the advanced settings in that account and pushing the test push service button, and I get a Push call received OK, message. if I do the same on iOS, I get nothing back.

On iOS and Android, after locking the device or pushing the app to the background I can not receive calls, on iOS I additionally get a, failed to register with Push service message.

I have included a screenshot of my was firewall settings just in case and obfuscated my trunk’s IP

Extension config:

I do have another device attached to this extension but it is currently disconnected, therefore it is not registering:
image

With the mobile app in the background:
image

With the mobile app in the foreground:

I think I read somewhere that the app needs to de-register like this for the push notifications to behave correctly, but I don’t seem to be getting them at all.

I am running on the free community version of VitalPBX if that matters at all?

Thanks,

Paul

You need to set your max contacts to at least 2.
Try not to use multiple devices for now while testing.

Delete everything (extension as well) and start with everything again. Or start with a clean extension.
Uninstall the App and its data.

Try again with your additional firewall deactivated for testing.

Please check the FAQ as well:

Hi mo10,

Awesome thank you, I have now opened the firewall temporarily to the world, deleted the original extensions, and made two fresh shiny new ones.

I have removed the settings on the mobile apps and uninstalled and reinstalled the mobile apps and reconnected them with a fresh QR code generated from the FQDN. I am now seeing two registrations for each extension now, I am assuming one is the push notification server?

I now see this when the apps are in the foreground and the devices are awake:

and this when the devices are asleep or the apps are in the background:

I have made sure that 3.212.223.16 is still whitelisted and it is.

I am running version 3.5.1-4 but I do not see the option to disable Push Notification, I know it used to be on the extension config page.

Is it working now?

No need to disable push in latest VitalPBX. It’s gone from now on.

Hi Mo,

Ah good, I was worried I was missing something. Unfortunately no, it is not working. I am certain I must be missing something, I am wondering if it is something to do with the environment I am testing with, it’s an AWS EC2 instance, that is using an Elastic IP for a fixed public IP, otherwise, the IP address of the server instance changes if I have it turned off for any length of time. That did initially cause me a minor challenge or two but I was able to get almost everything working, except for the push notifications. I am not averse to reinstalling VPBX as there is nothing to lose at this point, just in case it is an issue with a previous update.

Also please correct me if I am misunderstanding, is the SessionPush 1.2 meant to be Unreachable or Reachable?

I’m back with the same issue. when app is closed contacts in pbx show red and no calls, when app is open contacts show green and calls work ?

Not sure why there is 3 contacts when app is closed.

Hi GaryC,

I have the same here too, nice to know I am not alone, I am wondering if the three contacts that are unreachable, that show the IP address of the PUsh server are all failed attempts for the Push server to contact the PBX correctly?

image

I think if for example if you set the Max contacts to 3 for an extension, it allows up to three items to be contactable for that extension. when you open the app, one of the three contacts turns green and shows as contactable and also shows the IP of the SIP device. I wonder if every time the Push server fails to connect it creates another contact and tries again until the Max Contacts for the extension are met?

In your PJSIP Profile check that the parameters “Remove Existing” and “Rewrite Contact” are enabled.

Additionally, check if the push server IP is whitelisted in VitalPBX and any other firewall in front of VitalPBX.

“Remove Existing” and “Rewrite Contact” are enabled here. Push server IP not blocked.

I just checked again as well and can see them being RED as well most of the time. Changinge to green for a few seconds and then back to RED.

Might be an issue everybody is having with latest VitalPBX?