[OpenSIPS-Users] Dialog duration accounting question

Apostolos Pantsiopoulos regs at kinetix.gr
Thu Jan 20 13:40:38 CET 2011


I am using 1.6.4_notls.
I tried changing the script with no luck.

I currently have the following parameters for acc :

# ----- acc params -----
/* what sepcial events should be accounted ? */
modparam("acc", "early_media", 1)
modparam("acc", "report_ack", 1)
modparam("acc", "report_cancels", 1)
/* by default ww do not adjust the direct of the sequential requests.
    if you enable this parameter, be sure the enable "append_fromtag"
    in "rr" module */
modparam("acc", "detect_direction", 0)
/* account triggers (flags) */
modparam("acc", "failed_transaction_flag", 3)
modparam("acc", "log_flag", 1)
modparam("acc", "log_missed_flag", 2)
/* uncomment the following lines to enable DB accounting also */
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)
modparam("acc", "db_url", "flatstore:/var/log/acc")
modparam("acc", "cdr_flag", 3)

and the following parameters for dialog :

modparam("dialog","dlg_flag", 4)

is there anything else that I can set in order for the two modules to 
cooperate?

Regards,
-- 
-------------------------------------------
Apostolos Pantsiopoulos
Kinetix Tele.com R & D
email: regs at kinetix.gr
-------------------------------------------

On 20/1/2011 1:53 μμ, Bogdan-Andrei Iancu wrote:
> What version of opensips are you using ? Looking at your acc content, I
> guess the acc is generating START/STOP events, instead of generating
> directly a CDR (per call). So, it seams that acc does not see the dialog
> support...
>
> Try to change the script as:
>
> route {
> ### setflag(4); # remove this
> seturi("sip:333 at 192.168.253.55");
> append_branch("sip:333 at 192.168.253.10", "0.5");
> append_branch("sip:333 at 192.168.253.55", "0.5");
>
> serialize_branches(1);
>
> next_branches();
> t_on_failure("serial");
> create_dialog(); #### add this
> setflag(1);
> setflag(2);
> setflag(3);
> t_relay();
> }
>
> Regards,
> Bogdan
>
> Apostolos Pantsiopoulos wrote:
>> Hi Bogdan,
>>
>> Unfortunately this is not what I have.
>> I have an acc file (I falsely called it the CDRs file) which is in
>> "/var/log/acc/acc_5.log" due to the fact that I configured it like
>> this in acc :
>>
>> modparam("acc", "db_url", "flatstore:/var/log/acc")
>>
>> and the contents do not follow the "scripts/dbtext/opensips/acc"
>> description.
>>
>> All it contains is this (after a call) :
>>
>> ACK|22078SIPpTag001|15280SIPpTag0114|1-22078 at 192.168.253.55|200|OK|1295519625|
>>
>> BYE|22078SIPpTag001|15280SIPpTag0114|1-22078 at 192.168.253.55|200|OK|1295519626|
>>
>>
>> Regards,
>>
>>
>
>



More information about the Users mailing list