[Kamailio-Users] problem with ACC module

Alex Balashov abalashov at evaristesys.com
Thu Jan 28 08:17:46 CET 2010


Are the missing ACKs end-to-end ACKs (the kinds matched by 
t_check_trans()), or hop-by-hop ACKs -- which are not, and for which 
you are not setting setflag(1)?

On 01/28/2010 02:00 AM, Denis Putyato wrote:

> 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;
>
>           }
>
>         }
>
>        }
>
>      }
>
>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users


-- 
Alex Balashov - Principal
Evariste Systems LLC

Tel    : +1 678-954-0670
Direct : +1 678-954-0671
Web    : http://www.evaristesys.com/



More information about the Users mailing list