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