Hi All
I am trying to set mid_registrar to retry looking up the location of the
registration if it does not find it the first time
as when it receives the invite it runs a push script to wake up the phone and
then needs to lookup the new location and send the call but currently it just
gives 404
any ideas how to help me?
here is the code but it does not seem to be running as expected
if (!mid_registrar_lookup("location")) {
exec("/etc/opensips/pusher.sh $tu", , $var(out));
t_reply(404, "Not Found");
}
if (!mid_registrar_lookup("location")) {
xlog("2nd attempt to lookup location");
exec("/etc/opensips/pusher.sh $tu", , $var(out));
t_reply(404, "Not Found");
exit;
}
t_relay();
exit;
}
Sent with [Proton Mail](https://proton.me/) secure email.
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users