[OpenSIPS-Devel] Crash when using drouting module.
    Sergio Gutierrez 
    saguti at gmail.com
       
    Wed Mar  4 06:30:40 CET 2009
    
    
  
Hello to all members.
I am facing some problems trying to use drouting module.
In my case, OpenSIPS is going to work just as proxy, to forward inbound
calls to several IP/PBX which handle blocks of numeration identified by ther
DID's
My setup is following:
Opensips script:
...
#Route to handle inbound routes
route[1] {
        # for INVITEs enable some additional helper routes
        if (is_method("INVITE")) {
                t_on_branch("2");
                t_on_reply("2");
                t_on_failure("1");
        }
        $avp(i:1)=1;
        do_routing("$avp(i:1)");
        xlog("L_ERR", "Listo drouting\n\n\n\n");
        if(use_next_gw())
        {
                if (!t_relay()) {
                        sl_reply_error();
                };
                exit;
        }
        else
        {
                sl_send_reply("503", "No destination available");
                exit;
        };
}
- Drouting tables:
mysql> select * from dr_rules;
+--------+---------+--------+-----------------+----------+---------+--------+--------------------+
| ruleid | groupid | prefix | timerec         | priority | routeid | gwlist
| description        |
+--------+---------+--------+-----------------+----------+---------+--------+--------------------+
|      1 | 1       | 403000 | 20090101T000000 |        0 |       1 | 1
| Test Rule |
+--------+---------+--------+-----------------+----------+---------+--------+--------------------+
1 row in set (0.00 sec)
mysql> select * from dr_gateways;
+------+------+----------------+-------+------------+-------+-------------------+
| gwid | type | address        | strip | pri_prefix | attrs |
description       |
+------+------+----------------+-------+------------+-------+-------------------+
|    1 |   10 | 192.168.10.10 |     0 |            | NULL  | Test GW |
+------+------+----------------+-------+------------+-------+-------------------+
Now, when I dial a call, I got the following output in log:
Mar  4 00:05:17 [27497] DBG:drouting:do_routing: using dr group 1
Mar  4 00:05:17 [27497] DBG:drouting:internal_check_rt: found rgid 1 (rule
list fc9a1608)
Mar  4 00:05:17 [27497] DBG:drouting:ac_tm_fill: ---> fill = Wed Mar  4
00:05:17 2009
Mar  4 00:05:17 [27497] DBG:drouting:do_routing: using dr group 1
Mar  4 00:05:17 [27497] DBG:drouting:internal_check_rt: found rgid 1 (rule
list fc9a1608)
Mar  4 00:05:17 [27497] DBG:drouting:ac_tm_fill: ---> fill = Wed Mar  4
00:05:17 2009
Mar  4 00:05:17 [27497] DBG:drouting:do_routing: using dr group 1
Mar  4 00:05:17 [27497] DBG:drouting:internal_check_rt: found rgid 1 (rule
list fc9a1608)
Mar  4 00:05:17 [27497] DBG:drouting:ac_tm_fill: ---> fill = Wed Mar  4
00:05:17 2009
Mar  4 00:05:17 [27497] DBG:drouting:do_routing: using dr group 1
Mar  4 00:05:17 [27497] DBG:drouting:internal_check_rt: found rgid 1 (rule
list fc9a1608)
Mar  4 00:05:17 [27497] DBG:drouting:ac_tm_fill: ---> fill = Wed Mar  4
00:05:17 2009
Mar  4 00:05:17 [27497] DBG:drouting:do_routing: using dr group 1
Mar  4 00:05:17 [27497] DBG:drouting:internal_check_rt: found rgid 1 (rule
list fc9a1608)
Mar  4 00:05:17 [27497] DBG:drouting:ac_tm_fill: ---> fill = Wed Mar  4
00:05:17 2009
Mar  4 00:05:17 [27497] DBG:drouting:do_routing: using dr group 1
Mar  4 00:05:17 [27497] DBG:drouting:internal_check_rt: found rgid 1 (rule
list fc9a1608)
Mar  4 00:05:17 [27497] DBG:drouting:ac_tm_fill: ---> fill = Wed Mar  4
00:05:17 2009
Mar  4 00:05:17 [27497] DBG:drouting:do_routing: using dr group 1
Mar  4 00:05:17 [27497] DBG:drouting:internal_check_rt: found rgid 1 (rule
list fc9a1608)
Mar  4 00:05:17 [27497] DBG:drouting:ac_tm_fill: ---> fill = Wed Mar  4
00:05:17 2009
This log appears until OpenSIPS crashes.
Thanks in advance for all your help.
-- 
Sergio.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/devel/attachments/20090304/099c789a/attachment.htm 
    
    
More information about the Devel
mailing list