[OpenSIPS-Users] Dialog duration accounting question

Apostolos Pantsiopoulos regs at kinetix.gr
Wed Jan 19 14:38:23 CET 2011


Hi,

I am new to Opensips and I am struggling to include some extra 
information to my CDRs.

I am using the db_flatstore.so module and it works fine. I was able to 
get the basic CDRs that the acc module provides.

Then I tried using the dialog module in order to include 'dialog scope' 
information in my CDRs e.g. the call duration. But I cannot get it to work.

I have set the config parameters for the modules :

...
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)
modparam("acc", "db_url", "flatstore:/var/log/acc")
modparam("acc", "cdr_flag", 3)
modparam("acc", "db_extra","ds=$DLG_lifetime")

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

My n00b route script is this :

...
route {
         setflag(4);
         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");
         setflag(1);
         setflag(2);
         setflag(3);
         t_relay();
}

failure_route["serial"]
{
   if (!next_branches()) {
     exit;
   }

   t_on_failure("serial");
   setflag(1);
   setflag(2);
   setflag(3);
   t_relay();
}
...

What am I doing wrong?

Regards,

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



More information about the Users mailing list