<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Try adding xlog entries after your lookups, to verify its hitting where you think it is.</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">separate to two blocks, and add xlog to see if is hitting them both.</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-size:14px;line-height:1.5;font-family:Arial;margin:0px;background-color:rgb(255, 255, 255)" class="ContentPasted0">if
 (!mid_registrar_lookup("location")) {</span><span style="font-family:Arial;font-size:14px;background-color:rgb(255, 255, 255);display:inline !important"></span>
<div style="font-size:14px;line-height:1.5;font-family:Arial;margin:0px;background-color:rgb(255, 255, 255)">
<span style="margin:0px" class="ContentPasted0">     xlog("did not find phone 1<span><sup>st</sup> lookup");</span></span></div>
<div style="font-size:14px;line-height:1.5;font-family:Arial;margin:0px;background-color:rgb(255, 255, 255)">
<span style="margin:0px" class="ContentPasted0"><span>}</span></span></div>
<div style="font-size:14px;line-height:1.5;font-family:Arial;margin:0px;background-color:rgb(255, 255, 255)">
<span style="margin:0px" class="ContentPasted0"><span><br>
</span></span></div>
<div style="font-size:14px;line-height:1.5;font-family:Arial;margin:0px;background-color:rgb(255, 255, 255)">
<span style="margin:0px" class="ContentPasted0"><span style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted0">if (!mid_registrar_lookup("location")) {</span></span></div>
<div style="font-size:14px;line-height:1.5;font-family:Arial;margin:0px;background-color:rgb(255, 255, 255)" class="elementToProof">
<span style="margin:0px" class="ContentPasted0"><span style="margin:0px;background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted0">          xlog("2<span><sup>nd</sup> lookup did not find phone, sending 404");</span></span></span></div>
<div style="font-size:14px;line-height:1.5;font-family:Arial;margin:0px;background-color:rgb(255, 255, 255)" class="elementToProof">
<span style="margin:0px" class="ContentPasted0">           t_reply(404, "Not Found");</span></div>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><span style="font-family:Arial;font-size:14px;background-color:rgb(255, 255, 255);display:inline !important" class="ContentPasted0">}</span><br>
</span></div>
<div class="elementToProof"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Users <users-bounces@lists.opensips.org> on behalf of nutxase via Users <users@lists.opensips.org><br>
<b>Sent:</b> Wednesday, December 7, 2022 12:42 PM<br>
<b>To:</b> OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject:</b> [OpenSIPS-Users] mid_registrar</font>
<div> </div>
</div>
<div>
<p></p>
<div style="background-color:#FFFFCC; width:100%; border-style:solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:'Calibri'; color:Red; text-align:left">
<span style="color:#9C6500">EXTERNAL:</span> Caution, this email originated from outside the organization. Do not click links or open attachments unless you can verify the sender and know the content is safe.</div>
<br>
<p></p>
<div>
<div style="font-family:Arial; font-size:14px">Hi Guys</div>
<div style="font-family:Arial; font-size:14px"><br>
</div>
<div style="font-family:Arial; font-size:14px">How can i make it that if an invite comes in and the location is not found that it will then try look again for the location before sending 404?</div>
<div style="font-family:Arial; font-size:14px"><br>
</div>
<div style="font-family:Arial; font-size:14px">i have tried</div>
<div style="font-family:Arial; font-size:14px"><br>
</div>
<div style="font-family:Arial; font-size:14px"><span style="line-height:1.5">if (!mid_registrar_lookup("location")) {</span>
<div style="line-height:1.5"><span>     sleep (5);</span></div>
<div style="line-height:1.5"><span>    <span style="background-color:rgb(255,255,255); display:inline!important">if (!mid_registrar_lookup("location")) {</span></span></div>
<div style="line-height:1.5"><span>           t_reply(404, "Not Found");</span></div>
<div style="line-height:1.5"><span>      }</span></div>
}</div>
<div style="font-family:Arial; font-size:14px"><br>
</div>
<div class="x_protonmail_signature_block" style="font-family:Arial; font-size:14px">
<div class="x_protonmail_signature_block-user x_protonmail_signature_block-empty">
</div>
<div class="x_protonmail_signature_block-proton">Sent with <a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fproton.me%2F&data=05%7C01%7Cadierlam%40ptgi-ics.com%7C1c5656d618cb40b6b4ac08dad87aaad1%7Cf4c81856eb684f3c8c148d91aa0e37df%7C0%7C0%7C638060318631933087%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Nzbo8DseMA9P%2FojWdt99yvj1HMOI9F3X2zjCpZNcw5A%3D&reserved=0" data-auth="Verified" originalsrc="https://proton.me/" shash="x1nV5EiCwWjgZpFLqovC/9VXQoceVukn5xEEAAuvH9Jbp74xmW2eUYD2hjAPHphsi7Q6cEDfMQJiZfgi8lVuD+hsadeOeso7un5YB+R8EyHwItRDtsrYS8bXxOBXbHWmw2tt0xsnk+vyifeajMrAeXV8TYORlRapSrZx9sXfjK8=">
Proton Mail</a> secure email. </div>
</div>
</div>
</div>
<p style="font-size:11pt;font-family:Calibri,sans-serif;"><b><span style="color:black;font-size:10pt;font-family:Century Gothic,sans-serif;">CONFIDENTIALITY NOTICE</span></b>
<span><span style="color:black;font-size:10pt;font-family:Times New Roman,serif;"> </span></span>
<span style="color:black;font-size:10pt;font-family:Century Gothic,sans-serif;"><br aria-hidden="true">
</span><span style="font-size:10pt;font-family:Century Gothic,sans-serif;">This email is solely for the use of the intended recipient(s) and may contain information and attachments that are confidential, privileged or otherwise sensitive in nature.  
<span style="color:black;">Please do not disseminate this </span>email or any of its attachments
<span style="color:black;">without the permission of the sender.  If this </span>
email <span style="color:black;">has been received in error, please </span>do not read, copy, use, forward or disclose the email or any of its attachments to others.  Instead, immediately notify the sender by replying to this email and then delete it from your
 system.  Transmission of this email <span style="color:black;">is not to be construed as a waiver of any rights of confidentiality or applicable privilege.
</span></span></p>
<br>
<p style="font-size:11pt;font-family:Calibri,sans-serif;"><b><span style="color:black;font-size:10pt;font-family:Century Gothic,sans-serif;">NO BINDING AGREEMENT</span></b>
<span><span style="color:black;font-size:10pt;font-family:Century Gothic, sans-serif;"> </span></span>
<span style="color:black;font-size:10pt;font-family:Century Gothic,sans-serif;"><br aria-hidden="true">
</span><span style="font-size:10pt;font-family:Century Gothic, sans-serif;">This email does not constitute an agreement to conduct transactions by electronic means and does not create any legally binding contract or enforceable obligation in the absence of
 a fully signed written contract.</span> </p>
</body>
</html>