[OpenSIPS-Users] retry (!mid_registrar_lookup("location"))

nutxase nutxase at proton.me
Mon Dec 5 16:54:55 UTC 2022


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221205/ec389fb8/attachment.html>


More information about the Users mailing list