[OpenSIPS-Users] need help on CDRTool

ha do haloha201 at yahoo.com
Thu Nov 11 05:24:37 CET 2010


hi 

i try to learn CDRTool, 

i config the global.inc  with 
# Normalize engine settings
$CDRTool['normalize']['defaultCountryCode']      = "84";

the cdr_generic.php 
class CDRS {

    var $CDR_class           = 'CDR';
    var $intAccessCode       = '00';
    var $natAccessCode       = '0';
    var $maxrowsperpage      = 15;
    var $status              = array();
    var $normalizedField     = 'Normalized';
    var $DestinationIdField  = 'DestinationId';
    var $BillingIdField      = 'UserName';

i config  in web

the destination
Ops,Reseller,Trusted 
peer,Domain,Subscriber,Destination,Region,Description,Incr,Min Dur,Max Dur,Max 
Price
2,0,,,,84,,vietnam,6,6,0,

rate
Ops,Reseller,Rate,Destination,App,Connect,Duration,Conn In,Duration In
2,0,84,84,audio,0,998,,

profile
Ops,Reseller,Profile,Rate 1,00-H1,Rate 2,H1-H2,Rate 3,H2-H3,Rate 4,H3-24
2,0,84,84,24,0,0,,0,,0


when i make call and get the syslog of cdrtool
Nov 11 06:20:57 opensips cdrtool[2312]: MaxSessionTime Duration=36000 
CallId=1289440810-2424-HIEP-PC at 192.168.1.36 From=sip:843000 at 192.168.1.41 
Gateway=192.168.1.36 To=sip:00842000 at 192.168.1.41
Nov 11 06:20:57 opensips cdrtool[2312]: MaxSessionTime=unlimited Type=postpaid 
CallId=1289440810-2424-HIEP-PC at 192.168.1.36 BillingParty=843000 at 192.168.1.41

get the log from callcontrol
Call id 1289440810-2424-HIEP-PC at 192.168.1.36 of 843000 at 192.168.1.41 to 
sip:00842000 at 192.168.1.41 is postpaid not limited


what do i miss thing to make CDRTool rating a call, please help

Thank you
Ha`



      



More information about the Users mailing list