Hello,

I am working on version: kamailio 4.1.2 (x86_64/linux) and heaving troubles with drouting module.
The problem i am facing is that kamailio cannot enter routeid that is provided inside dr_rule table.

My last try was to use standard script file with placing following data before t_relay
        if (!do_routing("10")) {
                        sl_send_reply("403", "No route for You");
                        exit;
        }

additionaly i have added route definition 
route[1] {
        xlog("L_INFO","[INFO] Default route --- fn-$fn, fu-$fu, fU-$fU, ru-$ru, rU-$rU, sp-$sp, si-$si, tu-$tu, tU-$tU");
        uac_replace_from("sip:$fU@10.10.10.5");

}

My DB contains following data:
+--------+---------+--------+---------+----------+---------+--------+--------------+
| ruleid | groupid | prefix | timerec | priority | routeid | gwlist | description  |
+--------+---------+--------+---------+----------+---------+--------+--------------+
|      1 | 10      | 43     |         |        0 | 1       | 1      | test rule |
+--------+---------+--------+---------+----------+---------+--------+--------------+

+------+------+---------------+-------+------------+-------+-------------+
| gwid | type | address       | strip | pri_prefix | attrs | description |
+------+------+---------------+-------+------------+-------+-------------+
|    1 |   10 | 10.10.10.9 |     0 | NULL       | NULL  | FirstGW    |
+------+------+---------------+-------+------------+-------+-------------+

The result is that script is omitting route[1] without any purpose (xlog is not shown, $fU is not modified).

Could somebody help me to understand whats going on?

Thanks in advanced,
Mac