<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.gc-cs-link
        {mso-style-name:gc-cs-link;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>No problem Richard.  It’s not trivial to spot.  <o:p></o:p></p><p class=MsoNormal>And indeed, using an event route is probably the solution of your problem. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>From:</b> Users <users-bounces@lists.opensips.org> <b>On Behalf Of </b>Richard Revels<br><b>Sent:</b> Thursday, July 11, 2019 2:58 PM<br><b>To:</b> OpenSIPS users mailling list <users@lists.opensips.org><br><b>Subject:</b> Re: [OpenSIPS-Users] problem in dialplan<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span style='font-family:"Courier New"'>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.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p></div><div><div><div><div><div><div><div><div><div><div><div><p style='margin:0in;margin-bottom:.0001pt'> <o:p></o:p></p><div><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='border-collapse:collapse'><tr style='height:93.0pt'><td valign=top style='padding:5.0pt 5.0pt 5.0pt 5.0pt;height:93.0pt'><p style='margin:0in;margin-bottom:.0001pt'><span style='font-family:"Arial",sans-serif;color:black'><img width=136 height=99 style='width:1.4166in;height:1.0333in' id="_x0000_i1025" src="https://lh6.googleusercontent.com/RHbmOLdT6iYkO7QryjK_2Cp5MZ6rur2H4QGOu09yDtXiT6OXl687J-UpI-8Bt2aDI_EA4WKBBpCrPWaIWdF5RkhjruxRoI7GfYE89_m8r2IBg73T8mPpsJOOOJylFwGMVNyuXZZ2" alt=BandwidthMaroon.png></span><o:p></o:p></p></td><td valign=top style='padding:5.0pt 5.0pt 5.0pt 5.0pt;height:93.0pt'><p style='margin:0in;margin-bottom:.0001pt'> <o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt'><b><span style='font-family:"Arial",sans-serif;color:black'>Richard Revels</span></b><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black'>  </span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:#C3C3E6'>•</span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black'>  </span><span style='font-size:9.5pt'>System Architect II</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black'>900 Main Campus Drive, Suite 100, Raleigh, NC 27606</span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt'> <o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:#A64D79'>m:</span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black'> <span class=gc-cs-link>919-578-3421</span>  </span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:#C3C3E6'>•</span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black'> </span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:#A64D79'> o: </span><span class=gc-cs-link><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black'>919-727-4614</span></span><o:p></o:p></p><p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:#A64D79'>e: </span><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:black'><a href="mailto:rrevels@bandwidth.com" target="_blank">rrevels@bandwidth.com</a></span><o:p></o:p></p></td></tr></table></div></div></div></div></div></div></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Thu, Jul 4, 2019 at 4:21 AM johan de clercq <<a href="mailto:johan@democon.be">johan@democon.be</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Speaking just for myself. <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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 “.  <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Secondly, this problem/issue is not trivial to find, therefore this should be seen in the logs on very low loglevels (0 or 1).<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>BR,    <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>From:</b> 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<o:p></o:p></p></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><tt><span style='font-size:10.0pt'>The issue was cleared off-list.  After a successful startup, it would</span></tt><span style='font-size:10.0pt;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><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>This behavior was introduced in OpenSIPS 2.4.</span></tt><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>As I see it, an added problem is that script writers must now additionally</span></tt><span style='font-size:10.0pt;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><o:p></o:p></p><p><tt><span style='font-size:10.0pt'>The question is: is this "post-startup data unavailability" glitch</span></tt><span style='font-size:10.0pt;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<o:p></o:p></p><pre>Liviu Chircu<o:p></o:p></pre><pre>OpenSIPS Developer<o:p></o:p></pre><pre><a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><o:p></o:p></pre><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On 02.07.2019 19:51, johan de clercq wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><o:p> </o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>Users mailing list<o:p></o:p></pre><pre><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><o:p></o:p></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><o:p></o:p></pre></blockquote></div></div><p class=MsoNormal>_______________________________________________<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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></p></blockquote></div></div></body></html>