[SR-Users] RES: event_route and acc_db_request().

Alexandre Abreu alexandre.abreu at redt.com.br
Tue Mar 22 14:50:15 CET 2011


Hello.

I have found another important thread "Catching internally generated BYE
event & other" regarding this goal.

Alex,
Do you mind to share how did you catch the internally generated BYE? (by
just reading the thread I can't know if you really did)

As far as I understand, the event_route could be used for this (accounting)
but specially acc_db_request() does not seem to work. Maybe I am missing
something basic or there is other approach to reach this target.

 Thanks for any tip,
Alexandre.

De: Alexandre Abreu [mailto:alexandre.abreu at redt.com.br] 
Enviada em: quinta-feira, 17 de março de 2011 13:45
Para: sr-users at lists.sip-router.org
Assunto: event_route and acc_db_request().

Hello.

Why acc_db_request() doesn’t work on event_route?

Mar 17 13:15:44 devel kamailio[25209]: INFO: <script>: Routing locally
generated BYE to <sip:2000000 at 192.168.200.114:9297>
Mar 17 13:15:44 devel kamailio[25209]: ERROR: <core> [db.c:421]: invalid
parameter value
Mar 17 13:15:44 devel kamailio[25209]: ERROR: acc [acc.c:391]: error in
use_table
Mar 17 13:15:44 devel kamailio[25209]: INFO: <script>: Routing locally
generated BYE to <sip:2000001 at 192.168.200.149:7335>
Mar 17 13:15:44 devel kamailio[25209]: ERROR: <core> [db.c:421]: invalid
parameter value
Mar 17 13:15:44 devel kamailio[25209]: ERROR: acc [acc.c:391]: error in
use_table

event_route[tm:local-request] {

        xlog("L_INFO", "Routing locally generated $rm to <$ru>\n");

        if (is_method("BYE"))
                acc_db_request("rtp-timeout", “acc”);
}

If I change acc_db_request() to acc_log_request() everything works fine, but
this BYE should go to database for accounting purposes.

I am using GIT version from Kamailio branch 3.1.



More information about the sr-users mailing list