[Kamailio-Users] 1.4.x Dialog module vs. :dlg_end_dlg: command

Martin Vít vit at lam.cz
Thu Oct 16 13:31:17 CEST 2008


> local_route {
>         if (is_method("BYE")) {
>                 acc_log_request("internal bye");
>                 append_hf("X-note: terminated by dialog module");
>         }
> }
>
> This will produce log in syslog
>
> Oct 16 18:51:48 kamailio kamailio[3773]: ACC: request accounted: 
> timestamp=1224183108;method=BYE;from_tag=qvoqi;to_tag=d5c2cecb-125b6;call_id=jvgwxjqkorxzpam at 172.24.92.208;co
> de=;reason=internal bye;from_uri=;to_uri=
>
> but it is not logged to the DB. Is it possible to log it into the DB? 
> (as I understood the setflag in local_route does not work so this could 
> be the problem for db accounting?)
>   
I've tried without success acc_db_request("Internal BYE", "acc") from
local_route

Oct 16 19:37:04 kamailio kamailio[3937]: ERROR:core:db_use_table:
invalid parameter value
Oct 16 19:37:04 kamailio kamailio[3937]: ERROR:acc:acc_db_request: error
in use_table

when I use the same command outside local_route, acc_db_request works.






More information about the Users mailing list