[SR-Users] DRouting, routeid is not triggered

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 22 19:51:23 CEST 2014


Hello,

can you set debug=3 in kamailio.cfg and then send the syslog messages 
for routing a call matching the drouting rule?

Cheers,
Daniel

On 22/04/14 19:12, Maciej Bylica wrote:
> 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 at 10.10.10.5 <mailto:fU at 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
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140422/93c53cb4/attachment.html>


More information about the sr-users mailing list