<div>Bogdan, it seems to be working now. Thank you!</div><div> </div><div>Additional moments.</div><div> </div><div>1) As i see in log do_routing returns the same error, '-1', in "no prefix in dr_rules" as weel as in "All the gateways are disabled". For my project it is enough, but, in a future, i think, it will be more useful if do_routing will returns several codes, one for each reason.</div><div>2) Now, in situation of "All the gateways are disabled" Opensips returns 404 without any script functions. So if 1) will be released, admin will have possibility to chose which SIP code Opensips will send in each reason.</div><div> </div><div>-- </div><div>С уважением, Денис.</div><div>Best regards, Denis</div><div> </div><div> </div><div> </div><div>05.04.2017, 15:02, "Bogdan-Andrei Iancu" <bogdan@opensips.org>:</div><blockquote type="cite"><div bgcolor="#FFFFFF">Hi Denis,<br /><br />Thank you for your help - the problem was found and fixed in head, 2.3 , 2.2 and 1.11 versions.<br /><br />Please update from GIT and give it a try. Let me know if it works for you now.<br /><br />Best regards,<pre>Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre><div>On 04/04/2017 08:38 PM, Bogdan-Andrei Iancu wrote:</div><blockquote cite="mid:a5f4f709-be20-14ac-b7c8-e77e412b4da7@opensips.org" type="cite"> Could you send me (off list) the full content of this routeid route ?<br /><br />Thanks,<pre>Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre><div>On 04/04/2017 06:16 PM, Denis wrote:</div><blockquote cite="mid:3238291491318995@web41j.yandex.ru" type="cite"><div>Yes, without routeid Opensips returns 404 code!</div><div> </div><div>-- </div><div>С уважением, Денис.</div><div>Best regards, Denis</div><div> </div><div> </div><div> </div><div>04.04.2017, 17:59, "Bogdan-Andrei Iancu" <a href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a>:</div><blockquote type="cite"><div bgcolor="#FFFFFF">And if you remove the routeid (in the rule definition), does the routing works ok ?<br /><br />Regards,<pre>Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre><div>On 04/04/2017 05:56 PM, Denis wrote:</div><blockquote cite="mid:2995341491317765@web47g.yandex.ru" type="cite"><div>No, i don`t</div><div> </div><div>-- </div><div>С уважением, Денис.</div><div>Best regards, Denis</div><div> </div><div> </div><div> </div><div>04.04.2017, 16:22, "Bogdan-Andrei Iancu" <a href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a>:</div><blockquote type="cite"><div bgcolor="#FFFFFF">Do you do an "drop" or "exit" in that routeid ??<pre>Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a href="http://www.opensips-solutions.com/">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre><div>On 04/04/2017 03:16 PM, Denis wrote:</div><blockquote cite="mid:2200711491308210@web4m.yandex.ru" type="cite"><div>Bogdan,</div><div> </div><div>Ok, dr_rules has filled 'routeid' column.</div><div>In routeid i, using dialplan, verify dialed prefix for some reason. If dialed prefix verified i make some action, if not, returns to the parent route.</div><div>In my example, dialed prefix does not verified.</div><div> </div><div>So, route with do_routing</div><div><pre style="background-color:#ffffff;color:#000000;font-family:"Courier New";font-size:9,0pt;">951: xlog ("Prepare routing");
952: if (!do_routing("$avp(5)",,,"$avp(300)","$avp(3)",)) {  
953: send_reply("404", "Not found");
954: exit;
955: }</pre><div><pre style="background-color:#ffffff;color:#000000;font-family:"Courier New";font-size:9,0pt;">route [routeid] {   
1848: if (dp_translate("20004", "$rU/$rU", "$avp(999)")) {

  ........
} else {
   ......
}  
1867: }</pre></div><div> </div><div>The last strings for the call flow in syslog:</div></div><div><div> </div><div>:951][me][core xlog]</div><div>:952][me][module do_routing]</div><div><div>:1867][me][core if]</div><div>:1848][me][module dp_translate]</div></div><div><a>INFO:drouting:do_routing</a>: All the gateways are disabled</div><div> </div><div>That is all. After that only my CANCEL from the caller, because there is no provisioning message after 100 Trying from Opensips.</div></div><div> </div><div>-- </div><div>С уважением, Денис.</div><div>Best regards, Denis</div><div> </div><div> </div><div> </div><div>04.04.2017, 14:14, "Bogdan-Andrei Iancu" <a href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a>:</div><blockquote type="cite"><div bgcolor="#FFFFFF">Hi Denis,<br /><br />Again, as drouting is not doing any signalling action, it CANNOT block/freeze your OpenSIPS.<br /><br />Use script_trace() function to see how your INVITE is handled :<br />    <a href="http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43">http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc43</a><br /><br />Regards,</div></blockquote></blockquote></div></blockquote></blockquote></div></blockquote></blockquote></blockquote></div></blockquote>