Hi,
have a look on the TSILO module: http://www.kamailio.org/docs/modules/5.1.x/modules/tsilo.html.
It has been designed exactly for this use case.
you can also have a look on the following video and the related presentation to understand how to integrate into kamailio routing logic:
https://www.youtube.com/watch?v=4XIrR9bwUkM

Best regards,

Federico

On Tue, Sep 18, 2018 at 9:39 AM Kristijan Vrban <vrban.lkml@gmail.com> wrote:
Hi, now that many SIP endpoints are mobile devices which usually deep-sleep, and only get awake after Android/iOS own notification messages awake them, what are the best practices
to await a a pending INVITE to such a mobile device until it REGISTER after the awake?
I currently use a Asterisk a do a simple loop, trying new INVITES every second, but this is not elegant.
A nice solution would be a type of queue, where the pending INVITE get send to the new location triggered immediately
by the fresh REGISTER from that device to avoid any delay during call setup

Kristijan
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users