<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">We are using dialplan to create some site specific defaults in the startup route.  If this is only encountered on startup I guess changing to an event route would work if an event is generated when the rules become available.  Thank you for surfacing this problem.  It may explain an issue I've been looking at for the last few hours.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"> </p><div dir="ltr" style="margin-left:0pt"><table style="border:none;border-collapse:collapse"><colgroup><col width="150"><col width="474"></colgroup><tbody><tr style="height:93pt"><td style="vertical-align:top;padding:5pt 5pt 5pt 5pt"><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/RHbmOLdT6iYkO7QryjK_2Cp5MZ6rur2H4QGOu09yDtXiT6OXl687J-UpI-8Bt2aDI_EA4WKBBpCrPWaIWdF5RkhjruxRoI7GfYE89_m8r2IBg73T8mPpsJOOOJylFwGMVNyuXZZ2" width="136" height="99" style="border:none" alt="BandwidthMaroon.png"></span></p></td><td style="vertical-align:top;padding:5pt 5pt 5pt 5pt"><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"> </p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">Richard Revels</span><span style="font-size:9pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">  </span><span style="font-size:9pt;font-family:Arial;color:rgb(195,195,230);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">•</span><span style="font-size:9pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">  </span><span style="font-size:12.8px">System Architect II</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">900 Main Campus Drive, Suite 100, Raleigh, NC 27606</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"> </p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(166,77,121);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">m:</span><span style="font-size:9pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> <span title="Call with Google Voice"><span id="gc-number-0" class="gc-cs-link" title="Call with Google Voice">919-578-3421</span></span>  </span><span style="font-size:9pt;font-family:Arial;color:rgb(195,195,230);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">•</span><span style="font-size:9pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:9pt;font-family:Arial;color:rgb(166,77,121);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> o: </span><span style="font-size:9pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><span title="Call with Google Voice"><span id="gc-number-1" class="gc-cs-link" title="Call with Google Voice">919-727-4614</span></span></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(166,77,121);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">e: </span><span style="font-size:9pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:rrevels@bandwidth.com" target="_blank">rrevels@bandwidth.com</a></span></p></td></tr></tbody></table></div></span></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 4, 2019 at 4:21 AM johan de clercq <<a href="mailto:johan@democon.be">johan@democon.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="white" lang="EN-US"><div class="gmail-m_-65777879208836705WordSection1"><p class="MsoNormal"><span style="color:windowtext">Speaking just for myself. <u></u><u></u></span></p><p class="MsoNormal"><span style="color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:windowtext">As opensips gains traction in production systems, the error when the rules are not loaded should be more clear, now it is : “No information available for dpid “.  <u></u><u></u></span></p><p class="MsoNormal"><span style="color:windowtext">Secondly, this problem/issue is not trivial to find, therefore this should be seen in the logs on very low loglevels (0 or 1).<u></u><u></u></span></p><p class="MsoNormal"><span style="color:windowtext"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:windowtext">BR,    <u></u><u></u></span></p><p class="MsoNormal"><span style="color:windowtext"><u></u> <u></u></span></p><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> <b>On Behalf Of </b>Liviu Chircu<br><b>Sent:</b> Thursday, July 4, 2019 10:07 AM<br><b>To:</b> <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br><b>Subject:</b> Re: [OpenSIPS-Users] problem in dialplan<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><tt><span style="font-size:10pt">The issue was cleared off-list.  After a successful startup, it would</span></tt><span style="font-size:10pt;font-family:"Courier New""><br><tt>take a while before the dialplan rules would become available, since child</tt><br><tt>process #1, responsible for loading the dialplan rules was stuck in</tt><br><tt>a DNS lookup while loading the drouting rules.</tt></span><u></u><u></u></p><p><tt><span style="font-size:10pt">This behavior was introduced in OpenSIPS 2.4.</span></tt><u></u><u></u></p><p><tt><span style="font-size:10pt">As I see it, an added problem is that script writers must now additionally</span></tt><span style="font-size:10pt;font-family:"Courier New""><br><tt>write opensips.cfg code that handles the "rules are not yet available"</tt><br><tt>case while processing SIP traffic.  And I do not recall any support for</tt><br><tt>distinguishing between "rules not available" and "rule not matched" in any</tt><br><tt>of the data matching modules.</tt></span><u></u><u></u></p><p><tt><span style="font-size:10pt">The question is: is this "post-startup data unavailability" glitch</span></tt><span style="font-size:10pt;font-family:"Courier New""><br><tt>something worth paying attention to, or is it harmless?  Example affected</tt><br><tt>modules:</tt></span>  drouting, dialplan<u></u><u></u></p><pre>Liviu Chircu<u></u><u></u></pre><pre>OpenSIPS Developer<u></u><u></u></pre><pre><a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><u></u><u></u></pre><div><p class="MsoNormal">On 02.07.2019 19:51, johan de clercq wrote:<u></u><u></u></p></div><blockquote style="margin-top:5pt;margin-bottom:5pt"><p class="MsoNormal"><br><br><u></u><u></u></p><pre>_______________________________________________<u></u><u></u></pre><pre>Users mailing list<u></u><u></u></pre><pre><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><u></u><u></u></pre><pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></pre></blockquote></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>