Hello,

async_route() might be better, from the same module, given it makes it
clear that the context is switched to another routing block later. The
async_sleep() is also ok, just be aware of its side effects.

Cheers,
Daniel


On 05/05/16 10:03, Sirvan Paraste wrote:
>
> Hello all, 
>
> is there anyway to pause a transaction for a short while (1 second) ?
> I have implemented the push notification, when the callee get register
> I need a short time to be sure that the app is completely start and
> can do its duty. otherwise it missed the call. so I want to pause the
> transaction.
>
> I have tested async_sleep("1"); it worked. is there any better solution ?
>
> $var(hjoin) = 0;
> lock("$tU");
> async_sleep("1");
>
>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, Berlin, May 18-20, 2016 - 
http://www.kamailioworld.com

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to