Perhaps this presentation can be of inspiration.
You would need to branch Your call if You have more destinations.
A simpler approach which I use is to loop for some seconds after
sending the push, and see if the registration shows up in the
location table.
-------------------- Med Liberalistiske Hilsner ---------------------- Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49 Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk
Regards, Igor
On Apr 9, 2018, 9:44 AM +0300, Ulrich Henning <HUlrich@telba.de>, wrote:
_______________________________________________Hi everybody,
I am trying to call a sip client on a mobile cellphone, which is registered fine at my Kamailio instance. Everything is working fine if the phone is awake and the mobile app is not sleeping (e.g. energy saving by OS). If the device is sleeping, the cellphone gets a wakeup request call via apple push kit and wakes the app. Currently my app is doing a Register after each wakeup, because the device does not know if the cellular network changed (external IPv4 address with Carrier Grade NAT).
At this point an incoming call already got routed to any existing user registrations in userloc db. In this case, if the cellular provided network address changed, the sip client on the device won’t receive any invite of this last call. Instead all last known Contact-URIs are tried to be called until this sip invite times out because no response message is received back in time.
I tried to delay the incoming invite message, but this doesn’t seem the right way to go, since I can’t know if the mobile device is actually reachable and this method would potentially delay every call.
What is the best approach to solve this issue? I am looking forward for any comment or suggestion.
BR,
Henning
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users