[OpenSIPS-Users] DRouting - routeid, prefix questions

Maciej Bylica mbsip at gazeta.pl
Tue Oct 5 00:11:10 CEST 2010


Hello,

I am playing around with DRouting module plus my opensips 1.6.3-notls.
The wiki is quite nice written, but i have some doubts here.
My config is pretty simple.

if ($rU=~"^xxxxxxxx"){
...
...
route(1) }

if ($rU=~"^yyyyyyyy"){
...
...
route(2) }
...

route[1] {
        if (!do_routing("1")) {
                sl_reply_error();
                exit;
        };
        t_on_failure("10");
        if (!t_relay()) {
                sl_reply_error();
        };
        exit;
}

route[2] {
        if (!do_routing("2")) {
                sl_reply_error();
                exit;
        };
        t_on_failure("11");
        if (!t_relay()) {
                sl_reply_error();
        };
        exit;
}
and it works fine, but...
1) there is routeid column associated with dr_rules table. Frankly i
have no idea what's that and how to use it?


More information about the Users mailing list