<p dir="ltr">Use the group 1 you created in the command drouting(1) to send out using group 1. </p>
<p dir="ltr">Thanks</p>
<p dir="ltr">Jeff Wilkie<br>
USIP Communications</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Sep 20, 2016 8:45 AM, &quot;Kirill Galinurov&quot; &lt;<a href="mailto:k.galinurov@gmail.com">k.galinurov@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Bogdan. I try drouting() without any parameters.<br>
<br>
2016-09-20 14:20 GMT+03:00 Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt;:<br>
&gt; Hello Kirill,<br>
&gt;<br>
&gt; I see the MI command succeeded, right? but the scrip do_routing() fails ?<br>
&gt; what are the parameters you pass to do_routing() ?<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Bogdan-Andrei Iancu<br>
&gt; OpenSIPS Founder and Developer<br>
&gt; <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.<wbr>com</a><br>
&gt;<br>
&gt;<br>
&gt; On 19.09.2016 15:50, Kirill Galinurov wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi all I try to use drouting module.<br>
&gt;&gt;<br>
&gt;&gt; Sep 19 17:18:28 [37245] DBG:drouting:do_routing: using dr group 1,<br>
&gt;&gt; rule_idx 0, username 79632780099<br>
&gt;&gt; Sep 19 17:18:28 [37245] DBG:drouting:internal_check_<wbr>rt: found rgid 1<br>
&gt;&gt; (rule list 0x7fe60616b800)<br>
&gt;&gt; Sep 19 17:18:28 [37245] INFO:drouting:do_routing: no destination for<br>
&gt;&gt; dr group 1, rule_idx 0, username 79632780099<br>
&gt;&gt; L_INFOdo_routing: No rules matching the URI<br>
&gt;&gt; In dr_rules<br>
&gt;&gt;   ruleid | groupid | prefix | timerec | priority | routeid | gwlist |<br>
&gt;&gt; attrs |  description<br>
&gt;&gt;<br>
&gt;&gt; --------+---------+--------+--<wbr>-------+----------+---------+-<wbr>-------+-------+--------------<wbr>--<br>
&gt;&gt;       0 | 1       | 7      |         |        1 |         | #cr1   |<br>
&gt;&gt;     | outgoing calls<br>
&gt;&gt;<br>
&gt;&gt; dr_carriers<br>
&gt;&gt;   id | carrierid | gwlist | flags | state | attrs | description<br>
&gt;&gt; ----+-----------+--------+----<wbr>---+-------+-------+----------<wbr>---<br>
&gt;&gt;   1 | cr1       | gw1;   |     0 |     2 | 0x2   | OUT<br>
&gt;&gt;<br>
&gt;&gt; dr_gateways<br>
&gt;&gt;   id | gwid | type |      address      | strip | pri_prefix | attrs |<br>
&gt;&gt; probe_mode | state |         socket          | description<br>
&gt;&gt;<br>
&gt;&gt; ----+------+------+-----------<wbr>--------+-------+------------+<wbr>-------+------------+-------+-<wbr>------------------------+-----<wbr>--------<br>
&gt;&gt;   1 | gw1  |    1 | sip:<a href="http://out_voip.ru" rel="noreferrer" target="_blank">out_voip.ru</a> |     0 |            |       |<br>
&gt;&gt;      0 |     0 | udp:XX.XX.XX.XX:5060 | out<br>
&gt;&gt;<br>
&gt;&gt; opensipsctl fifo dr_gw_status<br>
&gt;&gt; ID:: gw1 IP=XX.XXX.XXX.XX State=Active<br>
&gt;&gt;<br>
&gt;&gt; [root@sbc-msk opensips]# opensipsctl fifo dr_number_routing 1 79182220222<br>
&gt;&gt; Matched Prefix:: 7.<br>
&gt;&gt; What is wrong?<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
&gt;&gt;<br>
&gt;<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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-<wbr>bin/mailman/listinfo/users</a><br>
</blockquote></div></div>