[OpenSIPS-Users] wait_for_event(event,filter,timeout)

Johan De Clercq Johan at democon.be
Thu Aug 20 06:54:45 EST 2020


More or less the same problem here.
I need to trigger on receiving a register after a push notification, I do
see the REGISTER arriving but nothing happens.
I use 3.1.  Might it be that we have a module issue ?

Op do 20 aug. 2020 om 08:41 schreef Darpan Patel <
darpan.gabani1093 at gmail.com>:

> Hello All , i have a query regarding wait_for_event functionality .In
> documentation usage of event is like this :
>
> # wait for callee to register
> $avp(filter) = "aor="+$rU+"@"+$rd
> async( wait_for_event("E_UL_AOR_INSERT","$avp(filter)", "40"),  resume_call);
> # done
> ...
> route[resume_call] {
> 	xlog("user $avp(aor) is now registered\n");
> 	lookup("location");
> 	t_relay();
> }
>
> But in my case after 40 seconds it's not trigger resume_call route, so resume_call only called after the event will succeed ? I want to implement a feature like if callee is not registered till 40 seconds then relay call to PSTN Gateway .thanks alot in advance .
>
> regards ,
>
> Darpan Patel
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200820/1f6aa6fa/attachment.html>


More information about the Users mailing list