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@192.168.253.55");
        append_branch("sip:333@192.168.253.10", "0.5");
        append_branch("sip:333@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: r...@kinetix.gr
-------------------------------------------

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to