<div dir="ltr"><div dir="ltr">A little more info from the logs:<div><br></div><div><div>DBG:db_mysql:db_mysql_str2val: converting STRING [+441423369031]</div><div>DBG:db_mysql:db_mysql_str2val: converting STRING [10.98.0.11]</div><div>DBG:alias_db:alias_db_query: new URI [0] is [<a href="mailto:sip%3A%2B441423369031@10.98.0.11">sip:+441423369031@10.98.0.11</a>]</div><div>DBG:core:db_free_columns: freeing result columns at 0x7f5cf8f9b720</div><div>DBG:core:db_free_rows: freeing 1 rows</div><div>DBG:core:db_free_row: freeing row values at 0x7f5cf8f9b780</div><div>DBG:core:db_free_rows: freeing rows at 0x7f5cf8f9b770</div><div>DBG:core:db_free_result: freeing result set at 0x7f5cf8f9b6d8</div><div>DBG:dialplan:dp_translate_f: dpid is 1 partition is default</div><div>DBG:dialplan:dp_get_svalue: searching 15</div><div>DBG:dialplan:dp_translate_f: input is +441423369031</div><div>DBG:dialplan:dp_translate_f: Checking with dpid 1</div><div>DBG:dialplan:translate: Regex operator testing. Got result: -1</div><div>DBG:dialplan:test_match: test_match:[0] +441423369031</div><div>DBG:dialplan:translate: Regex operator testing. Got result: 0</div><div>DBG:dialplan:translate: Found a matching rule 0x7f5cf7233908: pr 1, match_exp \+[1-9][0-9]+$</div><div>DBG:dialplan:test_match: test_match:[0] +441423369031</div><div>DBG:dialplan:test_match: test_match:[1] 441423369031</div><div>DBG:dialplan:dp_translate_f: input +441423369031 with dpid 1 => output 441423369031</div><div>DBG:drouting:do_routing_1: matching prefix with strict len</div><div>DBG:drouting:do_routing: using dr group 1, rule_idx 0, username 441423369031</div><div>DBG:drouting:internal_check_rt: found rgid 1 (rule list 0x7f5cf72360a8)</div><div>DBG:drouting:push_gw_for_usage: adding gw [testpbx1] as "<a href="mailto:sip%3A01423369031@10.98.0.11">sip:01423369031@10.98.0.11</a>" in order 0</div><div>DBG:drouting:push_gw_for_usage: setting GW id [testpbx1] as avp</div><div>DBG:drouting:push_gw_for_usage: setting GW attr [testpbx1] as avp</div><div>DBG:drouting:do_routing: setting RULE attr [rule_441423369031]</div><div>DBG:core:parse_headers: flags=10000</div><div>DBG:auth:pre_auth: credentials with given realm not found</div><div>Jan 25 15:00:39 tsip3 /usr/local/sbin/opensips[12173]: ----- gw attr is <null></div><div>Jan 25 15:00:39 tsip3 /usr/local/sbin/opensips[12173]: ----- ruri is <a href="mailto:sip%3A01423369031@10.98.0.11">sip:01423369031@10.98.0.11</a></div><div>Jan 25 15:00:39 tsip3 /usr/local/sbin/opensips[12173]: proxy: MF - Fell into proxy auth</div></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 25 Jan 2019 at 14:51, Mark Farmer <<a href="mailto:farmorg@gmail.com">farmorg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><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-m_7134801609236709326gmail_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>
</blockquote></div><br clear="all"><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>