[SR-Users] Pause a Transaction for a short while

Daniel-Constantin Mierla miconda at gmail.com
Thu May 5 10:26:48 CEST 2016


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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160505/95c95762/attachment.html>


More information about the sr-users mailing list