<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello all<div><br></div><div>Very new OpenSIPS user trying to build my first real server.</div><div><br></div><div>Using debug logging I can see that my alias/dialplan operations seem to be working but when it reaches the do_routing the call never actually gets routed.</div><div><br></div><div>I've been trying to get this working for nearly 2 weeks now and I'm at a loss now. Please can someone help me?</div><div><br></div><div>From my script:</div><div><br></div><div><div>        $avp(gw_whitelist) = "testpbx1";</div><div>        if ( !do_routing("1","L","$avp(gw_whitelist)","$avp(rules_attributes)","$avp(gw_attributes)")) {</div><div>          send_reply("404","DID not found");</div><div>          xlog("do_routing: No rules matching the URI\n");</div><div>          exit;</div><div><br></div><div>Oddly, I never get the no rules log entry but it drops out of here & into the else if below which forces proxy auth. </div><div><br></div><div>My DB:</div><div><br></div><div><div>dr gateways</div><div>+----+--------------+------+---------------------+-------+------------+--------------+------------+-------+--------+-------------+</div><div>| id | gwid         | type | address             | strip | pri_prefix | attrs        | probe_mode | state | socket | description |</div><div>+----+--------------+------+---------------------+-------+------------+--------------+------------+-------+--------+-------------+</div><div>|  2 | BT_SDIN_BCTE |    1 | sip:xxx.xxx.xxx.xxx   |     0 |            | BT_SDIN_BCTE |          2 |     0 |        | Inbound     |</div><div>|  3 | BT_SDIN_GDH  |    1 | sip:xxx.xxx.xxx.xxx   |     0 |            | BT_SDIN_GDH  |          2 |     0 |        | Inbound     |</div><div>|  1 | BT_SDIN_LFH  |    1 | sip:xxx.xxx.xxx.xxx |     0 |            | BT_SDIN_LFH  |          2 |     0 |        | Inbound     |</div><div>|  4 | BT_SDIN_SEH  |    1 | sip:xxx.xxx.xxx.xxx  |     0 |            | BT_SDIN_SEH  |          2 |     0 |        | Inbound     |</div><div>|  5 | testpbx1     |    1 | sip:10.98.0.11      |     2 | 0          | testpbx1     |          2 |     0 |        | Inbound     |</div><div>+----+--------------+------+---------------------+-------+------------+--------------+------------+-------+--------+-------------+</div><div>dr groups</div><div>+----+--------------+----------------------------+---------+-------------+</div><div>| id | username     | domain                     | groupid | description |</div><div>+----+--------------+----------------------------+---------+-------------+</div><div>|  7 | 441423369031 | 10.98.0.11                 |       1 |             |</div><div>|  6 | 441423369031 | my.domain |       2 |             |</div><div>+----+--------------+----------------------------+---------+-------------+</div><div>dr carriers</div><div>+----+-----------+--------------------------------------------------+-------+-------+-------+-------------+</div><div>| id | carrierid | gwlist                                           | flags | state | attrs | description |</div><div>+----+-----------+--------------------------------------------------+-------+-------+-------+-------------+</div><div>|  1 | BT        | BT_SDIN_BCTE,BT_SDIN_GDH,BT_SDIN_LFH,BT_SDIN_SEH |     0 |     0 |       | BT SDIN     |</div><div>+----+-----------+--------------------------------------------------+-------+-------+-------+-------------+</div><div>dr rules</div><div>+--------+---------+--------------+---------+----------+---------+----------+-------------------+------------------+</div><div>| ruleid | groupid | prefix       | timerec | priority | routeid | gwlist   | attrs             | description      |</div><div>+--------+---------+--------------+---------+----------+---------+----------+-------------------+------------------+</div><div>|     13 | 1       | 441423369031 |         |        0 |         | testpbx1 | rule_441423369031 | Send to testpbx1 |</div><div>+--------+---------+--------------+---------+----------+---------+----------+-------------------+------------------+</div></div><div><br></div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div></div></div></div></div></div></div></div></div></div></div></div>