<div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13.333333015441895px;white-space:nowrap">Hello,</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13.333333015441895px;white-space:nowrap"><br>
</span></div><div>I am working on version: kamailio 4.1.2 (x86_64/linux) and heaving troubles with drouting module.</div><div>The problem i am facing is that kamailio cannot enter routeid that is provided inside dr_rule table.</div>
<div><br></div><div>My last try was to use standard script file with placing following data before t_relay</div><div><div>        if (!do_routing("10")) {</div><div>                        sl_send_reply("403", "No route for You");</div>
<div>                        exit;</div><div>        }</div></div><div><br></div><div>additionaly i have added route definition </div><div>route[1] {<br></div><div><div>        xlog("L_INFO","[INFO] Default route --- fn-$fn, fu-$fu, fU-$fU, ru-$ru, rU-$rU, sp-$sp, si-$si, tu-$tu, tU-$tU");</div>
<div>        uac_replace_from("sip:$<a href="mailto:fU@10.10.10.5">fU@10.10.10.5</a>");</div><div><br></div><div>}</div></div><div><br></div><div>My DB contains following data:</div><div><div>+--------+---------+--------+---------+----------+---------+--------+--------------+</div>
<div>| ruleid | groupid | prefix | timerec | priority | routeid | gwlist | description  |</div><div>+--------+---------+--------+---------+----------+---------+--------+--------------+</div><div>|      1 | 10      | 43     |         |        0 | 1       | 1      | test rule |</div>
<div>+--------+---------+--------+---------+----------+---------+--------+--------------+</div></div><div><br></div><div><div>+------+------+---------------+-------+------------+-------+-------------+</div><div>| gwid | type | address       | strip | pri_prefix | attrs | description |</div>
<div>+------+------+---------------+-------+------------+-------+-------------+</div><div>|    1 |   10 | 10.10.10.9 |     0 | NULL       | NULL  | FirstGW    |</div><div>+------+------+---------------+-------+------------+-------+-------------+</div>
</div><div><br></div><div>The result is that script is omitting route[1] without any purpose (xlog is not shown, $fU is not modified).</div><div><br></div><div>Could somebody help me to understand whats going on?</div><div>
<br></div><div>Thanks in advanced,</div><div>Mac</div></div>