After converting cfg  from 2.2 to 3.1 acc is not working as expected.

if (has_totag()) {

if (loose_route()) {

if (is_method("BYE")) {
#this is not getting logged at all
.....

route[DROUTING] {

do_accounting("db","cdr");

.....

local_route {

if (is_method("BYE") && $DLG_dir=="UPSTREAM") {

# this is getting logged properly to db acc table


when the call ends by a timeout and invokes local_route the cdr is being written to db, however when end user upstream or downstream ends the call I see dialog being removed form sql but cdr is not being written to db. No attempt no sql error, As a test I removed cdr option from do_accounting and INVITE is written to db but not BYE. After increasing log_level to 5 the only thing associated with acc is:
DBG:acc:acc_cdr_cb: dlg is null!






_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to