<div style="font-family: Arial; font-size: 14px;">Hi All</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">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</div><div style="font-family: Arial; font-size: 14px;">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</div><div style="font-family: Arial; font-size: 14px;">any ideas how to help me?</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;">here is the code but it does not seem to be running as expected</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><span>if (!mid_registrar_lookup("location")) {</span><div><span> exec("/etc/opensips/pusher.sh $tu", , $var(out));</span></div><div><span> t_reply(404, "Not Found");</span></div><div><span> }</span></div><div><br></div><div><span>if (!mid_registrar_lookup("location")) {</span></div><div><span> xlog("2nd attempt to lookup location");</span></div><div><span> exec("/etc/opensips/pusher.sh $tu", , $var(out));</span></div><div><span> t_reply(404, "Not Found");</span></div><div><span> exit;</span></div><div><span> }</span></div><span></span><br></div><div style="font-family: Arial; font-size: 14px;"><span> t_relay();</span><br><span></span>exit;</div><div style="font-family: Arial; font-size: 14px;">}</div><div style="font-family: Arial; font-size: 14px;"><br></div><div style="font-family: Arial; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial; font-size: 14px;">
<div class="protonmail_signature_block-user protonmail_signature_block-empty">
</div>
<div class="protonmail_signature_block-proton">
Sent with <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail</a> secure email.
</div>
</div>