Hi Apostolos,
In the CDRs generated by the ACC module, you have a "duration" and
"setup_time" fields - these are automatically set. You do not have to
use the db_extra for that.
Can you check if those fields are populated ?
Regards,
Bogdan
Apostolos Pantsiopoulos wrote:
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:[email protected]");
append_branch("sip:[email protected]", "0.5");
append_branch("sip:[email protected]", "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,
--
Bogdan-Andrei Iancu
OpenSIPS Event - expo, conf, social, bootcamp
2 - 4 February 2011, ITExpo, Miami, USA
OpenSIPS solutions and "know-how"
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users