[OpenSIPS-Users] ACC CDR
M.Khaled W Chehab
kchehab at icucall.com
Thu Apr 4 14:13:56 CEST 2013
Hi Bogdan,
Already dialog module loaded ,
$var(a) = "udp:"+$avp(termip)+":5060";
$fs = $var(a) ;
setflag(1); # do accounting
setflag(2); #Missed calls
#setflag(3); #transaction falis
setflag(4); #CDR flag
# create dialog with timeout
if ( !create_dialog("B") ) {
send_reply("500","Internal Server Error");
exit;
}
$dlg_val("customerid") = $avp(Cusid);
engage_media_proxy();
topology_hiding();
please advice
regards
From: Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
Sent: Thursday, April 04, 2013 3:10 PM
To: M.Khaled W Chehab
Cc: 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] ACC CDR
Hi Khaled,
Load the "dialog" module too and do "create_dialog()" for the initial
INVITEs.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 04/03/2013 06:48 PM, M.Khaled W Chehab wrote:
Hello,
I already add the below config to my script and no call can be found in
cdrs table
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)
modparam("acc", "log_missed_flag", 2)
modparam("acc", "failed_transaction_flag", 3)
modparam("acc", "cdr_flag", 4)
if (!has_totag() &&is_method("INVITE")) {
setflag(1); # do accounting
setflag(2); #Missed calls
#setflag(3); #transaction falis
setflag(4); #CDR flag
whats missing ?
Regards
Khaled
From: Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
Sent: Wednesday, April 03, 2013 6:25 PM
To: OpenSIPS users mailling list
Cc: M.Khaled W Chehab
Subject: Re: [OpenSIPS-Users] ACC CDR
Hello,
Use the ACC module together with DIALOG module and set the cdr_flag option
in ACC (see
http://www.opensips.org/html/docs/modules/1.9.x/acc.html#id294245) - you
need to set this flag at at INVITE time only (plus one of the acc flags).
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 04/03/2013 04:55 PM, M.Khaled W Chehab wrote:
Dears ,
Is there a way to right directly to CDRS table in mysql .
Regards
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130404/cb2c7456/attachment-0001.htm>
More information about the Users
mailing list