Thank you for your support, and sorry for my English.
Yes, we are using the registration relay on the SIP Proxy, that’s fine, and everything is OK with SIP devices, the issue is only with Mobile Devices, let me show the connection schema below:
So, every time when I’m calling extension 11 from 10, everything is ok, because ext 11 is permanently available on the Asterisk server based on keepalive messages. The issue is only when ext 11 is trying to ring ext.10, in this case, to reach it I need first to wake it up by sending a push notification message, if I’m sending this push notification message from Asterisk before sending an INVITE to it, then it’s fine, the Application is waking up and Asterisk is aware of its location (OpenSIPS IP Address). But, because of technical issues - I have to send the push notification message from the OpenSIPS server.
@david551 - by setting to that extension a static IP Address, which is SIP Proxy in my case, Asterisk will send that INVITE to the Proxy, but in this case, Asterisk will know such Extension always available, even if he did the log-out or deleted application, and this will cause other issues for us. For ex. before sending the call to the Device - sometimes we are checking if that device is logged-in or not, and based on that we are taking a different action. Also, we are monitoring some extensions, when they are online/offline and rtt for them, which of course will not work properly in this case.
This can be considered as a workaround - but I’m looking at something more reliable, to not affect our current setup, and do not cause performance issues.
Briefly, what i need is:
- When the call is coming in, to check in the local DB if that extension is an Push Notification Device and is logged-in at the moment
- If it is logged-in - check the status, if its offline register it manually.
- Send Invite to the Proxy - which will wake up it and will send invite.