Hello,
What you can do is send the call to a destination which is not available
at all, control the amount of time you want to give the client to
register via the fr_timer, and when that timeout is exceeded try to
route the call to the client.
Short snippet of code would be
if (!t_relay("3"))
{
if((is_method("INVITE")))
{
exec_avp("some script to wake-up the client");
# relay to localhost, discart port
$du = "sip:127.0.0.1:9";
# wait two seconds for the client to register
$T_fr_timeout = 2;
t_on_failure("route_to_client");
t_relay();
exit;
}
}
failure_route[route_to_client] {
if (t_was_cancelled())
exit;
# after two seconds, this will get called
# see if the client is registered now
lookup("location");
t_relay();
exit;
}
Best Regards,
Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com
On 13.04.2015 18:20, leo wrote:
Hello Guys,
could you give the last clue on this? The point is once the UA is
re-registered, how to forward the call to it?
Thanks,
Leo
--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/SIP-2-0-477-Send-failed-477-TM-Route-tp7595929p7596472.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users