Hello everybody!

 

I have a such problem with ACC module.

Calls was accounted but only INVITE and BYE requests has appeared in acc table. ACK is absent.

Kamailio 3.0 was installed from GIT.

 

Thank you for any help

 

# ----- acc params -----

modparam("acc", "early_media", 0)

modparam("acc", "report_ack", 1)

modparam("acc", "report_cancels", 1)

modparam("acc", "detect_direction", 1)

modparam("acc", "db_flag", 1)

modparam("acc", "db_missed_flag", 2)

modparam("acc", "failed_transaction_flag", 29)

modparam("acc", "db_table_acc", "acc")

modparam("acc", "db_table_missed_calls", "missed_calls")

modparam("acc", "acc_method_column", "method")

modparam("acc", "acc_from_tag_column", "from_tag")

modparam("acc", "acc_to_tag_column", "to_tag")

modparam("acc", "acc_callid_column", "callid")

modparam("acc", "acc_sip_code_column", "sip_code")

modparam("acc", "acc_sip_reason_column", "sip_reason")

modparam("acc", "acc_time_column", "time")

modparam("acc", "db_url", "xxxxxxxxxxxxxxxxxxxxxxxx")

modparam("acc", "db_extra",

ššššššššššš "src_user=$avp(i:2);src_domain=$si;dst_ouser=$avp(i:1);dst_user=$rU;dst_domain=$rd")

 

route {

sip_trace();

šsetflag(30);

š if (has_totag()) {

šš if (loose_route()) {

ššššš if (is_method("BYE")) {

šššššš setflag(1);

šššššš setflag(29);

ššššš }

ššššš if (is_method("ACK")) {

ššššš xlog("L_NOTICE", "ACK detected"); # I see this line in syslog

šššššš setflag(1);

šššššš setflag(29);

ššššš }

ššššš route("relay");

ššššš exit;

ššš } else {

šššššš if ( is_method("ACK") ) {

šššššššš if ( t_check_trans() ) {

ššššššššš setflag(1);

ššššššššš route("relay");

ššššššššš exit;

šššššššš } else {

šššššššššš exit;

šššššššš }

šššššš }

ššššš }

ššš }