[2025-01-08 00:00:04] Production.INFO: next invoice date [2025-01-08 00:00:04] Production.INFO: 2025-02-08 [2025-01-08 00:00:04] Production.INFO: getdaysdiff [2025-01-08 00:00:04] Production.INFO: +31 [2025-01-08 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:04] Production.INFO: next invoice date [2025-01-08 00:00:04] Production.INFO: 2025-02-08 [2025-01-08 00:00:04] Production.INFO: getdaysdiff [2025-01-08 00:00:04] Production.INFO: +31 [2025-01-08 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,31,31,'RMScheduler',2025-01-08 00:00:04,0,0,,,0) [2025-01-08 00:00:04] Production.INFO: next invoice date [2025-01-08 00:00:04] Production.INFO: 2025-02-08 [2025-01-08 00:00:04] Production.INFO: getdaysdiff [2025-01-08 00:00:04] Production.INFO: +31 [2025-01-08 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,0,0,,,0) [2025-01-08 00:00:04] Production.INFO: next invoice date [2025-01-08 00:00:04] Production.INFO: 2025-02-08 [2025-01-08 00:00:04] Production.INFO: getdaysdiff [2025-01-08 00:00:04] Production.INFO: +31 [2025-01-08 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:04] Production.INFO: next invoice date [2025-01-08 00:00:04] Production.INFO: 2025-02-08 [2025-01-08 00:00:04] Production.INFO: getdaysdiff [2025-01-08 00:00:04] Production.INFO: +31 [2025-01-08 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:05] Production.INFO: next invoice date [2025-01-08 00:00:05] Production.INFO: 2025-02-08 [2025-01-08 00:00:05] Production.INFO: getdaysdiff [2025-01-08 00:00:05] Production.INFO: +31 [2025-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:05] Production.INFO: next invoice date [2025-01-08 00:00:05] Production.INFO: 2025-02-08 [2025-01-08 00:00:05] Production.INFO: getdaysdiff [2025-01-08 00:00:05] Production.INFO: +31 [2025-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:05] Production.INFO: next invoice date [2025-01-08 00:00:05] Production.INFO: 2025-02-08 [2025-01-08 00:00:05] Production.INFO: getdaysdiff [2025-01-08 00:00:05] Production.INFO: +31 [2025-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:05] Production.INFO: next invoice date [2025-01-08 00:00:05] Production.INFO: 2025-02-08 [2025-01-08 00:00:05] Production.INFO: getdaysdiff [2025-01-08 00:00:05] Production.INFO: +31 [2025-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:05] Production.INFO: next invoice date [2025-01-08 00:00:05] Production.INFO: 2025-02-08 [2025-01-08 00:00:05] Production.INFO: getdaysdiff [2025-01-08 00:00:05] Production.INFO: +31 [2025-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:05] Production.INFO: next invoice date [2025-01-08 00:00:05] Production.INFO: 2025-02-08 [2025-01-08 00:00:05] Production.INFO: getdaysdiff [2025-01-08 00:00:05] Production.INFO: +31 [2025-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:05] Production.INFO: next invoice date [2025-01-08 00:00:05] Production.INFO: 2025-02-08 [2025-01-08 00:00:05] Production.INFO: getdaysdiff [2025-01-08 00:00:05] Production.INFO: +31 [2025-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,31,31,'RMScheduler',2025-01-08 00:00:04,0,0,,,0) [2025-01-08 00:00:06] Production.INFO: next invoice date [2025-01-08 00:00:06] Production.INFO: 2025-02-08 [2025-01-08 00:00:06] Production.INFO: getdaysdiff [2025-01-08 00:00:06] Production.INFO: +31 [2025-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,0,0,,,0) [2025-01-08 00:00:07] Production.INFO: next invoice date [2025-01-08 00:00:07] Production.INFO: 2025-02-08 [2025-01-08 00:00:07] Production.INFO: getdaysdiff [2025-01-08 00:00:07] Production.INFO: +31 [2025-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:07] Production.INFO: next invoice date [2025-01-08 00:00:07] Production.INFO: 2025-02-08 [2025-01-08 00:00:07] Production.INFO: getdaysdiff [2025-01-08 00:00:07] Production.INFO: +31 [2025-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:07] Production.INFO: next invoice date [2025-01-08 00:00:07] Production.INFO: 2025-02-08 [2025-01-08 00:00:07] Production.INFO: getdaysdiff [2025-01-08 00:00:07] Production.INFO: +31 [2025-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:07] Production.INFO: next invoice date [2025-01-08 00:00:07] Production.INFO: 2025-02-08 [2025-01-08 00:00:07] Production.INFO: getdaysdiff [2025-01-08 00:00:07] Production.INFO: +31 [2025-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:07] Production.INFO: next invoice date [2025-01-08 00:00:07] Production.INFO: 2025-02-08 [2025-01-08 00:00:07] Production.INFO: getdaysdiff [2025-01-08 00:00:07] Production.INFO: +31 [2025-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:07] Production.INFO: next invoice date [2025-01-08 00:00:07] Production.INFO: 2025-02-08 [2025-01-08 00:00:07] Production.INFO: getdaysdiff [2025-01-08 00:00:07] Production.INFO: +31 [2025-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,31,31,'RMScheduler',2025-01-08 00:00:04,1,0,,,0) [2025-01-08 00:00:09] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:00:09 [end_date_ymd] => 2025-01-08 00:00:09 [RateCDR] => 1 ) [2025-01-08 00:00:09] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:00:09' and `end` < '2025-01-08 00:00:09' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:00:22] Production.INFO: count ==484 [2025-01-08 00:00:22] Production.ERROR: pbx CDR StartTime 2025-01-07 21:00:09 - End Time 2025-01-08 00:00:09 [2025-01-08 00:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198421', 'tblTempUsageDetail_20' ) start [2025-01-08 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198421', 'tblTempUsageDetail_20' ) end [2025-01-08 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198421', 'tblTempVendorCDR_20' ) start [2025-01-08 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198421', 'tblTempVendorCDR_20' ) end [2025-01-08 00:00:22] Production.INFO: ProcessCDR(1,14198421,1,1,2) [2025-01-08 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198421', 'tblTempUsageDetail_20' ) start [2025-01-08 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198421', 'tblTempUsageDetail_20' ) end [2025-01-08 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:00:28] Production.INFO: ==1497== Releasing lock... [2025-01-08 00:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:00:28] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:01:05 [end_date_ymd] => 2025-01-08 00:01:05 [RateCDR] => 1 ) [2025-01-08 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:01:05' and `end` < '2025-01-08 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:01:18] Production.INFO: count ==494 [2025-01-08 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:01:05 - End Time 2025-01-08 00:01:05 [2025-01-08 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198427', 'tblTempUsageDetail_20' ) start [2025-01-08 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198427', 'tblTempUsageDetail_20' ) end [2025-01-08 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198427', 'tblTempVendorCDR_20' ) start [2025-01-08 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198427', 'tblTempVendorCDR_20' ) end [2025-01-08 00:01:18] Production.INFO: ProcessCDR(1,14198427,1,1,2) [2025-01-08 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198427', 'tblTempUsageDetail_20' ) start [2025-01-08 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198427', 'tblTempUsageDetail_20' ) end [2025-01-08 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:01:21] Production.INFO: ==1653== Releasing lock... [2025-01-08 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:01:21] Production.INFO: 31 MB #Memory Used# [2025-01-08 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:02:05 [end_date_ymd] => 2025-01-08 00:02:05 [RateCDR] => 1 ) [2025-01-08 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:02:05' and `end` < '2025-01-08 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:02:34] Production.INFO: count ==80 [2025-01-08 00:02:34] Production.ERROR: pbx CDR StartTime 2025-01-07 21:02:05 - End Time 2025-01-08 00:02:05 [2025-01-08 00:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198432', 'tblTempUsageDetail_20' ) start [2025-01-08 00:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198432', 'tblTempUsageDetail_20' ) end [2025-01-08 00:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198432', 'tblTempVendorCDR_20' ) start [2025-01-08 00:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198432', 'tblTempVendorCDR_20' ) end [2025-01-08 00:02:34] Production.INFO: ProcessCDR(1,14198432,1,1,2) [2025-01-08 00:02:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:02:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:02:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198432', 'tblTempUsageDetail_20' ) start [2025-01-08 00:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198432', 'tblTempUsageDetail_20' ) end [2025-01-08 00:02:39] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:02:39] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:02:39] Production.INFO: ==1767== Releasing lock... [2025-01-08 00:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:02:39] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:03:05 [end_date_ymd] => 2025-01-08 00:03:05 [RateCDR] => 1 ) [2025-01-08 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:03:05' and `end` < '2025-01-08 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:03:25] Production.INFO: count ==80 [2025-01-08 00:03:25] Production.ERROR: pbx CDR StartTime 2025-01-07 21:03:05 - End Time 2025-01-08 00:03:05 [2025-01-08 00:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198437', 'tblTempUsageDetail_20' ) start [2025-01-08 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198437', 'tblTempUsageDetail_20' ) end [2025-01-08 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198437', 'tblTempVendorCDR_20' ) start [2025-01-08 00:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198437', 'tblTempVendorCDR_20' ) end [2025-01-08 00:03:25] Production.INFO: ProcessCDR(1,14198437,1,1,2) [2025-01-08 00:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198437', 'tblTempUsageDetail_20' ) start [2025-01-08 00:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198437', 'tblTempUsageDetail_20' ) end [2025-01-08 00:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:03:28] Production.INFO: ==1918== Releasing lock... [2025-01-08 00:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:03:28] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:04:05 [end_date_ymd] => 2025-01-08 00:04:05 [RateCDR] => 1 ) [2025-01-08 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:04:05' and `end` < '2025-01-08 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:04:31] Production.INFO: count ==83 [2025-01-08 00:04:31] Production.ERROR: pbx CDR StartTime 2025-01-07 21:04:05 - End Time 2025-01-08 00:04:05 [2025-01-08 00:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198442', 'tblTempUsageDetail_20' ) start [2025-01-08 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198442', 'tblTempUsageDetail_20' ) end [2025-01-08 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198442', 'tblTempVendorCDR_20' ) start [2025-01-08 00:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198442', 'tblTempVendorCDR_20' ) end [2025-01-08 00:04:31] Production.INFO: ProcessCDR(1,14198442,1,1,2) [2025-01-08 00:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198442', 'tblTempUsageDetail_20' ) start [2025-01-08 00:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198442', 'tblTempUsageDetail_20' ) end [2025-01-08 00:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:04:34] Production.INFO: ==2034== Releasing lock... [2025-01-08 00:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:04:34] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:05:04 [end_date_ymd] => 2025-01-08 00:05:04 [RateCDR] => 1 ) [2025-01-08 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:05:04' and `end` < '2025-01-08 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:05:27] Production.INFO: count ==83 [2025-01-08 00:05:27] Production.ERROR: pbx CDR StartTime 2025-01-07 21:05:04 - End Time 2025-01-08 00:05:04 [2025-01-08 00:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198447', 'tblTempUsageDetail_20' ) start [2025-01-08 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198447', 'tblTempUsageDetail_20' ) end [2025-01-08 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198447', 'tblTempVendorCDR_20' ) start [2025-01-08 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198447', 'tblTempVendorCDR_20' ) end [2025-01-08 00:05:27] Production.INFO: ProcessCDR(1,14198447,1,1,2) [2025-01-08 00:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198447', 'tblTempUsageDetail_20' ) start [2025-01-08 00:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198447', 'tblTempUsageDetail_20' ) end [2025-01-08 00:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:05:30] Production.INFO: ==2144== Releasing lock... [2025-01-08 00:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:05:30] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:06:05 [end_date_ymd] => 2025-01-08 00:06:05 [RateCDR] => 1 ) [2025-01-08 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:06:05' and `end` < '2025-01-08 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:06:21] Production.INFO: count ==80 [2025-01-08 00:06:21] Production.ERROR: pbx CDR StartTime 2025-01-07 21:06:05 - End Time 2025-01-08 00:06:05 [2025-01-08 00:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198452', 'tblTempUsageDetail_20' ) start [2025-01-08 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198452', 'tblTempUsageDetail_20' ) end [2025-01-08 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198452', 'tblTempVendorCDR_20' ) start [2025-01-08 00:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198452', 'tblTempVendorCDR_20' ) end [2025-01-08 00:06:21] Production.INFO: ProcessCDR(1,14198452,1,1,2) [2025-01-08 00:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198452', 'tblTempUsageDetail_20' ) start [2025-01-08 00:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198452', 'tblTempUsageDetail_20' ) end [2025-01-08 00:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:06:24] Production.INFO: ==2248== Releasing lock... [2025-01-08 00:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:06:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:07:04 [end_date_ymd] => 2025-01-08 00:07:04 [RateCDR] => 1 ) [2025-01-08 00:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:07:04' and `end` < '2025-01-08 00:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:07:17] Production.INFO: count ==80 [2025-01-08 00:07:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:07:04 - End Time 2025-01-08 00:07:04 [2025-01-08 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198457', 'tblTempUsageDetail_20' ) start [2025-01-08 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198457', 'tblTempUsageDetail_20' ) end [2025-01-08 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198457', 'tblTempVendorCDR_20' ) start [2025-01-08 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198457', 'tblTempVendorCDR_20' ) end [2025-01-08 00:07:17] Production.INFO: ProcessCDR(1,14198457,1,1,2) [2025-01-08 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198457', 'tblTempUsageDetail_20' ) start [2025-01-08 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198457', 'tblTempUsageDetail_20' ) end [2025-01-08 00:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:07:20] Production.INFO: ==2352== Releasing lock... [2025-01-08 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:08:04 [end_date_ymd] => 2025-01-08 00:08:04 [RateCDR] => 1 ) [2025-01-08 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:08:04' and `end` < '2025-01-08 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:08:18] Production.INFO: count ==81 [2025-01-08 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:08:04 - End Time 2025-01-08 00:08:04 [2025-01-08 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198462', 'tblTempUsageDetail_20' ) start [2025-01-08 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198462', 'tblTempUsageDetail_20' ) end [2025-01-08 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198462', 'tblTempVendorCDR_20' ) start [2025-01-08 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198462', 'tblTempVendorCDR_20' ) end [2025-01-08 00:08:18] Production.INFO: ProcessCDR(1,14198462,1,1,2) [2025-01-08 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198462', 'tblTempUsageDetail_20' ) start [2025-01-08 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198462', 'tblTempUsageDetail_20' ) end [2025-01-08 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:08:22] Production.INFO: ==2451== Releasing lock... [2025-01-08 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:09:06 [end_date_ymd] => 2025-01-08 00:09:06 [RateCDR] => 1 ) [2025-01-08 00:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:09:06' and `end` < '2025-01-08 00:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:09:19] Production.INFO: count ==78 [2025-01-08 00:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:09:06 - End Time 2025-01-08 00:09:06 [2025-01-08 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198467', 'tblTempUsageDetail_20' ) start [2025-01-08 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198467', 'tblTempUsageDetail_20' ) end [2025-01-08 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198467', 'tblTempVendorCDR_20' ) start [2025-01-08 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198467', 'tblTempVendorCDR_20' ) end [2025-01-08 00:09:19] Production.INFO: ProcessCDR(1,14198467,1,1,2) [2025-01-08 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198467', 'tblTempUsageDetail_20' ) start [2025-01-08 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198467', 'tblTempUsageDetail_20' ) end [2025-01-08 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:09:22] Production.INFO: ==2565== Releasing lock... [2025-01-08 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:10:05 [end_date_ymd] => 2025-01-08 00:10:05 [RateCDR] => 1 ) [2025-01-08 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:10:05' and `end` < '2025-01-08 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:10:18] Production.INFO: count ==81 [2025-01-08 00:10:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:10:05 - End Time 2025-01-08 00:10:05 [2025-01-08 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198472', 'tblTempUsageDetail_20' ) start [2025-01-08 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198472', 'tblTempUsageDetail_20' ) end [2025-01-08 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198472', 'tblTempVendorCDR_20' ) start [2025-01-08 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198472', 'tblTempVendorCDR_20' ) end [2025-01-08 00:10:18] Production.INFO: ProcessCDR(1,14198472,1,1,2) [2025-01-08 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198472', 'tblTempUsageDetail_20' ) start [2025-01-08 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198472', 'tblTempUsageDetail_20' ) end [2025-01-08 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:10:21] Production.INFO: ==2663== Releasing lock... [2025-01-08 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:11:05 [end_date_ymd] => 2025-01-08 00:11:05 [RateCDR] => 1 ) [2025-01-08 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:11:05' and `end` < '2025-01-08 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:11:18] Production.INFO: count ==87 [2025-01-08 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:11:05 - End Time 2025-01-08 00:11:05 [2025-01-08 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198478', 'tblTempUsageDetail_20' ) start [2025-01-08 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198478', 'tblTempUsageDetail_20' ) end [2025-01-08 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198478', 'tblTempVendorCDR_20' ) start [2025-01-08 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198478', 'tblTempVendorCDR_20' ) end [2025-01-08 00:11:18] Production.INFO: ProcessCDR(1,14198478,1,1,2) [2025-01-08 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198478', 'tblTempUsageDetail_20' ) start [2025-01-08 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198478', 'tblTempUsageDetail_20' ) end [2025-01-08 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:11:21] Production.INFO: ==2769== Releasing lock... [2025-01-08 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:12:04 [end_date_ymd] => 2025-01-08 00:12:04 [RateCDR] => 1 ) [2025-01-08 00:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:12:04' and `end` < '2025-01-08 00:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:12:17] Production.INFO: count ==88 [2025-01-08 00:12:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:12:04 - End Time 2025-01-08 00:12:04 [2025-01-08 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198483', 'tblTempUsageDetail_20' ) start [2025-01-08 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198483', 'tblTempUsageDetail_20' ) end [2025-01-08 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198483', 'tblTempVendorCDR_20' ) start [2025-01-08 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198483', 'tblTempVendorCDR_20' ) end [2025-01-08 00:12:17] Production.INFO: ProcessCDR(1,14198483,1,1,2) [2025-01-08 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198483', 'tblTempUsageDetail_20' ) start [2025-01-08 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198483', 'tblTempUsageDetail_20' ) end [2025-01-08 00:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:12:20] Production.INFO: ==2867== Releasing lock... [2025-01-08 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:13:05 [end_date_ymd] => 2025-01-08 00:13:05 [RateCDR] => 1 ) [2025-01-08 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:13:05' and `end` < '2025-01-08 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:13:18] Production.INFO: count ==88 [2025-01-08 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:13:05 - End Time 2025-01-08 00:13:05 [2025-01-08 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198488', 'tblTempUsageDetail_20' ) start [2025-01-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198488', 'tblTempUsageDetail_20' ) end [2025-01-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198488', 'tblTempVendorCDR_20' ) start [2025-01-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198488', 'tblTempVendorCDR_20' ) end [2025-01-08 00:13:18] Production.INFO: ProcessCDR(1,14198488,1,1,2) [2025-01-08 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198488', 'tblTempUsageDetail_20' ) start [2025-01-08 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198488', 'tblTempUsageDetail_20' ) end [2025-01-08 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:13:21] Production.INFO: ==2956== Releasing lock... [2025-01-08 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:14:05 [end_date_ymd] => 2025-01-08 00:14:05 [RateCDR] => 1 ) [2025-01-08 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:14:05' and `end` < '2025-01-08 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:14:18] Production.INFO: count ==92 [2025-01-08 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:14:05 - End Time 2025-01-08 00:14:05 [2025-01-08 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198493', 'tblTempUsageDetail_20' ) start [2025-01-08 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198493', 'tblTempUsageDetail_20' ) end [2025-01-08 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198493', 'tblTempVendorCDR_20' ) start [2025-01-08 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198493', 'tblTempVendorCDR_20' ) end [2025-01-08 00:14:18] Production.INFO: ProcessCDR(1,14198493,1,1,2) [2025-01-08 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198493', 'tblTempUsageDetail_20' ) start [2025-01-08 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198493', 'tblTempUsageDetail_20' ) end [2025-01-08 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:14:21] Production.INFO: ==3066== Releasing lock... [2025-01-08 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:14:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:15:05 [end_date_ymd] => 2025-01-08 00:15:05 [RateCDR] => 1 ) [2025-01-08 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:15:05' and `end` < '2025-01-08 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:15:18] Production.INFO: count ==92 [2025-01-08 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:15:05 - End Time 2025-01-08 00:15:05 [2025-01-08 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198498', 'tblTempUsageDetail_20' ) start [2025-01-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198498', 'tblTempUsageDetail_20' ) end [2025-01-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198498', 'tblTempVendorCDR_20' ) start [2025-01-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198498', 'tblTempVendorCDR_20' ) end [2025-01-08 00:15:18] Production.INFO: ProcessCDR(1,14198498,1,1,2) [2025-01-08 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198498', 'tblTempUsageDetail_20' ) start [2025-01-08 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198498', 'tblTempUsageDetail_20' ) end [2025-01-08 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:15:21] Production.INFO: ==3190== Releasing lock... [2025-01-08 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:15:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:16:05 [end_date_ymd] => 2025-01-08 00:16:05 [RateCDR] => 1 ) [2025-01-08 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:16:05' and `end` < '2025-01-08 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:16:18] Production.INFO: count ==92 [2025-01-08 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:16:05 - End Time 2025-01-08 00:16:05 [2025-01-08 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198503', 'tblTempUsageDetail_20' ) start [2025-01-08 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198503', 'tblTempUsageDetail_20' ) end [2025-01-08 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198503', 'tblTempVendorCDR_20' ) start [2025-01-08 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198503', 'tblTempVendorCDR_20' ) end [2025-01-08 00:16:18] Production.INFO: ProcessCDR(1,14198503,1,1,2) [2025-01-08 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198503', 'tblTempUsageDetail_20' ) start [2025-01-08 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198503', 'tblTempUsageDetail_20' ) end [2025-01-08 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:16:21] Production.INFO: ==3314== Releasing lock... [2025-01-08 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:17:05 [end_date_ymd] => 2025-01-08 00:17:05 [RateCDR] => 1 ) [2025-01-08 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:17:05' and `end` < '2025-01-08 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:17:18] Production.INFO: count ==96 [2025-01-08 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:17:05 - End Time 2025-01-08 00:17:05 [2025-01-08 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198508', 'tblTempUsageDetail_20' ) start [2025-01-08 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198508', 'tblTempUsageDetail_20' ) end [2025-01-08 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198508', 'tblTempVendorCDR_20' ) start [2025-01-08 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198508', 'tblTempVendorCDR_20' ) end [2025-01-08 00:17:18] Production.INFO: ProcessCDR(1,14198508,1,1,2) [2025-01-08 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198508', 'tblTempUsageDetail_20' ) start [2025-01-08 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198508', 'tblTempUsageDetail_20' ) end [2025-01-08 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:17:21] Production.INFO: ==3412== Releasing lock... [2025-01-08 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:18:05 [end_date_ymd] => 2025-01-08 00:18:05 [RateCDR] => 1 ) [2025-01-08 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:18:05' and `end` < '2025-01-08 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:18:18] Production.INFO: count ==99 [2025-01-08 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:18:05 - End Time 2025-01-08 00:18:05 [2025-01-08 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198513', 'tblTempUsageDetail_20' ) start [2025-01-08 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198513', 'tblTempUsageDetail_20' ) end [2025-01-08 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198513', 'tblTempVendorCDR_20' ) start [2025-01-08 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198513', 'tblTempVendorCDR_20' ) end [2025-01-08 00:18:18] Production.INFO: ProcessCDR(1,14198513,1,1,2) [2025-01-08 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198513', 'tblTempUsageDetail_20' ) start [2025-01-08 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198513', 'tblTempUsageDetail_20' ) end [2025-01-08 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:18:21] Production.INFO: ==3512== Releasing lock... [2025-01-08 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:19:05 [end_date_ymd] => 2025-01-08 00:19:05 [RateCDR] => 1 ) [2025-01-08 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:19:05' and `end` < '2025-01-08 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:19:18] Production.INFO: count ==99 [2025-01-08 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:19:05 - End Time 2025-01-08 00:19:05 [2025-01-08 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198518', 'tblTempUsageDetail_20' ) start [2025-01-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198518', 'tblTempUsageDetail_20' ) end [2025-01-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198518', 'tblTempVendorCDR_20' ) start [2025-01-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198518', 'tblTempVendorCDR_20' ) end [2025-01-08 00:19:18] Production.INFO: ProcessCDR(1,14198518,1,1,2) [2025-01-08 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198518', 'tblTempUsageDetail_20' ) start [2025-01-08 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198518', 'tblTempUsageDetail_20' ) end [2025-01-08 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:19:21] Production.INFO: ==3634== Releasing lock... [2025-01-08 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:19:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:20:05 [end_date_ymd] => 2025-01-08 00:20:05 [RateCDR] => 1 ) [2025-01-08 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:20:05' and `end` < '2025-01-08 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:20:17] Production.INFO: count ==105 [2025-01-08 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:20:05 - End Time 2025-01-08 00:20:05 [2025-01-08 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198524', 'tblTempUsageDetail_20' ) start [2025-01-08 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198524', 'tblTempUsageDetail_20' ) end [2025-01-08 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198524', 'tblTempVendorCDR_20' ) start [2025-01-08 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198524', 'tblTempVendorCDR_20' ) end [2025-01-08 00:20:18] Production.INFO: ProcessCDR(1,14198524,1,1,2) [2025-01-08 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198524', 'tblTempUsageDetail_20' ) start [2025-01-08 00:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198524', 'tblTempUsageDetail_20' ) end [2025-01-08 00:20:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:20:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:20:21] Production.INFO: ==3715== Releasing lock... [2025-01-08 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:20:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:21:05 [end_date_ymd] => 2025-01-08 00:21:05 [RateCDR] => 1 ) [2025-01-08 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:21:05' and `end` < '2025-01-08 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:21:18] Production.INFO: count ==112 [2025-01-08 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:21:05 - End Time 2025-01-08 00:21:05 [2025-01-08 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198529', 'tblTempUsageDetail_20' ) start [2025-01-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198529', 'tblTempUsageDetail_20' ) end [2025-01-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198529', 'tblTempVendorCDR_20' ) start [2025-01-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198529', 'tblTempVendorCDR_20' ) end [2025-01-08 00:21:18] Production.INFO: ProcessCDR(1,14198529,1,1,2) [2025-01-08 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198529', 'tblTempUsageDetail_20' ) start [2025-01-08 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198529', 'tblTempUsageDetail_20' ) end [2025-01-08 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:21:21] Production.INFO: ==3798== Releasing lock... [2025-01-08 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:22:05 [end_date_ymd] => 2025-01-08 00:22:05 [RateCDR] => 1 ) [2025-01-08 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:22:05' and `end` < '2025-01-08 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:22:18] Production.INFO: count ==112 [2025-01-08 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:22:05 - End Time 2025-01-08 00:22:05 [2025-01-08 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198534', 'tblTempUsageDetail_20' ) start [2025-01-08 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198534', 'tblTempUsageDetail_20' ) end [2025-01-08 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198534', 'tblTempVendorCDR_20' ) start [2025-01-08 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198534', 'tblTempVendorCDR_20' ) end [2025-01-08 00:22:18] Production.INFO: ProcessCDR(1,14198534,1,1,2) [2025-01-08 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198534', 'tblTempUsageDetail_20' ) start [2025-01-08 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198534', 'tblTempUsageDetail_20' ) end [2025-01-08 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:22:21] Production.INFO: ==3878== Releasing lock... [2025-01-08 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:23:05 [end_date_ymd] => 2025-01-08 00:23:05 [RateCDR] => 1 ) [2025-01-08 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:23:05' and `end` < '2025-01-08 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:23:18] Production.INFO: count ==112 [2025-01-08 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:23:05 - End Time 2025-01-08 00:23:05 [2025-01-08 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198539', 'tblTempUsageDetail_20' ) start [2025-01-08 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198539', 'tblTempUsageDetail_20' ) end [2025-01-08 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198539', 'tblTempVendorCDR_20' ) start [2025-01-08 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198539', 'tblTempVendorCDR_20' ) end [2025-01-08 00:23:18] Production.INFO: ProcessCDR(1,14198539,1,1,2) [2025-01-08 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198539', 'tblTempUsageDetail_20' ) start [2025-01-08 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198539', 'tblTempUsageDetail_20' ) end [2025-01-08 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:23:21] Production.INFO: ==3952== Releasing lock... [2025-01-08 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:24:05 [end_date_ymd] => 2025-01-08 00:24:05 [RateCDR] => 1 ) [2025-01-08 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:24:05' and `end` < '2025-01-08 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:24:18] Production.INFO: count ==112 [2025-01-08 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:24:05 - End Time 2025-01-08 00:24:05 [2025-01-08 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198544', 'tblTempUsageDetail_20' ) start [2025-01-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198544', 'tblTempUsageDetail_20' ) end [2025-01-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198544', 'tblTempVendorCDR_20' ) start [2025-01-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198544', 'tblTempVendorCDR_20' ) end [2025-01-08 00:24:18] Production.INFO: ProcessCDR(1,14198544,1,1,2) [2025-01-08 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198544', 'tblTempUsageDetail_20' ) start [2025-01-08 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198544', 'tblTempUsageDetail_20' ) end [2025-01-08 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:24:21] Production.INFO: ==4034== Releasing lock... [2025-01-08 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:25:04 [end_date_ymd] => 2025-01-08 00:25:04 [RateCDR] => 1 ) [2025-01-08 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:25:04' and `end` < '2025-01-08 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:25:17] Production.INFO: count ==113 [2025-01-08 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:25:04 - End Time 2025-01-08 00:25:04 [2025-01-08 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198549', 'tblTempUsageDetail_20' ) start [2025-01-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198549', 'tblTempUsageDetail_20' ) end [2025-01-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198549', 'tblTempVendorCDR_20' ) start [2025-01-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198549', 'tblTempVendorCDR_20' ) end [2025-01-08 00:25:18] Production.INFO: ProcessCDR(1,14198549,1,1,2) [2025-01-08 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198549', 'tblTempUsageDetail_20' ) start [2025-01-08 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198549', 'tblTempUsageDetail_20' ) end [2025-01-08 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:25:21] Production.INFO: ==4117== Releasing lock... [2025-01-08 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:26:06 [end_date_ymd] => 2025-01-08 00:26:06 [RateCDR] => 1 ) [2025-01-08 00:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:26:06' and `end` < '2025-01-08 00:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:26:19] Production.INFO: count ==111 [2025-01-08 00:26:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:26:06 - End Time 2025-01-08 00:26:06 [2025-01-08 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198554', 'tblTempUsageDetail_20' ) start [2025-01-08 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198554', 'tblTempUsageDetail_20' ) end [2025-01-08 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198554', 'tblTempVendorCDR_20' ) start [2025-01-08 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198554', 'tblTempVendorCDR_20' ) end [2025-01-08 00:26:19] Production.INFO: ProcessCDR(1,14198554,1,1,2) [2025-01-08 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198554', 'tblTempUsageDetail_20' ) start [2025-01-08 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198554', 'tblTempUsageDetail_20' ) end [2025-01-08 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:26:22] Production.INFO: ==4190== Releasing lock... [2025-01-08 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:26:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:27:04 [end_date_ymd] => 2025-01-08 00:27:04 [RateCDR] => 1 ) [2025-01-08 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:27:04' and `end` < '2025-01-08 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:27:17] Production.INFO: count ==112 [2025-01-08 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:27:04 - End Time 2025-01-08 00:27:04 [2025-01-08 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198559', 'tblTempUsageDetail_20' ) start [2025-01-08 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198559', 'tblTempUsageDetail_20' ) end [2025-01-08 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198559', 'tblTempVendorCDR_20' ) start [2025-01-08 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198559', 'tblTempVendorCDR_20' ) end [2025-01-08 00:27:17] Production.INFO: ProcessCDR(1,14198559,1,1,2) [2025-01-08 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198559', 'tblTempUsageDetail_20' ) start [2025-01-08 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198559', 'tblTempUsageDetail_20' ) end [2025-01-08 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:27:20] Production.INFO: ==4265== Releasing lock... [2025-01-08 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:27:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:28:04 [end_date_ymd] => 2025-01-08 00:28:04 [RateCDR] => 1 ) [2025-01-08 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:28:04' and `end` < '2025-01-08 00:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:28:18] Production.INFO: count ==111 [2025-01-08 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:28:04 - End Time 2025-01-08 00:28:04 [2025-01-08 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198564', 'tblTempUsageDetail_20' ) start [2025-01-08 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198564', 'tblTempUsageDetail_20' ) end [2025-01-08 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198564', 'tblTempVendorCDR_20' ) start [2025-01-08 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198564', 'tblTempVendorCDR_20' ) end [2025-01-08 00:28:18] Production.INFO: ProcessCDR(1,14198564,1,1,2) [2025-01-08 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198564', 'tblTempUsageDetail_20' ) start [2025-01-08 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198564', 'tblTempUsageDetail_20' ) end [2025-01-08 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:28:22] Production.INFO: ==4339== Releasing lock... [2025-01-08 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:28:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:29:05 [end_date_ymd] => 2025-01-08 00:29:05 [RateCDR] => 1 ) [2025-01-08 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:29:05' and `end` < '2025-01-08 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:29:18] Production.INFO: count ==111 [2025-01-08 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:29:05 - End Time 2025-01-08 00:29:05 [2025-01-08 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198569', 'tblTempUsageDetail_20' ) start [2025-01-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198569', 'tblTempUsageDetail_20' ) end [2025-01-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198569', 'tblTempVendorCDR_20' ) start [2025-01-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198569', 'tblTempVendorCDR_20' ) end [2025-01-08 00:29:18] Production.INFO: ProcessCDR(1,14198569,1,1,2) [2025-01-08 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198569', 'tblTempUsageDetail_20' ) start [2025-01-08 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198569', 'tblTempUsageDetail_20' ) end [2025-01-08 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:29:21] Production.INFO: ==4419== Releasing lock... [2025-01-08 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:30:05 [end_date_ymd] => 2025-01-08 00:30:05 [RateCDR] => 1 ) [2025-01-08 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:30:05' and `end` < '2025-01-08 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:30:18] Production.INFO: count ==113 [2025-01-08 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:30:05 - End Time 2025-01-08 00:30:05 [2025-01-08 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198575', 'tblTempUsageDetail_20' ) start [2025-01-08 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198575', 'tblTempUsageDetail_20' ) end [2025-01-08 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198575', 'tblTempVendorCDR_20' ) start [2025-01-08 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198575', 'tblTempVendorCDR_20' ) end [2025-01-08 00:30:18] Production.INFO: ProcessCDR(1,14198575,1,1,2) [2025-01-08 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198575', 'tblTempUsageDetail_20' ) start [2025-01-08 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198575', 'tblTempUsageDetail_20' ) end [2025-01-08 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:30:21] Production.INFO: ==4493== Releasing lock... [2025-01-08 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:31:05 [end_date_ymd] => 2025-01-08 00:31:05 [RateCDR] => 1 ) [2025-01-08 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:31:05' and `end` < '2025-01-08 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:31:19] Production.INFO: count ==112 [2025-01-08 00:31:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:31:05 - End Time 2025-01-08 00:31:05 [2025-01-08 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198580', 'tblTempUsageDetail_20' ) start [2025-01-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198580', 'tblTempUsageDetail_20' ) end [2025-01-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198580', 'tblTempVendorCDR_20' ) start [2025-01-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198580', 'tblTempVendorCDR_20' ) end [2025-01-08 00:31:19] Production.INFO: ProcessCDR(1,14198580,1,1,2) [2025-01-08 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198580', 'tblTempUsageDetail_20' ) start [2025-01-08 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198580', 'tblTempUsageDetail_20' ) end [2025-01-08 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:31:22] Production.INFO: ==4565== Releasing lock... [2025-01-08 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:31:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:32:04 [end_date_ymd] => 2025-01-08 00:32:04 [RateCDR] => 1 ) [2025-01-08 00:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:32:04' and `end` < '2025-01-08 00:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:32:17] Production.INFO: count ==112 [2025-01-08 00:32:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:32:04 - End Time 2025-01-08 00:32:04 [2025-01-08 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198585', 'tblTempUsageDetail_20' ) start [2025-01-08 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198585', 'tblTempUsageDetail_20' ) end [2025-01-08 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198585', 'tblTempVendorCDR_20' ) start [2025-01-08 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198585', 'tblTempVendorCDR_20' ) end [2025-01-08 00:32:17] Production.INFO: ProcessCDR(1,14198585,1,1,2) [2025-01-08 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198585', 'tblTempUsageDetail_20' ) start [2025-01-08 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198585', 'tblTempUsageDetail_20' ) end [2025-01-08 00:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:32:20] Production.INFO: ==4648== Releasing lock... [2025-01-08 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:32:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:33:05 [end_date_ymd] => 2025-01-08 00:33:05 [RateCDR] => 1 ) [2025-01-08 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:33:05' and `end` < '2025-01-08 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:33:18] Production.INFO: count ==113 [2025-01-08 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:33:05 - End Time 2025-01-08 00:33:05 [2025-01-08 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198590', 'tblTempUsageDetail_20' ) start [2025-01-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198590', 'tblTempUsageDetail_20' ) end [2025-01-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198590', 'tblTempVendorCDR_20' ) start [2025-01-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198590', 'tblTempVendorCDR_20' ) end [2025-01-08 00:33:18] Production.INFO: ProcessCDR(1,14198590,1,1,2) [2025-01-08 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198590', 'tblTempUsageDetail_20' ) start [2025-01-08 00:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198590', 'tblTempUsageDetail_20' ) end [2025-01-08 00:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:33:23] Production.INFO: ==4719== Releasing lock... [2025-01-08 00:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:33:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:34:05 [end_date_ymd] => 2025-01-08 00:34:05 [RateCDR] => 1 ) [2025-01-08 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:34:05' and `end` < '2025-01-08 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:34:18] Production.INFO: count ==113 [2025-01-08 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:34:05 - End Time 2025-01-08 00:34:05 [2025-01-08 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198595', 'tblTempUsageDetail_20' ) start [2025-01-08 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198595', 'tblTempUsageDetail_20' ) end [2025-01-08 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198595', 'tblTempVendorCDR_20' ) start [2025-01-08 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198595', 'tblTempVendorCDR_20' ) end [2025-01-08 00:34:18] Production.INFO: ProcessCDR(1,14198595,1,1,2) [2025-01-08 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198595', 'tblTempUsageDetail_20' ) start [2025-01-08 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198595', 'tblTempUsageDetail_20' ) end [2025-01-08 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:34:21] Production.INFO: ==4829== Releasing lock... [2025-01-08 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:35:05 [end_date_ymd] => 2025-01-08 00:35:05 [RateCDR] => 1 ) [2025-01-08 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:35:05' and `end` < '2025-01-08 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:35:18] Production.INFO: count ==113 [2025-01-08 00:35:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:35:05 - End Time 2025-01-08 00:35:05 [2025-01-08 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198600', 'tblTempUsageDetail_20' ) start [2025-01-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198600', 'tblTempUsageDetail_20' ) end [2025-01-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198600', 'tblTempVendorCDR_20' ) start [2025-01-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198600', 'tblTempVendorCDR_20' ) end [2025-01-08 00:35:18] Production.INFO: ProcessCDR(1,14198600,1,1,2) [2025-01-08 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198600', 'tblTempUsageDetail_20' ) start [2025-01-08 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198600', 'tblTempUsageDetail_20' ) end [2025-01-08 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:35:21] Production.INFO: ==4899== Releasing lock... [2025-01-08 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:36:05 [end_date_ymd] => 2025-01-08 00:36:05 [RateCDR] => 1 ) [2025-01-08 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:36:05' and `end` < '2025-01-08 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:36:18] Production.INFO: count ==113 [2025-01-08 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:36:05 - End Time 2025-01-08 00:36:05 [2025-01-08 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198605', 'tblTempUsageDetail_20' ) start [2025-01-08 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198605', 'tblTempUsageDetail_20' ) end [2025-01-08 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198605', 'tblTempVendorCDR_20' ) start [2025-01-08 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198605', 'tblTempVendorCDR_20' ) end [2025-01-08 00:36:18] Production.INFO: ProcessCDR(1,14198605,1,1,2) [2025-01-08 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198605', 'tblTempUsageDetail_20' ) start [2025-01-08 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198605', 'tblTempUsageDetail_20' ) end [2025-01-08 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:36:21] Production.INFO: ==4971== Releasing lock... [2025-01-08 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:37:04 [end_date_ymd] => 2025-01-08 00:37:04 [RateCDR] => 1 ) [2025-01-08 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:37:04' and `end` < '2025-01-08 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:37:18] Production.INFO: count ==110 [2025-01-08 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:37:04 - End Time 2025-01-08 00:37:04 [2025-01-08 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198610', 'tblTempUsageDetail_20' ) start [2025-01-08 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198610', 'tblTempUsageDetail_20' ) end [2025-01-08 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198610', 'tblTempVendorCDR_20' ) start [2025-01-08 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198610', 'tblTempVendorCDR_20' ) end [2025-01-08 00:37:18] Production.INFO: ProcessCDR(1,14198610,1,1,2) [2025-01-08 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198610', 'tblTempUsageDetail_20' ) start [2025-01-08 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198610', 'tblTempUsageDetail_20' ) end [2025-01-08 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:37:21] Production.INFO: ==5043== Releasing lock... [2025-01-08 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:38:05 [end_date_ymd] => 2025-01-08 00:38:05 [RateCDR] => 1 ) [2025-01-08 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:38:05' and `end` < '2025-01-08 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:38:17] Production.INFO: count ==112 [2025-01-08 00:38:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:38:05 - End Time 2025-01-08 00:38:05 [2025-01-08 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198615', 'tblTempUsageDetail_20' ) start [2025-01-08 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198615', 'tblTempUsageDetail_20' ) end [2025-01-08 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198615', 'tblTempVendorCDR_20' ) start [2025-01-08 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198615', 'tblTempVendorCDR_20' ) end [2025-01-08 00:38:17] Production.INFO: ProcessCDR(1,14198615,1,1,2) [2025-01-08 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198615', 'tblTempUsageDetail_20' ) start [2025-01-08 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198615', 'tblTempUsageDetail_20' ) end [2025-01-08 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:38:21] Production.INFO: ==5116== Releasing lock... [2025-01-08 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:39:05 [end_date_ymd] => 2025-01-08 00:39:05 [RateCDR] => 1 ) [2025-01-08 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:39:05' and `end` < '2025-01-08 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:39:18] Production.INFO: count ==112 [2025-01-08 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:39:05 - End Time 2025-01-08 00:39:05 [2025-01-08 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198620', 'tblTempUsageDetail_20' ) start [2025-01-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198620', 'tblTempUsageDetail_20' ) end [2025-01-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198620', 'tblTempVendorCDR_20' ) start [2025-01-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198620', 'tblTempVendorCDR_20' ) end [2025-01-08 00:39:18] Production.INFO: ProcessCDR(1,14198620,1,1,2) [2025-01-08 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198620', 'tblTempUsageDetail_20' ) start [2025-01-08 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198620', 'tblTempUsageDetail_20' ) end [2025-01-08 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:39:21] Production.INFO: ==5185== Releasing lock... [2025-01-08 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:40:05 [end_date_ymd] => 2025-01-08 00:40:05 [RateCDR] => 1 ) [2025-01-08 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:40:05' and `end` < '2025-01-08 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:40:18] Production.INFO: count ==118 [2025-01-08 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:40:05 - End Time 2025-01-08 00:40:05 [2025-01-08 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198625', 'tblTempUsageDetail_20' ) start [2025-01-08 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198625', 'tblTempUsageDetail_20' ) end [2025-01-08 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198625', 'tblTempVendorCDR_20' ) start [2025-01-08 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198625', 'tblTempVendorCDR_20' ) end [2025-01-08 00:40:18] Production.INFO: ProcessCDR(1,14198625,1,1,2) [2025-01-08 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198625', 'tblTempUsageDetail_20' ) start [2025-01-08 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198625', 'tblTempUsageDetail_20' ) end [2025-01-08 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:40:21] Production.INFO: ==5258== Releasing lock... [2025-01-08 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:40:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:41:05 [end_date_ymd] => 2025-01-08 00:41:05 [RateCDR] => 1 ) [2025-01-08 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:41:05' and `end` < '2025-01-08 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:41:18] Production.INFO: count ==126 [2025-01-08 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:41:05 - End Time 2025-01-08 00:41:05 [2025-01-08 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198631', 'tblTempUsageDetail_20' ) start [2025-01-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198631', 'tblTempUsageDetail_20' ) end [2025-01-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198631', 'tblTempVendorCDR_20' ) start [2025-01-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198631', 'tblTempVendorCDR_20' ) end [2025-01-08 00:41:18] Production.INFO: ProcessCDR(1,14198631,1,1,2) [2025-01-08 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198631', 'tblTempUsageDetail_20' ) start [2025-01-08 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198631', 'tblTempUsageDetail_20' ) end [2025-01-08 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:41:21] Production.INFO: ==5331== Releasing lock... [2025-01-08 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:42:04 [end_date_ymd] => 2025-01-08 00:42:04 [RateCDR] => 1 ) [2025-01-08 00:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:42:04' and `end` < '2025-01-08 00:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:42:17] Production.INFO: count ==126 [2025-01-08 00:42:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:42:04 - End Time 2025-01-08 00:42:04 [2025-01-08 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198636', 'tblTempUsageDetail_20' ) start [2025-01-08 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198636', 'tblTempUsageDetail_20' ) end [2025-01-08 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198636', 'tblTempVendorCDR_20' ) start [2025-01-08 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198636', 'tblTempVendorCDR_20' ) end [2025-01-08 00:42:17] Production.INFO: ProcessCDR(1,14198636,1,1,2) [2025-01-08 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198636', 'tblTempUsageDetail_20' ) start [2025-01-08 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198636', 'tblTempUsageDetail_20' ) end [2025-01-08 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:42:20] Production.INFO: ==5402== Releasing lock... [2025-01-08 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:42:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:43:04 [end_date_ymd] => 2025-01-08 00:43:04 [RateCDR] => 1 ) [2025-01-08 00:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:43:04' and `end` < '2025-01-08 00:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:43:17] Production.INFO: count ==126 [2025-01-08 00:43:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:43:04 - End Time 2025-01-08 00:43:04 [2025-01-08 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198641', 'tblTempUsageDetail_20' ) start [2025-01-08 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198641', 'tblTempUsageDetail_20' ) end [2025-01-08 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198641', 'tblTempVendorCDR_20' ) start [2025-01-08 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198641', 'tblTempVendorCDR_20' ) end [2025-01-08 00:43:17] Production.INFO: ProcessCDR(1,14198641,1,1,2) [2025-01-08 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198641', 'tblTempUsageDetail_20' ) start [2025-01-08 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198641', 'tblTempUsageDetail_20' ) end [2025-01-08 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:43:20] Production.INFO: ==5472== Releasing lock... [2025-01-08 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:43:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:44:05 [end_date_ymd] => 2025-01-08 00:44:05 [RateCDR] => 1 ) [2025-01-08 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:44:05' and `end` < '2025-01-08 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:44:19] Production.INFO: count ==126 [2025-01-08 00:44:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:44:05 - End Time 2025-01-08 00:44:05 [2025-01-08 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198646', 'tblTempUsageDetail_20' ) start [2025-01-08 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198646', 'tblTempUsageDetail_20' ) end [2025-01-08 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198646', 'tblTempVendorCDR_20' ) start [2025-01-08 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198646', 'tblTempVendorCDR_20' ) end [2025-01-08 00:44:19] Production.INFO: ProcessCDR(1,14198646,1,1,2) [2025-01-08 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198646', 'tblTempUsageDetail_20' ) start [2025-01-08 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198646', 'tblTempUsageDetail_20' ) end [2025-01-08 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:44:22] Production.INFO: ==5546== Releasing lock... [2025-01-08 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:44:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:45:04 [end_date_ymd] => 2025-01-08 00:45:04 [RateCDR] => 1 ) [2025-01-08 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:45:04' and `end` < '2025-01-08 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:45:17] Production.INFO: count ==126 [2025-01-08 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:45:04 - End Time 2025-01-08 00:45:04 [2025-01-08 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198651', 'tblTempUsageDetail_20' ) start [2025-01-08 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198651', 'tblTempUsageDetail_20' ) end [2025-01-08 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198651', 'tblTempVendorCDR_20' ) start [2025-01-08 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198651', 'tblTempVendorCDR_20' ) end [2025-01-08 00:45:17] Production.INFO: ProcessCDR(1,14198651,1,1,2) [2025-01-08 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198651', 'tblTempUsageDetail_20' ) start [2025-01-08 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198651', 'tblTempUsageDetail_20' ) end [2025-01-08 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:45:21] Production.INFO: ==5619== Releasing lock... [2025-01-08 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:46:05 [end_date_ymd] => 2025-01-08 00:46:05 [RateCDR] => 1 ) [2025-01-08 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:46:05' and `end` < '2025-01-08 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:46:19] Production.INFO: count ==126 [2025-01-08 00:46:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:46:05 - End Time 2025-01-08 00:46:05 [2025-01-08 00:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198656', 'tblTempUsageDetail_20' ) start [2025-01-08 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198656', 'tblTempUsageDetail_20' ) end [2025-01-08 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198656', 'tblTempVendorCDR_20' ) start [2025-01-08 00:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198656', 'tblTempVendorCDR_20' ) end [2025-01-08 00:46:19] Production.INFO: ProcessCDR(1,14198656,1,1,2) [2025-01-08 00:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198656', 'tblTempUsageDetail_20' ) start [2025-01-08 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198656', 'tblTempUsageDetail_20' ) end [2025-01-08 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:46:22] Production.INFO: ==5690== Releasing lock... [2025-01-08 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:46:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:47:05 [end_date_ymd] => 2025-01-08 00:47:05 [RateCDR] => 1 ) [2025-01-08 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:47:05' and `end` < '2025-01-08 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:47:19] Production.INFO: count ==126 [2025-01-08 00:47:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:47:05 - End Time 2025-01-08 00:47:05 [2025-01-08 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198661', 'tblTempUsageDetail_20' ) start [2025-01-08 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198661', 'tblTempUsageDetail_20' ) end [2025-01-08 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198661', 'tblTempVendorCDR_20' ) start [2025-01-08 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198661', 'tblTempVendorCDR_20' ) end [2025-01-08 00:47:19] Production.INFO: ProcessCDR(1,14198661,1,1,2) [2025-01-08 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198661', 'tblTempUsageDetail_20' ) start [2025-01-08 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198661', 'tblTempUsageDetail_20' ) end [2025-01-08 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:47:22] Production.INFO: ==5761== Releasing lock... [2025-01-08 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:47:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:48:05 [end_date_ymd] => 2025-01-08 00:48:05 [RateCDR] => 1 ) [2025-01-08 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:48:05' and `end` < '2025-01-08 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:48:18] Production.INFO: count ==126 [2025-01-08 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:48:05 - End Time 2025-01-08 00:48:05 [2025-01-08 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198666', 'tblTempUsageDetail_20' ) start [2025-01-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198666', 'tblTempUsageDetail_20' ) end [2025-01-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198666', 'tblTempVendorCDR_20' ) start [2025-01-08 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198666', 'tblTempVendorCDR_20' ) end [2025-01-08 00:48:18] Production.INFO: ProcessCDR(1,14198666,1,1,2) [2025-01-08 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198666', 'tblTempUsageDetail_20' ) start [2025-01-08 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198666', 'tblTempUsageDetail_20' ) end [2025-01-08 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:48:21] Production.INFO: ==5833== Releasing lock... [2025-01-08 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:49:04 [end_date_ymd] => 2025-01-08 00:49:04 [RateCDR] => 1 ) [2025-01-08 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:49:04' and `end` < '2025-01-08 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:49:17] Production.INFO: count ==126 [2025-01-08 00:49:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:49:04 - End Time 2025-01-08 00:49:04 [2025-01-08 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198671', 'tblTempUsageDetail_20' ) start [2025-01-08 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198671', 'tblTempUsageDetail_20' ) end [2025-01-08 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198671', 'tblTempVendorCDR_20' ) start [2025-01-08 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198671', 'tblTempVendorCDR_20' ) end [2025-01-08 00:49:17] Production.INFO: ProcessCDR(1,14198671,1,1,2) [2025-01-08 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198671', 'tblTempUsageDetail_20' ) start [2025-01-08 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198671', 'tblTempUsageDetail_20' ) end [2025-01-08 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:49:20] Production.INFO: ==5903== Releasing lock... [2025-01-08 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:49:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:50:05 [end_date_ymd] => 2025-01-08 00:50:05 [RateCDR] => 1 ) [2025-01-08 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:50:05' and `end` < '2025-01-08 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:50:18] Production.INFO: count ==132 [2025-01-08 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:50:05 - End Time 2025-01-08 00:50:05 [2025-01-08 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198676', 'tblTempUsageDetail_20' ) start [2025-01-08 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198676', 'tblTempUsageDetail_20' ) end [2025-01-08 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198676', 'tblTempVendorCDR_20' ) start [2025-01-08 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198676', 'tblTempVendorCDR_20' ) end [2025-01-08 00:50:18] Production.INFO: ProcessCDR(1,14198676,1,1,2) [2025-01-08 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198676', 'tblTempUsageDetail_20' ) start [2025-01-08 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198676', 'tblTempUsageDetail_20' ) end [2025-01-08 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:50:22] Production.INFO: ==6014== Releasing lock... [2025-01-08 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:50:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:51:06 [end_date_ymd] => 2025-01-08 00:51:06 [RateCDR] => 1 ) [2025-01-08 00:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:51:06' and `end` < '2025-01-08 00:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:51:19] Production.INFO: count ==142 [2025-01-08 00:51:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:51:06 - End Time 2025-01-08 00:51:06 [2025-01-08 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198682', 'tblTempUsageDetail_20' ) start [2025-01-08 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198682', 'tblTempUsageDetail_20' ) end [2025-01-08 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198682', 'tblTempVendorCDR_20' ) start [2025-01-08 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198682', 'tblTempVendorCDR_20' ) end [2025-01-08 00:51:19] Production.INFO: ProcessCDR(1,14198682,1,1,2) [2025-01-08 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198682', 'tblTempUsageDetail_20' ) start [2025-01-08 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198682', 'tblTempUsageDetail_20' ) end [2025-01-08 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:51:22] Production.INFO: ==6087== Releasing lock... [2025-01-08 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:52:05 [end_date_ymd] => 2025-01-08 00:52:05 [RateCDR] => 1 ) [2025-01-08 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:52:05' and `end` < '2025-01-08 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:52:18] Production.INFO: count ==142 [2025-01-08 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:52:05 - End Time 2025-01-08 00:52:05 [2025-01-08 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198687', 'tblTempUsageDetail_20' ) start [2025-01-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198687', 'tblTempUsageDetail_20' ) end [2025-01-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198687', 'tblTempVendorCDR_20' ) start [2025-01-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198687', 'tblTempVendorCDR_20' ) end [2025-01-08 00:52:18] Production.INFO: ProcessCDR(1,14198687,1,1,2) [2025-01-08 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198687', 'tblTempUsageDetail_20' ) start [2025-01-08 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198687', 'tblTempUsageDetail_20' ) end [2025-01-08 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:52:21] Production.INFO: ==6157== Releasing lock... [2025-01-08 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:53:06 [end_date_ymd] => 2025-01-08 00:53:06 [RateCDR] => 1 ) [2025-01-08 00:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:53:06' and `end` < '2025-01-08 00:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:53:20] Production.INFO: count ==142 [2025-01-08 00:53:20] Production.ERROR: pbx CDR StartTime 2025-01-07 21:53:06 - End Time 2025-01-08 00:53:06 [2025-01-08 00:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198692', 'tblTempUsageDetail_20' ) start [2025-01-08 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198692', 'tblTempUsageDetail_20' ) end [2025-01-08 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198692', 'tblTempVendorCDR_20' ) start [2025-01-08 00:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198692', 'tblTempVendorCDR_20' ) end [2025-01-08 00:53:20] Production.INFO: ProcessCDR(1,14198692,1,1,2) [2025-01-08 00:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198692', 'tblTempUsageDetail_20' ) start [2025-01-08 00:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198692', 'tblTempUsageDetail_20' ) end [2025-01-08 00:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:53:24] Production.INFO: ==6229== Releasing lock... [2025-01-08 00:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:53:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:54:05 [end_date_ymd] => 2025-01-08 00:54:05 [RateCDR] => 1 ) [2025-01-08 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:54:05' and `end` < '2025-01-08 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:54:18] Production.INFO: count ==143 [2025-01-08 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-07 21:54:05 - End Time 2025-01-08 00:54:05 [2025-01-08 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198697', 'tblTempUsageDetail_20' ) start [2025-01-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198697', 'tblTempUsageDetail_20' ) end [2025-01-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198697', 'tblTempVendorCDR_20' ) start [2025-01-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198697', 'tblTempVendorCDR_20' ) end [2025-01-08 00:54:18] Production.INFO: ProcessCDR(1,14198697,1,1,2) [2025-01-08 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198697', 'tblTempUsageDetail_20' ) start [2025-01-08 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198697', 'tblTempUsageDetail_20' ) end [2025-01-08 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:54:22] Production.INFO: ==6300== Releasing lock... [2025-01-08 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:55:05 [end_date_ymd] => 2025-01-08 00:55:05 [RateCDR] => 1 ) [2025-01-08 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:55:05' and `end` < '2025-01-08 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:55:20] Production.INFO: count ==140 [2025-01-08 00:55:20] Production.ERROR: pbx CDR StartTime 2025-01-07 21:55:05 - End Time 2025-01-08 00:55:05 [2025-01-08 00:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198702', 'tblTempUsageDetail_20' ) start [2025-01-08 00:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198702', 'tblTempUsageDetail_20' ) end [2025-01-08 00:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198702', 'tblTempVendorCDR_20' ) start [2025-01-08 00:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198702', 'tblTempVendorCDR_20' ) end [2025-01-08 00:55:20] Production.INFO: ProcessCDR(1,14198702,1,1,2) [2025-01-08 00:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198702', 'tblTempUsageDetail_20' ) start [2025-01-08 00:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198702', 'tblTempUsageDetail_20' ) end [2025-01-08 00:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:55:24] Production.INFO: ==6372== Releasing lock... [2025-01-08 00:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:55:24] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:56:05 [end_date_ymd] => 2025-01-08 00:56:05 [RateCDR] => 1 ) [2025-01-08 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:56:05' and `end` < '2025-01-08 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:56:17] Production.INFO: count ==140 [2025-01-08 00:56:17] Production.ERROR: pbx CDR StartTime 2025-01-07 21:56:05 - End Time 2025-01-08 00:56:05 [2025-01-08 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198707', 'tblTempUsageDetail_20' ) start [2025-01-08 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198707', 'tblTempUsageDetail_20' ) end [2025-01-08 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198707', 'tblTempVendorCDR_20' ) start [2025-01-08 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198707', 'tblTempVendorCDR_20' ) end [2025-01-08 00:56:17] Production.INFO: ProcessCDR(1,14198707,1,1,2) [2025-01-08 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198707', 'tblTempUsageDetail_20' ) start [2025-01-08 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198707', 'tblTempUsageDetail_20' ) end [2025-01-08 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:56:21] Production.INFO: ==6442== Releasing lock... [2025-01-08 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:56:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:57:05 [end_date_ymd] => 2025-01-08 00:57:05 [RateCDR] => 1 ) [2025-01-08 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:57:05' and `end` < '2025-01-08 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:57:19] Production.INFO: count ==140 [2025-01-08 00:57:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:57:05 - End Time 2025-01-08 00:57:05 [2025-01-08 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198712', 'tblTempUsageDetail_20' ) start [2025-01-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198712', 'tblTempUsageDetail_20' ) end [2025-01-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198712', 'tblTempVendorCDR_20' ) start [2025-01-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198712', 'tblTempVendorCDR_20' ) end [2025-01-08 00:57:19] Production.INFO: ProcessCDR(1,14198712,1,1,2) [2025-01-08 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198712', 'tblTempUsageDetail_20' ) start [2025-01-08 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198712', 'tblTempUsageDetail_20' ) end [2025-01-08 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:57:22] Production.INFO: ==6512== Releasing lock... [2025-01-08 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:57:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:58:06 [end_date_ymd] => 2025-01-08 00:58:06 [RateCDR] => 1 ) [2025-01-08 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:58:06' and `end` < '2025-01-08 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:58:20] Production.INFO: count ==138 [2025-01-08 00:58:20] Production.ERROR: pbx CDR StartTime 2025-01-07 21:58:06 - End Time 2025-01-08 00:58:06 [2025-01-08 00:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198717', 'tblTempUsageDetail_20' ) start [2025-01-08 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198717', 'tblTempUsageDetail_20' ) end [2025-01-08 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198717', 'tblTempVendorCDR_20' ) start [2025-01-08 00:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198717', 'tblTempVendorCDR_20' ) end [2025-01-08 00:58:20] Production.INFO: ProcessCDR(1,14198717,1,1,2) [2025-01-08 00:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198717', 'tblTempUsageDetail_20' ) start [2025-01-08 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198717', 'tblTempUsageDetail_20' ) end [2025-01-08 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:58:23] Production.INFO: ==6582== Releasing lock... [2025-01-08 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:58:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 21:59:05 [end_date_ymd] => 2025-01-08 00:59:05 [RateCDR] => 1 ) [2025-01-08 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 21:59:05' and `end` < '2025-01-08 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 00:59:19] Production.INFO: count ==140 [2025-01-08 00:59:19] Production.ERROR: pbx CDR StartTime 2025-01-07 21:59:05 - End Time 2025-01-08 00:59:05 [2025-01-08 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198722', 'tblTempUsageDetail_20' ) start [2025-01-08 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198722', 'tblTempUsageDetail_20' ) end [2025-01-08 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198722', 'tblTempVendorCDR_20' ) start [2025-01-08 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198722', 'tblTempVendorCDR_20' ) end [2025-01-08 00:59:19] Production.INFO: ProcessCDR(1,14198722,1,1,2) [2025-01-08 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198722', 'tblTempUsageDetail_20' ) start [2025-01-08 00:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198722', 'tblTempUsageDetail_20' ) end [2025-01-08 00:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 00:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 00:59:23] Production.INFO: ==6654== Releasing lock... [2025-01-08 00:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 00:59:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:00:06 [end_date_ymd] => 2025-01-08 01:00:06 [RateCDR] => 1 ) [2025-01-08 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:00:06' and `end` < '2025-01-08 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:00:19] Production.INFO: count ==148 [2025-01-08 01:00:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:00:06 - End Time 2025-01-08 01:00:06 [2025-01-08 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198728', 'tblTempUsageDetail_20' ) start [2025-01-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198728', 'tblTempUsageDetail_20' ) end [2025-01-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198728', 'tblTempVendorCDR_20' ) start [2025-01-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198728', 'tblTempVendorCDR_20' ) end [2025-01-08 01:00:19] Production.INFO: ProcessCDR(1,14198728,1,1,2) [2025-01-08 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198728', 'tblTempUsageDetail_20' ) start [2025-01-08 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198728', 'tblTempUsageDetail_20' ) end [2025-01-08 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:00:22] Production.INFO: ==6729== Releasing lock... [2025-01-08 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:00:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:01:06 [end_date_ymd] => 2025-01-08 01:01:06 [RateCDR] => 1 ) [2025-01-08 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:01:06' and `end` < '2025-01-08 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:01:21] Production.INFO: count ==152 [2025-01-08 01:01:21] Production.ERROR: pbx CDR StartTime 2025-01-07 22:01:06 - End Time 2025-01-08 01:01:06 [2025-01-08 01:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198733', 'tblTempUsageDetail_20' ) start [2025-01-08 01:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198733', 'tblTempUsageDetail_20' ) end [2025-01-08 01:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198733', 'tblTempVendorCDR_20' ) start [2025-01-08 01:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198733', 'tblTempVendorCDR_20' ) end [2025-01-08 01:01:21] Production.INFO: ProcessCDR(1,14198733,1,1,2) [2025-01-08 01:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198733', 'tblTempUsageDetail_20' ) start [2025-01-08 01:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198733', 'tblTempUsageDetail_20' ) end [2025-01-08 01:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:01:24] Production.INFO: ==6822== Releasing lock... [2025-01-08 01:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:01:24] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:02:05 [end_date_ymd] => 2025-01-08 01:02:05 [RateCDR] => 1 ) [2025-01-08 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:02:05' and `end` < '2025-01-08 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:02:17] Production.INFO: count ==152 [2025-01-08 01:02:17] Production.ERROR: pbx CDR StartTime 2025-01-07 22:02:05 - End Time 2025-01-08 01:02:05 [2025-01-08 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198738', 'tblTempUsageDetail_20' ) start [2025-01-08 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198738', 'tblTempUsageDetail_20' ) end [2025-01-08 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198738', 'tblTempVendorCDR_20' ) start [2025-01-08 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198738', 'tblTempVendorCDR_20' ) end [2025-01-08 01:02:17] Production.INFO: ProcessCDR(1,14198738,1,1,2) [2025-01-08 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198738', 'tblTempUsageDetail_20' ) start [2025-01-08 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198738', 'tblTempUsageDetail_20' ) end [2025-01-08 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:02:21] Production.INFO: ==6892== Releasing lock... [2025-01-08 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:03:05 [end_date_ymd] => 2025-01-08 01:03:05 [RateCDR] => 1 ) [2025-01-08 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:03:05' and `end` < '2025-01-08 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:03:18] Production.INFO: count ==152 [2025-01-08 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:03:05 - End Time 2025-01-08 01:03:05 [2025-01-08 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198743', 'tblTempUsageDetail_20' ) start [2025-01-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198743', 'tblTempUsageDetail_20' ) end [2025-01-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198743', 'tblTempVendorCDR_20' ) start [2025-01-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198743', 'tblTempVendorCDR_20' ) end [2025-01-08 01:03:18] Production.INFO: ProcessCDR(1,14198743,1,1,2) [2025-01-08 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198743', 'tblTempUsageDetail_20' ) start [2025-01-08 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198743', 'tblTempUsageDetail_20' ) end [2025-01-08 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:03:21] Production.INFO: ==6963== Releasing lock... [2025-01-08 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:04:04 [end_date_ymd] => 2025-01-08 01:04:04 [RateCDR] => 1 ) [2025-01-08 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:04:04' and `end` < '2025-01-08 01:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:04:18] Production.INFO: count ==151 [2025-01-08 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:04:04 - End Time 2025-01-08 01:04:04 [2025-01-08 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198748', 'tblTempUsageDetail_20' ) start [2025-01-08 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198748', 'tblTempUsageDetail_20' ) end [2025-01-08 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198748', 'tblTempVendorCDR_20' ) start [2025-01-08 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198748', 'tblTempVendorCDR_20' ) end [2025-01-08 01:04:18] Production.INFO: ProcessCDR(1,14198748,1,1,2) [2025-01-08 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198748', 'tblTempUsageDetail_20' ) start [2025-01-08 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198748', 'tblTempUsageDetail_20' ) end [2025-01-08 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:04:21] Production.INFO: ==7034== Releasing lock... [2025-01-08 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:05:05 [end_date_ymd] => 2025-01-08 01:05:05 [RateCDR] => 1 ) [2025-01-08 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:05:05' and `end` < '2025-01-08 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:05:18] Production.INFO: count ==151 [2025-01-08 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:05:05 - End Time 2025-01-08 01:05:05 [2025-01-08 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198753', 'tblTempUsageDetail_20' ) start [2025-01-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198753', 'tblTempUsageDetail_20' ) end [2025-01-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198753', 'tblTempVendorCDR_20' ) start [2025-01-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198753', 'tblTempVendorCDR_20' ) end [2025-01-08 01:05:18] Production.INFO: ProcessCDR(1,14198753,1,1,2) [2025-01-08 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198753', 'tblTempUsageDetail_20' ) start [2025-01-08 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198753', 'tblTempUsageDetail_20' ) end [2025-01-08 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:05:21] Production.INFO: ==7103== Releasing lock... [2025-01-08 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:06:05 [end_date_ymd] => 2025-01-08 01:06:05 [RateCDR] => 1 ) [2025-01-08 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:06:05' and `end` < '2025-01-08 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:06:18] Production.INFO: count ==151 [2025-01-08 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:06:05 - End Time 2025-01-08 01:06:05 [2025-01-08 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198758', 'tblTempUsageDetail_20' ) start [2025-01-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198758', 'tblTempUsageDetail_20' ) end [2025-01-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198758', 'tblTempVendorCDR_20' ) start [2025-01-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198758', 'tblTempVendorCDR_20' ) end [2025-01-08 01:06:18] Production.INFO: ProcessCDR(1,14198758,1,1,2) [2025-01-08 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198758', 'tblTempUsageDetail_20' ) start [2025-01-08 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198758', 'tblTempUsageDetail_20' ) end [2025-01-08 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:06:22] Production.INFO: ==7212== Releasing lock... [2025-01-08 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:07:05 [end_date_ymd] => 2025-01-08 01:07:05 [RateCDR] => 1 ) [2025-01-08 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:07:05' and `end` < '2025-01-08 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:07:18] Production.INFO: count ==150 [2025-01-08 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:07:05 - End Time 2025-01-08 01:07:05 [2025-01-08 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198763', 'tblTempUsageDetail_20' ) start [2025-01-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198763', 'tblTempUsageDetail_20' ) end [2025-01-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198763', 'tblTempVendorCDR_20' ) start [2025-01-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198763', 'tblTempVendorCDR_20' ) end [2025-01-08 01:07:18] Production.INFO: ProcessCDR(1,14198763,1,1,2) [2025-01-08 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198763', 'tblTempUsageDetail_20' ) start [2025-01-08 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198763', 'tblTempUsageDetail_20' ) end [2025-01-08 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:07:21] Production.INFO: ==7281== Releasing lock... [2025-01-08 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:08:05 [end_date_ymd] => 2025-01-08 01:08:05 [RateCDR] => 1 ) [2025-01-08 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:08:05' and `end` < '2025-01-08 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:08:19] Production.INFO: count ==153 [2025-01-08 01:08:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:08:05 - End Time 2025-01-08 01:08:05 [2025-01-08 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198768', 'tblTempUsageDetail_20' ) start [2025-01-08 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198768', 'tblTempUsageDetail_20' ) end [2025-01-08 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198768', 'tblTempVendorCDR_20' ) start [2025-01-08 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198768', 'tblTempVendorCDR_20' ) end [2025-01-08 01:08:19] Production.INFO: ProcessCDR(1,14198768,1,1,2) [2025-01-08 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198768', 'tblTempUsageDetail_20' ) start [2025-01-08 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198768', 'tblTempUsageDetail_20' ) end [2025-01-08 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:08:22] Production.INFO: ==7353== Releasing lock... [2025-01-08 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:08:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:09:05 [end_date_ymd] => 2025-01-08 01:09:05 [RateCDR] => 1 ) [2025-01-08 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:09:05' and `end` < '2025-01-08 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:09:19] Production.INFO: count ==152 [2025-01-08 01:09:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:09:05 - End Time 2025-01-08 01:09:05 [2025-01-08 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198773', 'tblTempUsageDetail_20' ) start [2025-01-08 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198773', 'tblTempUsageDetail_20' ) end [2025-01-08 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198773', 'tblTempVendorCDR_20' ) start [2025-01-08 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198773', 'tblTempVendorCDR_20' ) end [2025-01-08 01:09:19] Production.INFO: ProcessCDR(1,14198773,1,1,2) [2025-01-08 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198773', 'tblTempUsageDetail_20' ) start [2025-01-08 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198773', 'tblTempUsageDetail_20' ) end [2025-01-08 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:09:22] Production.INFO: ==7423== Releasing lock... [2025-01-08 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:09:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:10:06 [end_date_ymd] => 2025-01-08 01:10:06 [RateCDR] => 1 ) [2025-01-08 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:10:06' and `end` < '2025-01-08 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:10:19] Production.INFO: count ==159 [2025-01-08 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:10:06 - End Time 2025-01-08 01:10:06 [2025-01-08 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198779', 'tblTempUsageDetail_20' ) start [2025-01-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198779', 'tblTempUsageDetail_20' ) end [2025-01-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198779', 'tblTempVendorCDR_20' ) start [2025-01-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198779', 'tblTempVendorCDR_20' ) end [2025-01-08 01:10:19] Production.INFO: ProcessCDR(1,14198779,1,1,2) [2025-01-08 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198779', 'tblTempUsageDetail_20' ) start [2025-01-08 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198779', 'tblTempUsageDetail_20' ) end [2025-01-08 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:10:22] Production.INFO: ==7496== Releasing lock... [2025-01-08 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:10:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:11:05 [end_date_ymd] => 2025-01-08 01:11:05 [RateCDR] => 1 ) [2025-01-08 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:11:05' and `end` < '2025-01-08 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:11:18] Production.INFO: count ==163 [2025-01-08 01:11:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:11:05 - End Time 2025-01-08 01:11:05 [2025-01-08 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198784', 'tblTempUsageDetail_20' ) start [2025-01-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198784', 'tblTempUsageDetail_20' ) end [2025-01-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198784', 'tblTempVendorCDR_20' ) start [2025-01-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198784', 'tblTempVendorCDR_20' ) end [2025-01-08 01:11:18] Production.INFO: ProcessCDR(1,14198784,1,1,2) [2025-01-08 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198784', 'tblTempUsageDetail_20' ) start [2025-01-08 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198784', 'tblTempUsageDetail_20' ) end [2025-01-08 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:11:21] Production.INFO: ==7568== Releasing lock... [2025-01-08 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:12:04 [end_date_ymd] => 2025-01-08 01:12:04 [RateCDR] => 1 ) [2025-01-08 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:12:04' and `end` < '2025-01-08 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:12:17] Production.INFO: count ==163 [2025-01-08 01:12:17] Production.ERROR: pbx CDR StartTime 2025-01-07 22:12:04 - End Time 2025-01-08 01:12:04 [2025-01-08 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198789', 'tblTempUsageDetail_20' ) start [2025-01-08 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198789', 'tblTempUsageDetail_20' ) end [2025-01-08 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198789', 'tblTempVendorCDR_20' ) start [2025-01-08 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198789', 'tblTempVendorCDR_20' ) end [2025-01-08 01:12:17] Production.INFO: ProcessCDR(1,14198789,1,1,2) [2025-01-08 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198789', 'tblTempUsageDetail_20' ) start [2025-01-08 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198789', 'tblTempUsageDetail_20' ) end [2025-01-08 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:12:21] Production.INFO: ==7641== Releasing lock... [2025-01-08 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:12:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:13:04 [end_date_ymd] => 2025-01-08 01:13:04 [RateCDR] => 1 ) [2025-01-08 01:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:13:04' and `end` < '2025-01-08 01:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:13:18] Production.INFO: count ==163 [2025-01-08 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:13:04 - End Time 2025-01-08 01:13:04 [2025-01-08 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198794', 'tblTempUsageDetail_20' ) start [2025-01-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198794', 'tblTempUsageDetail_20' ) end [2025-01-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198794', 'tblTempVendorCDR_20' ) start [2025-01-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198794', 'tblTempVendorCDR_20' ) end [2025-01-08 01:13:18] Production.INFO: ProcessCDR(1,14198794,1,1,2) [2025-01-08 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198794', 'tblTempUsageDetail_20' ) start [2025-01-08 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198794', 'tblTempUsageDetail_20' ) end [2025-01-08 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:13:21] Production.INFO: ==7711== Releasing lock... [2025-01-08 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:14:05 [end_date_ymd] => 2025-01-08 01:14:05 [RateCDR] => 1 ) [2025-01-08 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:14:05' and `end` < '2025-01-08 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:14:20] Production.INFO: count ==163 [2025-01-08 01:14:20] Production.ERROR: pbx CDR StartTime 2025-01-07 22:14:05 - End Time 2025-01-08 01:14:05 [2025-01-08 01:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198799', 'tblTempUsageDetail_20' ) start [2025-01-08 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198799', 'tblTempUsageDetail_20' ) end [2025-01-08 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198799', 'tblTempVendorCDR_20' ) start [2025-01-08 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198799', 'tblTempVendorCDR_20' ) end [2025-01-08 01:14:20] Production.INFO: ProcessCDR(1,14198799,1,1,2) [2025-01-08 01:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198799', 'tblTempUsageDetail_20' ) start [2025-01-08 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198799', 'tblTempUsageDetail_20' ) end [2025-01-08 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:14:23] Production.INFO: ==7784== Releasing lock... [2025-01-08 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:14:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:15:06 [end_date_ymd] => 2025-01-08 01:15:06 [RateCDR] => 1 ) [2025-01-08 01:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:15:06' and `end` < '2025-01-08 01:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:15:18] Production.INFO: count ==162 [2025-01-08 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:15:06 - End Time 2025-01-08 01:15:06 [2025-01-08 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198804', 'tblTempUsageDetail_20' ) start [2025-01-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198804', 'tblTempUsageDetail_20' ) end [2025-01-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198804', 'tblTempVendorCDR_20' ) start [2025-01-08 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198804', 'tblTempVendorCDR_20' ) end [2025-01-08 01:15:18] Production.INFO: ProcessCDR(1,14198804,1,1,2) [2025-01-08 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198804', 'tblTempUsageDetail_20' ) start [2025-01-08 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198804', 'tblTempUsageDetail_20' ) end [2025-01-08 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:15:22] Production.INFO: ==7862== Releasing lock... [2025-01-08 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:15:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:16:05 [end_date_ymd] => 2025-01-08 01:16:05 [RateCDR] => 1 ) [2025-01-08 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:16:05' and `end` < '2025-01-08 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:16:18] Production.INFO: count ==162 [2025-01-08 01:16:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:16:05 - End Time 2025-01-08 01:16:05 [2025-01-08 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198809', 'tblTempUsageDetail_20' ) start [2025-01-08 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198809', 'tblTempUsageDetail_20' ) end [2025-01-08 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198809', 'tblTempVendorCDR_20' ) start [2025-01-08 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198809', 'tblTempVendorCDR_20' ) end [2025-01-08 01:16:19] Production.INFO: ProcessCDR(1,14198809,1,1,2) [2025-01-08 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198809', 'tblTempUsageDetail_20' ) start [2025-01-08 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198809', 'tblTempUsageDetail_20' ) end [2025-01-08 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:16:22] Production.INFO: ==7931== Releasing lock... [2025-01-08 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:16:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:17:06 [end_date_ymd] => 2025-01-08 01:17:06 [RateCDR] => 1 ) [2025-01-08 01:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:17:06' and `end` < '2025-01-08 01:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:17:19] Production.INFO: count ==162 [2025-01-08 01:17:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:17:06 - End Time 2025-01-08 01:17:06 [2025-01-08 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198814', 'tblTempUsageDetail_20' ) start [2025-01-08 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198814', 'tblTempUsageDetail_20' ) end [2025-01-08 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198814', 'tblTempVendorCDR_20' ) start [2025-01-08 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198814', 'tblTempVendorCDR_20' ) end [2025-01-08 01:17:19] Production.INFO: ProcessCDR(1,14198814,1,1,2) [2025-01-08 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198814', 'tblTempUsageDetail_20' ) start [2025-01-08 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198814', 'tblTempUsageDetail_20' ) end [2025-01-08 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:17:22] Production.INFO: ==8002== Releasing lock... [2025-01-08 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:17:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:18:05 [end_date_ymd] => 2025-01-08 01:18:05 [RateCDR] => 1 ) [2025-01-08 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:18:05' and `end` < '2025-01-08 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:18:18] Production.INFO: count ==161 [2025-01-08 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:18:05 - End Time 2025-01-08 01:18:05 [2025-01-08 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198819', 'tblTempUsageDetail_20' ) start [2025-01-08 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198819', 'tblTempUsageDetail_20' ) end [2025-01-08 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198819', 'tblTempVendorCDR_20' ) start [2025-01-08 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198819', 'tblTempVendorCDR_20' ) end [2025-01-08 01:18:18] Production.INFO: ProcessCDR(1,14198819,1,1,2) [2025-01-08 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198819', 'tblTempUsageDetail_20' ) start [2025-01-08 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198819', 'tblTempUsageDetail_20' ) end [2025-01-08 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:18:21] Production.INFO: ==8072== Releasing lock... [2025-01-08 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:19:05 [end_date_ymd] => 2025-01-08 01:19:05 [RateCDR] => 1 ) [2025-01-08 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:19:05' and `end` < '2025-01-08 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:19:19] Production.INFO: count ==161 [2025-01-08 01:19:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:19:05 - End Time 2025-01-08 01:19:05 [2025-01-08 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198824', 'tblTempUsageDetail_20' ) start [2025-01-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198824', 'tblTempUsageDetail_20' ) end [2025-01-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198824', 'tblTempVendorCDR_20' ) start [2025-01-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198824', 'tblTempVendorCDR_20' ) end [2025-01-08 01:19:19] Production.INFO: ProcessCDR(1,14198824,1,1,2) [2025-01-08 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198824', 'tblTempUsageDetail_20' ) start [2025-01-08 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198824', 'tblTempUsageDetail_20' ) end [2025-01-08 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:19:22] Production.INFO: ==8142== Releasing lock... [2025-01-08 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:19:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:20:05 [end_date_ymd] => 2025-01-08 01:20:05 [RateCDR] => 1 ) [2025-01-08 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:20:05' and `end` < '2025-01-08 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:20:18] Production.INFO: count ==165 [2025-01-08 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:20:05 - End Time 2025-01-08 01:20:05 [2025-01-08 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198830', 'tblTempUsageDetail_20' ) start [2025-01-08 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198830', 'tblTempUsageDetail_20' ) end [2025-01-08 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198830', 'tblTempVendorCDR_20' ) start [2025-01-08 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198830', 'tblTempVendorCDR_20' ) end [2025-01-08 01:20:18] Production.INFO: ProcessCDR(1,14198830,1,1,2) [2025-01-08 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198830', 'tblTempUsageDetail_20' ) start [2025-01-08 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198830', 'tblTempUsageDetail_20' ) end [2025-01-08 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:20:21] Production.INFO: ==8216== Releasing lock... [2025-01-08 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:20:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:21:05 [end_date_ymd] => 2025-01-08 01:21:05 [RateCDR] => 1 ) [2025-01-08 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:21:05' and `end` < '2025-01-08 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:21:18] Production.INFO: count ==165 [2025-01-08 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:21:05 - End Time 2025-01-08 01:21:05 [2025-01-08 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198835', 'tblTempUsageDetail_20' ) start [2025-01-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198835', 'tblTempUsageDetail_20' ) end [2025-01-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198835', 'tblTempVendorCDR_20' ) start [2025-01-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198835', 'tblTempVendorCDR_20' ) end [2025-01-08 01:21:18] Production.INFO: ProcessCDR(1,14198835,1,1,2) [2025-01-08 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198835', 'tblTempUsageDetail_20' ) start [2025-01-08 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198835', 'tblTempUsageDetail_20' ) end [2025-01-08 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:21:21] Production.INFO: ==8327== Releasing lock... [2025-01-08 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:22:05 [end_date_ymd] => 2025-01-08 01:22:05 [RateCDR] => 1 ) [2025-01-08 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:22:05' and `end` < '2025-01-08 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:22:18] Production.INFO: count ==164 [2025-01-08 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:22:05 - End Time 2025-01-08 01:22:05 [2025-01-08 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198840', 'tblTempUsageDetail_20' ) start [2025-01-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198840', 'tblTempUsageDetail_20' ) end [2025-01-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198840', 'tblTempVendorCDR_20' ) start [2025-01-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198840', 'tblTempVendorCDR_20' ) end [2025-01-08 01:22:18] Production.INFO: ProcessCDR(1,14198840,1,1,2) [2025-01-08 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198840', 'tblTempUsageDetail_20' ) start [2025-01-08 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198840', 'tblTempUsageDetail_20' ) end [2025-01-08 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:22:21] Production.INFO: ==8399== Releasing lock... [2025-01-08 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:23:05 [end_date_ymd] => 2025-01-08 01:23:05 [RateCDR] => 1 ) [2025-01-08 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:23:05' and `end` < '2025-01-08 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:23:18] Production.INFO: count ==164 [2025-01-08 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:23:05 - End Time 2025-01-08 01:23:05 [2025-01-08 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198845', 'tblTempUsageDetail_20' ) start [2025-01-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198845', 'tblTempUsageDetail_20' ) end [2025-01-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198845', 'tblTempVendorCDR_20' ) start [2025-01-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198845', 'tblTempVendorCDR_20' ) end [2025-01-08 01:23:18] Production.INFO: ProcessCDR(1,14198845,1,1,2) [2025-01-08 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198845', 'tblTempUsageDetail_20' ) start [2025-01-08 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198845', 'tblTempUsageDetail_20' ) end [2025-01-08 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:23:21] Production.INFO: ==8471== Releasing lock... [2025-01-08 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:24:05 [end_date_ymd] => 2025-01-08 01:24:05 [RateCDR] => 1 ) [2025-01-08 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:24:05' and `end` < '2025-01-08 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:24:18] Production.INFO: count ==163 [2025-01-08 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:24:05 - End Time 2025-01-08 01:24:05 [2025-01-08 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198850', 'tblTempUsageDetail_20' ) start [2025-01-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198850', 'tblTempUsageDetail_20' ) end [2025-01-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198850', 'tblTempVendorCDR_20' ) start [2025-01-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198850', 'tblTempVendorCDR_20' ) end [2025-01-08 01:24:18] Production.INFO: ProcessCDR(1,14198850,1,1,2) [2025-01-08 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198850', 'tblTempUsageDetail_20' ) start [2025-01-08 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198850', 'tblTempUsageDetail_20' ) end [2025-01-08 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:24:21] Production.INFO: ==8542== Releasing lock... [2025-01-08 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:25:05 [end_date_ymd] => 2025-01-08 01:25:05 [RateCDR] => 1 ) [2025-01-08 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:25:05' and `end` < '2025-01-08 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:25:18] Production.INFO: count ==163 [2025-01-08 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:25:05 - End Time 2025-01-08 01:25:05 [2025-01-08 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198855', 'tblTempUsageDetail_20' ) start [2025-01-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198855', 'tblTempUsageDetail_20' ) end [2025-01-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198855', 'tblTempVendorCDR_20' ) start [2025-01-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198855', 'tblTempVendorCDR_20' ) end [2025-01-08 01:25:18] Production.INFO: ProcessCDR(1,14198855,1,1,2) [2025-01-08 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198855', 'tblTempUsageDetail_20' ) start [2025-01-08 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198855', 'tblTempUsageDetail_20' ) end [2025-01-08 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:25:21] Production.INFO: ==8611== Releasing lock... [2025-01-08 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:26:05 [end_date_ymd] => 2025-01-08 01:26:05 [RateCDR] => 1 ) [2025-01-08 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:26:05' and `end` < '2025-01-08 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:26:18] Production.INFO: count ==162 [2025-01-08 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:26:05 - End Time 2025-01-08 01:26:05 [2025-01-08 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198860', 'tblTempUsageDetail_20' ) start [2025-01-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198860', 'tblTempUsageDetail_20' ) end [2025-01-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198860', 'tblTempVendorCDR_20' ) start [2025-01-08 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198860', 'tblTempVendorCDR_20' ) end [2025-01-08 01:26:18] Production.INFO: ProcessCDR(1,14198860,1,1,2) [2025-01-08 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198860', 'tblTempUsageDetail_20' ) start [2025-01-08 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198860', 'tblTempUsageDetail_20' ) end [2025-01-08 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:26:21] Production.INFO: ==8682== Releasing lock... [2025-01-08 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:27:05 [end_date_ymd] => 2025-01-08 01:27:05 [RateCDR] => 1 ) [2025-01-08 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:27:05' and `end` < '2025-01-08 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:27:18] Production.INFO: count ==166 [2025-01-08 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:27:05 - End Time 2025-01-08 01:27:05 [2025-01-08 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198865', 'tblTempUsageDetail_20' ) start [2025-01-08 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198865', 'tblTempUsageDetail_20' ) end [2025-01-08 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198865', 'tblTempVendorCDR_20' ) start [2025-01-08 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198865', 'tblTempVendorCDR_20' ) end [2025-01-08 01:27:18] Production.INFO: ProcessCDR(1,14198865,1,1,2) [2025-01-08 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198865', 'tblTempUsageDetail_20' ) start [2025-01-08 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198865', 'tblTempUsageDetail_20' ) end [2025-01-08 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:27:23] Production.INFO: ==8753== Releasing lock... [2025-01-08 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:27:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:28:05 [end_date_ymd] => 2025-01-08 01:28:05 [RateCDR] => 1 ) [2025-01-08 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:28:05' and `end` < '2025-01-08 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:28:20] Production.INFO: count ==166 [2025-01-08 01:28:20] Production.ERROR: pbx CDR StartTime 2025-01-07 22:28:05 - End Time 2025-01-08 01:28:05 [2025-01-08 01:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198870', 'tblTempUsageDetail_20' ) start [2025-01-08 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198870', 'tblTempUsageDetail_20' ) end [2025-01-08 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198870', 'tblTempVendorCDR_20' ) start [2025-01-08 01:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198870', 'tblTempVendorCDR_20' ) end [2025-01-08 01:28:20] Production.INFO: ProcessCDR(1,14198870,1,1,2) [2025-01-08 01:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198870', 'tblTempUsageDetail_20' ) start [2025-01-08 01:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198870', 'tblTempUsageDetail_20' ) end [2025-01-08 01:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:28:24] Production.INFO: ==8830== Releasing lock... [2025-01-08 01:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:28:24] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:29:04 [end_date_ymd] => 2025-01-08 01:29:04 [RateCDR] => 1 ) [2025-01-08 01:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:29:04' and `end` < '2025-01-08 01:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:29:19] Production.INFO: count ==166 [2025-01-08 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:29:04 - End Time 2025-01-08 01:29:04 [2025-01-08 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198875', 'tblTempUsageDetail_20' ) start [2025-01-08 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198875', 'tblTempUsageDetail_20' ) end [2025-01-08 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198875', 'tblTempVendorCDR_20' ) start [2025-01-08 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198875', 'tblTempVendorCDR_20' ) end [2025-01-08 01:29:19] Production.INFO: ProcessCDR(1,14198875,1,1,2) [2025-01-08 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198875', 'tblTempUsageDetail_20' ) start [2025-01-08 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198875', 'tblTempUsageDetail_20' ) end [2025-01-08 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:29:22] Production.INFO: ==8916== Releasing lock... [2025-01-08 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:29:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:30:06 [end_date_ymd] => 2025-01-08 01:30:06 [RateCDR] => 1 ) [2025-01-08 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:30:06' and `end` < '2025-01-08 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:30:19] Production.INFO: count ==173 [2025-01-08 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:30:06 - End Time 2025-01-08 01:30:06 [2025-01-08 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198880', 'tblTempUsageDetail_20' ) start [2025-01-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198880', 'tblTempUsageDetail_20' ) end [2025-01-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198880', 'tblTempVendorCDR_20' ) start [2025-01-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198880', 'tblTempVendorCDR_20' ) end [2025-01-08 01:30:19] Production.INFO: ProcessCDR(1,14198880,1,1,2) [2025-01-08 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198880', 'tblTempUsageDetail_20' ) start [2025-01-08 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198880', 'tblTempUsageDetail_20' ) end [2025-01-08 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:30:22] Production.INFO: ==9005== Releasing lock... [2025-01-08 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:31:04 [end_date_ymd] => 2025-01-08 01:31:04 [RateCDR] => 1 ) [2025-01-08 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:31:04' and `end` < '2025-01-08 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:31:18] Production.INFO: count ==172 [2025-01-08 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:31:04 - End Time 2025-01-08 01:31:04 [2025-01-08 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198886', 'tblTempUsageDetail_20' ) start [2025-01-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198886', 'tblTempUsageDetail_20' ) end [2025-01-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198886', 'tblTempVendorCDR_20' ) start [2025-01-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198886', 'tblTempVendorCDR_20' ) end [2025-01-08 01:31:18] Production.INFO: ProcessCDR(1,14198886,1,1,2) [2025-01-08 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198886', 'tblTempUsageDetail_20' ) start [2025-01-08 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198886', 'tblTempUsageDetail_20' ) end [2025-01-08 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:31:21] Production.INFO: ==9090== Releasing lock... [2025-01-08 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:32:05 [end_date_ymd] => 2025-01-08 01:32:05 [RateCDR] => 1 ) [2025-01-08 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:32:05' and `end` < '2025-01-08 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:32:20] Production.INFO: count ==172 [2025-01-08 01:32:20] Production.ERROR: pbx CDR StartTime 2025-01-07 22:32:05 - End Time 2025-01-08 01:32:05 [2025-01-08 01:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198891', 'tblTempUsageDetail_20' ) start [2025-01-08 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198891', 'tblTempUsageDetail_20' ) end [2025-01-08 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198891', 'tblTempVendorCDR_20' ) start [2025-01-08 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198891', 'tblTempVendorCDR_20' ) end [2025-01-08 01:32:20] Production.INFO: ProcessCDR(1,14198891,1,1,2) [2025-01-08 01:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198891', 'tblTempUsageDetail_20' ) start [2025-01-08 01:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198891', 'tblTempUsageDetail_20' ) end [2025-01-08 01:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:32:24] Production.INFO: ==9180== Releasing lock... [2025-01-08 01:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:32:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:33:05 [end_date_ymd] => 2025-01-08 01:33:05 [RateCDR] => 1 ) [2025-01-08 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:33:05' and `end` < '2025-01-08 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:33:18] Production.INFO: count ==173 [2025-01-08 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:33:05 - End Time 2025-01-08 01:33:05 [2025-01-08 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198896', 'tblTempUsageDetail_20' ) start [2025-01-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198896', 'tblTempUsageDetail_20' ) end [2025-01-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198896', 'tblTempVendorCDR_20' ) start [2025-01-08 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198896', 'tblTempVendorCDR_20' ) end [2025-01-08 01:33:18] Production.INFO: ProcessCDR(1,14198896,1,1,2) [2025-01-08 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198896', 'tblTempUsageDetail_20' ) start [2025-01-08 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198896', 'tblTempUsageDetail_20' ) end [2025-01-08 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:33:22] Production.INFO: ==9264== Releasing lock... [2025-01-08 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:33:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:34:05 [end_date_ymd] => 2025-01-08 01:34:05 [RateCDR] => 1 ) [2025-01-08 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:34:05' and `end` < '2025-01-08 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:34:18] Production.INFO: count ==173 [2025-01-08 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:34:05 - End Time 2025-01-08 01:34:05 [2025-01-08 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198901', 'tblTempUsageDetail_20' ) start [2025-01-08 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198901', 'tblTempUsageDetail_20' ) end [2025-01-08 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198901', 'tblTempVendorCDR_20' ) start [2025-01-08 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198901', 'tblTempVendorCDR_20' ) end [2025-01-08 01:34:18] Production.INFO: ProcessCDR(1,14198901,1,1,2) [2025-01-08 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198901', 'tblTempUsageDetail_20' ) start [2025-01-08 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198901', 'tblTempUsageDetail_20' ) end [2025-01-08 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:34:21] Production.INFO: ==9349== Releasing lock... [2025-01-08 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:35:04 [end_date_ymd] => 2025-01-08 01:35:04 [RateCDR] => 1 ) [2025-01-08 01:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:35:04' and `end` < '2025-01-08 01:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:35:17] Production.INFO: count ==175 [2025-01-08 01:35:17] Production.ERROR: pbx CDR StartTime 2025-01-07 22:35:04 - End Time 2025-01-08 01:35:04 [2025-01-08 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198906', 'tblTempUsageDetail_20' ) start [2025-01-08 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198906', 'tblTempUsageDetail_20' ) end [2025-01-08 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198906', 'tblTempVendorCDR_20' ) start [2025-01-08 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198906', 'tblTempVendorCDR_20' ) end [2025-01-08 01:35:17] Production.INFO: ProcessCDR(1,14198906,1,1,2) [2025-01-08 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198906', 'tblTempUsageDetail_20' ) start [2025-01-08 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198906', 'tblTempUsageDetail_20' ) end [2025-01-08 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:35:22] Production.INFO: ==9433== Releasing lock... [2025-01-08 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:35:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:36:04 [end_date_ymd] => 2025-01-08 01:36:04 [RateCDR] => 1 ) [2025-01-08 01:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:36:04' and `end` < '2025-01-08 01:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:36:18] Production.INFO: count ==175 [2025-01-08 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:36:04 - End Time 2025-01-08 01:36:04 [2025-01-08 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198911', 'tblTempUsageDetail_20' ) start [2025-01-08 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198911', 'tblTempUsageDetail_20' ) end [2025-01-08 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198911', 'tblTempVendorCDR_20' ) start [2025-01-08 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198911', 'tblTempVendorCDR_20' ) end [2025-01-08 01:36:19] Production.INFO: ProcessCDR(1,14198911,1,1,2) [2025-01-08 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198911', 'tblTempUsageDetail_20' ) start [2025-01-08 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198911', 'tblTempUsageDetail_20' ) end [2025-01-08 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:36:22] Production.INFO: ==9518== Releasing lock... [2025-01-08 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:37:06 [end_date_ymd] => 2025-01-08 01:37:06 [RateCDR] => 1 ) [2025-01-08 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:37:06' and `end` < '2025-01-08 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:37:18] Production.INFO: count ==175 [2025-01-08 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:37:06 - End Time 2025-01-08 01:37:06 [2025-01-08 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198916', 'tblTempUsageDetail_20' ) start [2025-01-08 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198916', 'tblTempUsageDetail_20' ) end [2025-01-08 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198916', 'tblTempVendorCDR_20' ) start [2025-01-08 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198916', 'tblTempVendorCDR_20' ) end [2025-01-08 01:37:18] Production.INFO: ProcessCDR(1,14198916,1,1,2) [2025-01-08 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198916', 'tblTempUsageDetail_20' ) start [2025-01-08 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198916', 'tblTempUsageDetail_20' ) end [2025-01-08 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:37:21] Production.INFO: ==9646== Releasing lock... [2025-01-08 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:38:05 [end_date_ymd] => 2025-01-08 01:38:05 [RateCDR] => 1 ) [2025-01-08 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:38:05' and `end` < '2025-01-08 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:38:18] Production.INFO: count ==175 [2025-01-08 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:38:05 - End Time 2025-01-08 01:38:05 [2025-01-08 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198921', 'tblTempUsageDetail_20' ) start [2025-01-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198921', 'tblTempUsageDetail_20' ) end [2025-01-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198921', 'tblTempVendorCDR_20' ) start [2025-01-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198921', 'tblTempVendorCDR_20' ) end [2025-01-08 01:38:18] Production.INFO: ProcessCDR(1,14198921,1,1,2) [2025-01-08 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198921', 'tblTempUsageDetail_20' ) start [2025-01-08 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198921', 'tblTempUsageDetail_20' ) end [2025-01-08 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:38:21] Production.INFO: ==9733== Releasing lock... [2025-01-08 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:39:05 [end_date_ymd] => 2025-01-08 01:39:05 [RateCDR] => 1 ) [2025-01-08 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:39:05' and `end` < '2025-01-08 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:39:18] Production.INFO: count ==175 [2025-01-08 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:39:05 - End Time 2025-01-08 01:39:05 [2025-01-08 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198926', 'tblTempUsageDetail_20' ) start [2025-01-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198926', 'tblTempUsageDetail_20' ) end [2025-01-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198926', 'tblTempVendorCDR_20' ) start [2025-01-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198926', 'tblTempVendorCDR_20' ) end [2025-01-08 01:39:18] Production.INFO: ProcessCDR(1,14198926,1,1,2) [2025-01-08 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198926', 'tblTempUsageDetail_20' ) start [2025-01-08 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198926', 'tblTempUsageDetail_20' ) end [2025-01-08 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:39:21] Production.INFO: ==9820== Releasing lock... [2025-01-08 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:40:05 [end_date_ymd] => 2025-01-08 01:40:05 [RateCDR] => 1 ) [2025-01-08 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:40:05' and `end` < '2025-01-08 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:40:18] Production.INFO: count ==181 [2025-01-08 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:40:05 - End Time 2025-01-08 01:40:05 [2025-01-08 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198931', 'tblTempUsageDetail_20' ) start [2025-01-08 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198931', 'tblTempUsageDetail_20' ) end [2025-01-08 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198931', 'tblTempVendorCDR_20' ) start [2025-01-08 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198931', 'tblTempVendorCDR_20' ) end [2025-01-08 01:40:18] Production.INFO: ProcessCDR(1,14198931,1,1,2) [2025-01-08 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198931', 'tblTempUsageDetail_20' ) start [2025-01-08 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198931', 'tblTempUsageDetail_20' ) end [2025-01-08 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:40:21] Production.INFO: ==9905== Releasing lock... [2025-01-08 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:41:05 [end_date_ymd] => 2025-01-08 01:41:05 [RateCDR] => 1 ) [2025-01-08 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:41:05' and `end` < '2025-01-08 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:41:18] Production.INFO: count ==187 [2025-01-08 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:41:05 - End Time 2025-01-08 01:41:05 [2025-01-08 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198937', 'tblTempUsageDetail_20' ) start [2025-01-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198937', 'tblTempUsageDetail_20' ) end [2025-01-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198937', 'tblTempVendorCDR_20' ) start [2025-01-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198937', 'tblTempVendorCDR_20' ) end [2025-01-08 01:41:18] Production.INFO: ProcessCDR(1,14198937,1,1,2) [2025-01-08 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198937', 'tblTempUsageDetail_20' ) start [2025-01-08 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198937', 'tblTempUsageDetail_20' ) end [2025-01-08 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:41:21] Production.INFO: ==9993== Releasing lock... [2025-01-08 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:42:04 [end_date_ymd] => 2025-01-08 01:42:04 [RateCDR] => 1 ) [2025-01-08 01:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:42:04' and `end` < '2025-01-08 01:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:42:17] Production.INFO: count ==187 [2025-01-08 01:42:17] Production.ERROR: pbx CDR StartTime 2025-01-07 22:42:04 - End Time 2025-01-08 01:42:04 [2025-01-08 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198942', 'tblTempUsageDetail_20' ) start [2025-01-08 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198942', 'tblTempUsageDetail_20' ) end [2025-01-08 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198942', 'tblTempVendorCDR_20' ) start [2025-01-08 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198942', 'tblTempVendorCDR_20' ) end [2025-01-08 01:42:17] Production.INFO: ProcessCDR(1,14198942,1,1,2) [2025-01-08 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198942', 'tblTempUsageDetail_20' ) start [2025-01-08 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198942', 'tblTempUsageDetail_20' ) end [2025-01-08 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:42:21] Production.INFO: ==10086== Releasing lock... [2025-01-08 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:43:05 [end_date_ymd] => 2025-01-08 01:43:05 [RateCDR] => 1 ) [2025-01-08 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:43:05' and `end` < '2025-01-08 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:43:20] Production.INFO: count ==185 [2025-01-08 01:43:20] Production.ERROR: pbx CDR StartTime 2025-01-07 22:43:05 - End Time 2025-01-08 01:43:05 [2025-01-08 01:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198947', 'tblTempUsageDetail_20' ) start [2025-01-08 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198947', 'tblTempUsageDetail_20' ) end [2025-01-08 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198947', 'tblTempVendorCDR_20' ) start [2025-01-08 01:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198947', 'tblTempVendorCDR_20' ) end [2025-01-08 01:43:20] Production.INFO: ProcessCDR(1,14198947,1,1,2) [2025-01-08 01:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198947', 'tblTempUsageDetail_20' ) start [2025-01-08 01:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198947', 'tblTempUsageDetail_20' ) end [2025-01-08 01:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:43:23] Production.INFO: ==10194== Releasing lock... [2025-01-08 01:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:43:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:44:05 [end_date_ymd] => 2025-01-08 01:44:05 [RateCDR] => 1 ) [2025-01-08 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:44:05' and `end` < '2025-01-08 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:44:18] Production.INFO: count ==185 [2025-01-08 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:44:05 - End Time 2025-01-08 01:44:05 [2025-01-08 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198952', 'tblTempUsageDetail_20' ) start [2025-01-08 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198952', 'tblTempUsageDetail_20' ) end [2025-01-08 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198952', 'tblTempVendorCDR_20' ) start [2025-01-08 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198952', 'tblTempVendorCDR_20' ) end [2025-01-08 01:44:18] Production.INFO: ProcessCDR(1,14198952,1,1,2) [2025-01-08 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198952', 'tblTempUsageDetail_20' ) start [2025-01-08 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198952', 'tblTempUsageDetail_20' ) end [2025-01-08 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:44:22] Production.INFO: ==10298== Releasing lock... [2025-01-08 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:44:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:45:05 [end_date_ymd] => 2025-01-08 01:45:05 [RateCDR] => 1 ) [2025-01-08 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:45:05' and `end` < '2025-01-08 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:45:18] Production.INFO: count ==185 [2025-01-08 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:45:05 - End Time 2025-01-08 01:45:05 [2025-01-08 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198957', 'tblTempUsageDetail_20' ) start [2025-01-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198957', 'tblTempUsageDetail_20' ) end [2025-01-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198957', 'tblTempVendorCDR_20' ) start [2025-01-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198957', 'tblTempVendorCDR_20' ) end [2025-01-08 01:45:18] Production.INFO: ProcessCDR(1,14198957,1,1,2) [2025-01-08 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198957', 'tblTempUsageDetail_20' ) start [2025-01-08 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198957', 'tblTempUsageDetail_20' ) end [2025-01-08 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:45:21] Production.INFO: ==10399== Releasing lock... [2025-01-08 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:46:05 [end_date_ymd] => 2025-01-08 01:46:05 [RateCDR] => 1 ) [2025-01-08 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:46:05' and `end` < '2025-01-08 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:46:18] Production.INFO: count ==185 [2025-01-08 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:46:05 - End Time 2025-01-08 01:46:05 [2025-01-08 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198962', 'tblTempUsageDetail_20' ) start [2025-01-08 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198962', 'tblTempUsageDetail_20' ) end [2025-01-08 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198962', 'tblTempVendorCDR_20' ) start [2025-01-08 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198962', 'tblTempVendorCDR_20' ) end [2025-01-08 01:46:18] Production.INFO: ProcessCDR(1,14198962,1,1,2) [2025-01-08 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198962', 'tblTempUsageDetail_20' ) start [2025-01-08 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198962', 'tblTempUsageDetail_20' ) end [2025-01-08 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:46:21] Production.INFO: ==10502== Releasing lock... [2025-01-08 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:47:05 [end_date_ymd] => 2025-01-08 01:47:05 [RateCDR] => 1 ) [2025-01-08 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:47:05' and `end` < '2025-01-08 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:47:18] Production.INFO: count ==182 [2025-01-08 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:47:05 - End Time 2025-01-08 01:47:05 [2025-01-08 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198967', 'tblTempUsageDetail_20' ) start [2025-01-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198967', 'tblTempUsageDetail_20' ) end [2025-01-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198967', 'tblTempVendorCDR_20' ) start [2025-01-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198967', 'tblTempVendorCDR_20' ) end [2025-01-08 01:47:18] Production.INFO: ProcessCDR(1,14198967,1,1,2) [2025-01-08 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198967', 'tblTempUsageDetail_20' ) start [2025-01-08 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198967', 'tblTempUsageDetail_20' ) end [2025-01-08 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:47:21] Production.INFO: ==10608== Releasing lock... [2025-01-08 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:47:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:48:05 [end_date_ymd] => 2025-01-08 01:48:05 [RateCDR] => 1 ) [2025-01-08 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:48:05' and `end` < '2025-01-08 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:48:18] Production.INFO: count ==180 [2025-01-08 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:48:05 - End Time 2025-01-08 01:48:05 [2025-01-08 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198972', 'tblTempUsageDetail_20' ) start [2025-01-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198972', 'tblTempUsageDetail_20' ) end [2025-01-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198972', 'tblTempVendorCDR_20' ) start [2025-01-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198972', 'tblTempVendorCDR_20' ) end [2025-01-08 01:48:18] Production.INFO: ProcessCDR(1,14198972,1,1,2) [2025-01-08 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198972', 'tblTempUsageDetail_20' ) start [2025-01-08 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198972', 'tblTempUsageDetail_20' ) end [2025-01-08 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:48:21] Production.INFO: ==10715== Releasing lock... [2025-01-08 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:49:05 [end_date_ymd] => 2025-01-08 01:49:05 [RateCDR] => 1 ) [2025-01-08 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:49:05' and `end` < '2025-01-08 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:49:19] Production.INFO: count ==180 [2025-01-08 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:49:05 - End Time 2025-01-08 01:49:05 [2025-01-08 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198977', 'tblTempUsageDetail_20' ) start [2025-01-08 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198977', 'tblTempUsageDetail_20' ) end [2025-01-08 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198977', 'tblTempVendorCDR_20' ) start [2025-01-08 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198977', 'tblTempVendorCDR_20' ) end [2025-01-08 01:49:19] Production.INFO: ProcessCDR(1,14198977,1,1,2) [2025-01-08 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198977', 'tblTempUsageDetail_20' ) start [2025-01-08 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198977', 'tblTempUsageDetail_20' ) end [2025-01-08 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:49:22] Production.INFO: ==10817== Releasing lock... [2025-01-08 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:50:05 [end_date_ymd] => 2025-01-08 01:50:05 [RateCDR] => 1 ) [2025-01-08 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:50:05' and `end` < '2025-01-08 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:50:18] Production.INFO: count ==182 [2025-01-08 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:50:05 - End Time 2025-01-08 01:50:05 [2025-01-08 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198982', 'tblTempUsageDetail_20' ) start [2025-01-08 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198982', 'tblTempUsageDetail_20' ) end [2025-01-08 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198982', 'tblTempVendorCDR_20' ) start [2025-01-08 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198982', 'tblTempVendorCDR_20' ) end [2025-01-08 01:50:18] Production.INFO: ProcessCDR(1,14198982,1,1,2) [2025-01-08 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198982', 'tblTempUsageDetail_20' ) start [2025-01-08 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198982', 'tblTempUsageDetail_20' ) end [2025-01-08 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:50:21] Production.INFO: ==10926== Releasing lock... [2025-01-08 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:50:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:51:05 [end_date_ymd] => 2025-01-08 01:51:05 [RateCDR] => 1 ) [2025-01-08 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:51:05' and `end` < '2025-01-08 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:51:18] Production.INFO: count ==182 [2025-01-08 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:51:05 - End Time 2025-01-08 01:51:05 [2025-01-08 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198988', 'tblTempUsageDetail_20' ) start [2025-01-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198988', 'tblTempUsageDetail_20' ) end [2025-01-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198988', 'tblTempVendorCDR_20' ) start [2025-01-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198988', 'tblTempVendorCDR_20' ) end [2025-01-08 01:51:18] Production.INFO: ProcessCDR(1,14198988,1,1,2) [2025-01-08 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198988', 'tblTempUsageDetail_20' ) start [2025-01-08 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198988', 'tblTempUsageDetail_20' ) end [2025-01-08 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:51:21] Production.INFO: ==11034== Releasing lock... [2025-01-08 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:51:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:52:05 [end_date_ymd] => 2025-01-08 01:52:05 [RateCDR] => 1 ) [2025-01-08 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:52:05' and `end` < '2025-01-08 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:52:18] Production.INFO: count ==182 [2025-01-08 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:52:05 - End Time 2025-01-08 01:52:05 [2025-01-08 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198993', 'tblTempUsageDetail_20' ) start [2025-01-08 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198993', 'tblTempUsageDetail_20' ) end [2025-01-08 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198993', 'tblTempVendorCDR_20' ) start [2025-01-08 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198993', 'tblTempVendorCDR_20' ) end [2025-01-08 01:52:18] Production.INFO: ProcessCDR(1,14198993,1,1,2) [2025-01-08 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198993', 'tblTempUsageDetail_20' ) start [2025-01-08 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198993', 'tblTempUsageDetail_20' ) end [2025-01-08 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:52:22] Production.INFO: ==11140== Releasing lock... [2025-01-08 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:52:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:53:05 [end_date_ymd] => 2025-01-08 01:53:05 [RateCDR] => 1 ) [2025-01-08 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:53:05' and `end` < '2025-01-08 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:53:18] Production.INFO: count ==181 [2025-01-08 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:53:05 - End Time 2025-01-08 01:53:05 [2025-01-08 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198998', 'tblTempUsageDetail_20' ) start [2025-01-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14198998', 'tblTempUsageDetail_20' ) end [2025-01-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198998', 'tblTempVendorCDR_20' ) start [2025-01-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14198998', 'tblTempVendorCDR_20' ) end [2025-01-08 01:53:18] Production.INFO: ProcessCDR(1,14198998,1,1,2) [2025-01-08 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14198998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14198998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14198998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14198998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198998', 'tblTempUsageDetail_20' ) start [2025-01-08 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14198998', 'tblTempUsageDetail_20' ) end [2025-01-08 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:53:21] Production.INFO: ==11285== Releasing lock... [2025-01-08 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:53:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:54:04 [end_date_ymd] => 2025-01-08 01:54:04 [RateCDR] => 1 ) [2025-01-08 01:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:54:04' and `end` < '2025-01-08 01:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:54:17] Production.INFO: count ==182 [2025-01-08 01:54:17] Production.ERROR: pbx CDR StartTime 2025-01-07 22:54:04 - End Time 2025-01-08 01:54:04 [2025-01-08 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199003', 'tblTempUsageDetail_20' ) start [2025-01-08 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199003', 'tblTempUsageDetail_20' ) end [2025-01-08 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199003', 'tblTempVendorCDR_20' ) start [2025-01-08 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199003', 'tblTempVendorCDR_20' ) end [2025-01-08 01:54:17] Production.INFO: ProcessCDR(1,14199003,1,1,2) [2025-01-08 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199003', 'tblTempUsageDetail_20' ) start [2025-01-08 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199003', 'tblTempUsageDetail_20' ) end [2025-01-08 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:54:22] Production.INFO: ==11386== Releasing lock... [2025-01-08 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:54:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:55:05 [end_date_ymd] => 2025-01-08 01:55:05 [RateCDR] => 1 ) [2025-01-08 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:55:05' and `end` < '2025-01-08 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:55:18] Production.INFO: count ==182 [2025-01-08 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:55:05 - End Time 2025-01-08 01:55:05 [2025-01-08 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199008', 'tblTempUsageDetail_20' ) start [2025-01-08 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199008', 'tblTempUsageDetail_20' ) end [2025-01-08 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199008', 'tblTempVendorCDR_20' ) start [2025-01-08 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199008', 'tblTempVendorCDR_20' ) end [2025-01-08 01:55:18] Production.INFO: ProcessCDR(1,14199008,1,1,2) [2025-01-08 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199008', 'tblTempUsageDetail_20' ) start [2025-01-08 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199008', 'tblTempUsageDetail_20' ) end [2025-01-08 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:55:21] Production.INFO: ==11490== Releasing lock... [2025-01-08 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:55:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:56:05 [end_date_ymd] => 2025-01-08 01:56:05 [RateCDR] => 1 ) [2025-01-08 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:56:05' and `end` < '2025-01-08 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:56:19] Production.INFO: count ==181 [2025-01-08 01:56:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:56:05 - End Time 2025-01-08 01:56:05 [2025-01-08 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199013', 'tblTempUsageDetail_20' ) start [2025-01-08 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199013', 'tblTempUsageDetail_20' ) end [2025-01-08 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199013', 'tblTempVendorCDR_20' ) start [2025-01-08 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199013', 'tblTempVendorCDR_20' ) end [2025-01-08 01:56:19] Production.INFO: ProcessCDR(1,14199013,1,1,2) [2025-01-08 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199013', 'tblTempUsageDetail_20' ) start [2025-01-08 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199013', 'tblTempUsageDetail_20' ) end [2025-01-08 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:56:22] Production.INFO: ==11597== Releasing lock... [2025-01-08 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:56:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:57:05 [end_date_ymd] => 2025-01-08 01:57:05 [RateCDR] => 1 ) [2025-01-08 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:57:05' and `end` < '2025-01-08 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:57:18] Production.INFO: count ==181 [2025-01-08 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-07 22:57:05 - End Time 2025-01-08 01:57:05 [2025-01-08 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199018', 'tblTempUsageDetail_20' ) start [2025-01-08 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199018', 'tblTempUsageDetail_20' ) end [2025-01-08 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199018', 'tblTempVendorCDR_20' ) start [2025-01-08 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199018', 'tblTempVendorCDR_20' ) end [2025-01-08 01:57:18] Production.INFO: ProcessCDR(1,14199018,1,1,2) [2025-01-08 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199018', 'tblTempUsageDetail_20' ) start [2025-01-08 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199018', 'tblTempUsageDetail_20' ) end [2025-01-08 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:57:21] Production.INFO: ==11707== Releasing lock... [2025-01-08 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:57:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:58:05 [end_date_ymd] => 2025-01-08 01:58:05 [RateCDR] => 1 ) [2025-01-08 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:58:05' and `end` < '2025-01-08 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:58:19] Production.INFO: count ==181 [2025-01-08 01:58:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:58:05 - End Time 2025-01-08 01:58:05 [2025-01-08 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199023', 'tblTempUsageDetail_20' ) start [2025-01-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199023', 'tblTempUsageDetail_20' ) end [2025-01-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199023', 'tblTempVendorCDR_20' ) start [2025-01-08 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199023', 'tblTempVendorCDR_20' ) end [2025-01-08 01:58:19] Production.INFO: ProcessCDR(1,14199023,1,1,2) [2025-01-08 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199023', 'tblTempUsageDetail_20' ) start [2025-01-08 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199023', 'tblTempUsageDetail_20' ) end [2025-01-08 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:58:22] Production.INFO: ==11819== Releasing lock... [2025-01-08 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:58:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 22:59:05 [end_date_ymd] => 2025-01-08 01:59:05 [RateCDR] => 1 ) [2025-01-08 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 22:59:05' and `end` < '2025-01-08 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 01:59:19] Production.INFO: count ==181 [2025-01-08 01:59:19] Production.ERROR: pbx CDR StartTime 2025-01-07 22:59:05 - End Time 2025-01-08 01:59:05 [2025-01-08 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199024', 'tblTempUsageDetail_20' ) start [2025-01-08 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199024', 'tblTempUsageDetail_20' ) end [2025-01-08 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199024', 'tblTempVendorCDR_20' ) start [2025-01-08 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199024', 'tblTempVendorCDR_20' ) end [2025-01-08 01:59:19] Production.INFO: ProcessCDR(1,14199024,1,1,2) [2025-01-08 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199024', 'tblTempUsageDetail_20' ) start [2025-01-08 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199024', 'tblTempUsageDetail_20' ) end [2025-01-08 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 01:59:22] Production.INFO: ==11927== Releasing lock... [2025-01-08 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 01:59:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:00:06 [end_date_ymd] => 2025-01-08 02:00:06 [RateCDR] => 1 ) [2025-01-08 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:00:06' and `end` < '2025-01-08 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:00:20] Production.INFO: count ==192 [2025-01-08 02:00:20] Production.ERROR: pbx CDR StartTime 2025-01-07 23:00:06 - End Time 2025-01-08 02:00:06 [2025-01-08 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199033', 'tblTempUsageDetail_20' ) start [2025-01-08 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199033', 'tblTempUsageDetail_20' ) end [2025-01-08 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199033', 'tblTempVendorCDR_20' ) start [2025-01-08 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199033', 'tblTempVendorCDR_20' ) end [2025-01-08 02:00:20] Production.INFO: ProcessCDR(1,14199033,1,1,2) [2025-01-08 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199033', 'tblTempUsageDetail_20' ) start [2025-01-08 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199033', 'tblTempUsageDetail_20' ) end [2025-01-08 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:00:23] Production.INFO: ==12033== Releasing lock... [2025-01-08 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:00:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:01:05 [end_date_ymd] => 2025-01-08 02:01:05 [RateCDR] => 1 ) [2025-01-08 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:01:05' and `end` < '2025-01-08 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:01:20] Production.INFO: count ==195 [2025-01-08 02:01:20] Production.ERROR: pbx CDR StartTime 2025-01-07 23:01:05 - End Time 2025-01-08 02:01:05 [2025-01-08 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199039', 'tblTempUsageDetail_20' ) start [2025-01-08 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199039', 'tblTempUsageDetail_20' ) end [2025-01-08 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199039', 'tblTempVendorCDR_20' ) start [2025-01-08 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199039', 'tblTempVendorCDR_20' ) end [2025-01-08 02:01:20] Production.INFO: ProcessCDR(1,14199039,1,1,2) [2025-01-08 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199039', 'tblTempUsageDetail_20' ) start [2025-01-08 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199039', 'tblTempUsageDetail_20' ) end [2025-01-08 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:01:23] Production.INFO: ==12227== Releasing lock... [2025-01-08 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:01:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:02:05 [end_date_ymd] => 2025-01-08 02:02:05 [RateCDR] => 1 ) [2025-01-08 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:02:05' and `end` < '2025-01-08 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:02:20] Production.INFO: count ==196 [2025-01-08 02:02:20] Production.ERROR: pbx CDR StartTime 2025-01-07 23:02:05 - End Time 2025-01-08 02:02:05 [2025-01-08 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199044', 'tblTempUsageDetail_20' ) start [2025-01-08 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199044', 'tblTempUsageDetail_20' ) end [2025-01-08 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199044', 'tblTempVendorCDR_20' ) start [2025-01-08 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199044', 'tblTempVendorCDR_20' ) end [2025-01-08 02:02:20] Production.INFO: ProcessCDR(1,14199044,1,1,2) [2025-01-08 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199044', 'tblTempUsageDetail_20' ) start [2025-01-08 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199044', 'tblTempUsageDetail_20' ) end [2025-01-08 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:02:23] Production.INFO: ==12328== Releasing lock... [2025-01-08 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:02:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:03:05 [end_date_ymd] => 2025-01-08 02:03:05 [RateCDR] => 1 ) [2025-01-08 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:03:05' and `end` < '2025-01-08 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:03:18] Production.INFO: count ==198 [2025-01-08 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:03:05 - End Time 2025-01-08 02:03:05 [2025-01-08 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199049', 'tblTempUsageDetail_20' ) start [2025-01-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199049', 'tblTempUsageDetail_20' ) end [2025-01-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199049', 'tblTempVendorCDR_20' ) start [2025-01-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199049', 'tblTempVendorCDR_20' ) end [2025-01-08 02:03:18] Production.INFO: ProcessCDR(1,14199049,1,1,2) [2025-01-08 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199049', 'tblTempUsageDetail_20' ) start [2025-01-08 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199049', 'tblTempUsageDetail_20' ) end [2025-01-08 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:03:21] Production.INFO: ==12413== Releasing lock... [2025-01-08 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:04:04 [end_date_ymd] => 2025-01-08 02:04:04 [RateCDR] => 1 ) [2025-01-08 02:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:04:04' and `end` < '2025-01-08 02:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:04:19] Production.INFO: count ==197 [2025-01-08 02:04:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:04:04 - End Time 2025-01-08 02:04:04 [2025-01-08 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199054', 'tblTempUsageDetail_20' ) start [2025-01-08 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199054', 'tblTempUsageDetail_20' ) end [2025-01-08 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199054', 'tblTempVendorCDR_20' ) start [2025-01-08 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199054', 'tblTempVendorCDR_20' ) end [2025-01-08 02:04:19] Production.INFO: ProcessCDR(1,14199054,1,1,2) [2025-01-08 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199054', 'tblTempUsageDetail_20' ) start [2025-01-08 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199054', 'tblTempUsageDetail_20' ) end [2025-01-08 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:04:22] Production.INFO: ==12506== Releasing lock... [2025-01-08 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:04:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:05:05 [end_date_ymd] => 2025-01-08 02:05:05 [RateCDR] => 1 ) [2025-01-08 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:05:05' and `end` < '2025-01-08 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:05:18] Production.INFO: count ==196 [2025-01-08 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:05:05 - End Time 2025-01-08 02:05:05 [2025-01-08 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199059', 'tblTempUsageDetail_20' ) start [2025-01-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199059', 'tblTempUsageDetail_20' ) end [2025-01-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199059', 'tblTempVendorCDR_20' ) start [2025-01-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199059', 'tblTempVendorCDR_20' ) end [2025-01-08 02:05:18] Production.INFO: ProcessCDR(1,14199059,1,1,2) [2025-01-08 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199059', 'tblTempUsageDetail_20' ) start [2025-01-08 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199059', 'tblTempUsageDetail_20' ) end [2025-01-08 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:05:21] Production.INFO: ==12590== Releasing lock... [2025-01-08 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:06:04 [end_date_ymd] => 2025-01-08 02:06:04 [RateCDR] => 1 ) [2025-01-08 02:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:06:04' and `end` < '2025-01-08 02:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:06:17] Production.INFO: count ==194 [2025-01-08 02:06:17] Production.ERROR: pbx CDR StartTime 2025-01-07 23:06:04 - End Time 2025-01-08 02:06:04 [2025-01-08 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199064', 'tblTempUsageDetail_20' ) start [2025-01-08 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199064', 'tblTempUsageDetail_20' ) end [2025-01-08 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199064', 'tblTempVendorCDR_20' ) start [2025-01-08 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199064', 'tblTempVendorCDR_20' ) end [2025-01-08 02:06:17] Production.INFO: ProcessCDR(1,14199064,1,1,2) [2025-01-08 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199064', 'tblTempUsageDetail_20' ) start [2025-01-08 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199064', 'tblTempUsageDetail_20' ) end [2025-01-08 02:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:06:20] Production.INFO: ==12684== Releasing lock... [2025-01-08 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:06:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:07:06 [end_date_ymd] => 2025-01-08 02:07:06 [RateCDR] => 1 ) [2025-01-08 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:07:06' and `end` < '2025-01-08 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:07:22] Production.INFO: count ==193 [2025-01-08 02:07:22] Production.ERROR: pbx CDR StartTime 2025-01-07 23:07:06 - End Time 2025-01-08 02:07:06 [2025-01-08 02:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199069', 'tblTempUsageDetail_20' ) start [2025-01-08 02:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199069', 'tblTempUsageDetail_20' ) end [2025-01-08 02:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199069', 'tblTempVendorCDR_20' ) start [2025-01-08 02:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199069', 'tblTempVendorCDR_20' ) end [2025-01-08 02:07:22] Production.INFO: ProcessCDR(1,14199069,1,1,2) [2025-01-08 02:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199069', 'tblTempUsageDetail_20' ) start [2025-01-08 02:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199069', 'tblTempUsageDetail_20' ) end [2025-01-08 02:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:07:25] Production.INFO: ==12774== Releasing lock... [2025-01-08 02:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:07:25] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:08:05 [end_date_ymd] => 2025-01-08 02:08:05 [RateCDR] => 1 ) [2025-01-08 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:08:05' and `end` < '2025-01-08 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:08:18] Production.INFO: count ==194 [2025-01-08 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:08:05 - End Time 2025-01-08 02:08:05 [2025-01-08 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199074', 'tblTempUsageDetail_20' ) start [2025-01-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199074', 'tblTempUsageDetail_20' ) end [2025-01-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199074', 'tblTempVendorCDR_20' ) start [2025-01-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199074', 'tblTempVendorCDR_20' ) end [2025-01-08 02:08:18] Production.INFO: ProcessCDR(1,14199074,1,1,2) [2025-01-08 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199074', 'tblTempUsageDetail_20' ) start [2025-01-08 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199074', 'tblTempUsageDetail_20' ) end [2025-01-08 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:08:22] Production.INFO: ==12916== Releasing lock... [2025-01-08 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:08:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:09:05 [end_date_ymd] => 2025-01-08 02:09:05 [RateCDR] => 1 ) [2025-01-08 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:09:05' and `end` < '2025-01-08 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:09:18] Production.INFO: count ==196 [2025-01-08 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:09:05 - End Time 2025-01-08 02:09:05 [2025-01-08 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199079', 'tblTempUsageDetail_20' ) start [2025-01-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199079', 'tblTempUsageDetail_20' ) end [2025-01-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199079', 'tblTempVendorCDR_20' ) start [2025-01-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199079', 'tblTempVendorCDR_20' ) end [2025-01-08 02:09:18] Production.INFO: ProcessCDR(1,14199079,1,1,2) [2025-01-08 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199079', 'tblTempUsageDetail_20' ) start [2025-01-08 02:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199079', 'tblTempUsageDetail_20' ) end [2025-01-08 02:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:09:23] Production.INFO: ==13030== Releasing lock... [2025-01-08 02:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:09:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:10:06 [end_date_ymd] => 2025-01-08 02:10:06 [RateCDR] => 1 ) [2025-01-08 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:10:06' and `end` < '2025-01-08 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:10:20] Production.INFO: count ==205 [2025-01-08 02:10:20] Production.ERROR: pbx CDR StartTime 2025-01-07 23:10:06 - End Time 2025-01-08 02:10:06 [2025-01-08 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199085', 'tblTempUsageDetail_20' ) start [2025-01-08 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199085', 'tblTempUsageDetail_20' ) end [2025-01-08 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199085', 'tblTempVendorCDR_20' ) start [2025-01-08 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199085', 'tblTempVendorCDR_20' ) end [2025-01-08 02:10:20] Production.INFO: ProcessCDR(1,14199085,1,1,2) [2025-01-08 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199085', 'tblTempUsageDetail_20' ) start [2025-01-08 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199085', 'tblTempUsageDetail_20' ) end [2025-01-08 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:10:24] Production.INFO: ==13153== Releasing lock... [2025-01-08 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:10:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:11:05 [end_date_ymd] => 2025-01-08 02:11:05 [RateCDR] => 1 ) [2025-01-08 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:11:05' and `end` < '2025-01-08 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:11:18] Production.INFO: count ==206 [2025-01-08 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:11:05 - End Time 2025-01-08 02:11:05 [2025-01-08 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199090', 'tblTempUsageDetail_20' ) start [2025-01-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199090', 'tblTempUsageDetail_20' ) end [2025-01-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199090', 'tblTempVendorCDR_20' ) start [2025-01-08 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199090', 'tblTempVendorCDR_20' ) end [2025-01-08 02:11:18] Production.INFO: ProcessCDR(1,14199090,1,1,2) [2025-01-08 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199090', 'tblTempUsageDetail_20' ) start [2025-01-08 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199090', 'tblTempUsageDetail_20' ) end [2025-01-08 02:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:11:23] Production.INFO: ==13282== Releasing lock... [2025-01-08 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:11:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:12:05 [end_date_ymd] => 2025-01-08 02:12:05 [RateCDR] => 1 ) [2025-01-08 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:12:05' and `end` < '2025-01-08 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:12:18] Production.INFO: count ==206 [2025-01-08 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:12:05 - End Time 2025-01-08 02:12:05 [2025-01-08 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199095', 'tblTempUsageDetail_20' ) start [2025-01-08 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199095', 'tblTempUsageDetail_20' ) end [2025-01-08 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199095', 'tblTempVendorCDR_20' ) start [2025-01-08 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199095', 'tblTempVendorCDR_20' ) end [2025-01-08 02:12:18] Production.INFO: ProcessCDR(1,14199095,1,1,2) [2025-01-08 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199095', 'tblTempUsageDetail_20' ) start [2025-01-08 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199095', 'tblTempUsageDetail_20' ) end [2025-01-08 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:12:21] Production.INFO: ==13397== Releasing lock... [2025-01-08 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:13:05 [end_date_ymd] => 2025-01-08 02:13:05 [RateCDR] => 1 ) [2025-01-08 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:13:05' and `end` < '2025-01-08 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:13:18] Production.INFO: count ==206 [2025-01-08 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:13:05 - End Time 2025-01-08 02:13:05 [2025-01-08 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199100', 'tblTempUsageDetail_20' ) start [2025-01-08 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199100', 'tblTempUsageDetail_20' ) end [2025-01-08 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199100', 'tblTempVendorCDR_20' ) start [2025-01-08 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199100', 'tblTempVendorCDR_20' ) end [2025-01-08 02:13:18] Production.INFO: ProcessCDR(1,14199100,1,1,2) [2025-01-08 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199100', 'tblTempUsageDetail_20' ) start [2025-01-08 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199100', 'tblTempUsageDetail_20' ) end [2025-01-08 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:13:21] Production.INFO: ==13515== Releasing lock... [2025-01-08 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:14:04 [end_date_ymd] => 2025-01-08 02:14:04 [RateCDR] => 1 ) [2025-01-08 02:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:14:04' and `end` < '2025-01-08 02:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:14:17] Production.INFO: count ==204 [2025-01-08 02:14:17] Production.ERROR: pbx CDR StartTime 2025-01-07 23:14:04 - End Time 2025-01-08 02:14:04 [2025-01-08 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199105', 'tblTempUsageDetail_20' ) start [2025-01-08 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199105', 'tblTempUsageDetail_20' ) end [2025-01-08 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199105', 'tblTempVendorCDR_20' ) start [2025-01-08 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199105', 'tblTempVendorCDR_20' ) end [2025-01-08 02:14:17] Production.INFO: ProcessCDR(1,14199105,1,1,2) [2025-01-08 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199105', 'tblTempUsageDetail_20' ) start [2025-01-08 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199105', 'tblTempUsageDetail_20' ) end [2025-01-08 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:14:21] Production.INFO: ==13631== Releasing lock... [2025-01-08 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:15:05 [end_date_ymd] => 2025-01-08 02:15:05 [RateCDR] => 1 ) [2025-01-08 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:15:05' and `end` < '2025-01-08 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:15:18] Production.INFO: count ==203 [2025-01-08 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:15:05 - End Time 2025-01-08 02:15:05 [2025-01-08 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199110', 'tblTempUsageDetail_20' ) start [2025-01-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199110', 'tblTempUsageDetail_20' ) end [2025-01-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199110', 'tblTempVendorCDR_20' ) start [2025-01-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199110', 'tblTempVendorCDR_20' ) end [2025-01-08 02:15:18] Production.INFO: ProcessCDR(1,14199110,1,1,2) [2025-01-08 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199110', 'tblTempUsageDetail_20' ) start [2025-01-08 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199110', 'tblTempUsageDetail_20' ) end [2025-01-08 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:15:21] Production.INFO: ==13751== Releasing lock... [2025-01-08 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:16:05 [end_date_ymd] => 2025-01-08 02:16:05 [RateCDR] => 1 ) [2025-01-08 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:16:05' and `end` < '2025-01-08 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:16:19] Production.INFO: count ==204 [2025-01-08 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:16:05 - End Time 2025-01-08 02:16:05 [2025-01-08 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199115', 'tblTempUsageDetail_20' ) start [2025-01-08 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199115', 'tblTempUsageDetail_20' ) end [2025-01-08 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199115', 'tblTempVendorCDR_20' ) start [2025-01-08 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199115', 'tblTempVendorCDR_20' ) end [2025-01-08 02:16:19] Production.INFO: ProcessCDR(1,14199115,1,1,2) [2025-01-08 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199115', 'tblTempUsageDetail_20' ) start [2025-01-08 02:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199115', 'tblTempUsageDetail_20' ) end [2025-01-08 02:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:16:24] Production.INFO: ==13873== Releasing lock... [2025-01-08 02:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:16:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:17:04 [end_date_ymd] => 2025-01-08 02:17:04 [RateCDR] => 1 ) [2025-01-08 02:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:17:04' and `end` < '2025-01-08 02:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:17:19] Production.INFO: count ==202 [2025-01-08 02:17:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:17:04 - End Time 2025-01-08 02:17:04 [2025-01-08 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199120', 'tblTempUsageDetail_20' ) start [2025-01-08 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199120', 'tblTempUsageDetail_20' ) end [2025-01-08 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199120', 'tblTempVendorCDR_20' ) start [2025-01-08 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199120', 'tblTempVendorCDR_20' ) end [2025-01-08 02:17:19] Production.INFO: ProcessCDR(1,14199120,1,1,2) [2025-01-08 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199120', 'tblTempUsageDetail_20' ) start [2025-01-08 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199120', 'tblTempUsageDetail_20' ) end [2025-01-08 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:17:22] Production.INFO: ==13992== Releasing lock... [2025-01-08 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:17:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:18:05 [end_date_ymd] => 2025-01-08 02:18:05 [RateCDR] => 1 ) [2025-01-08 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:18:05' and `end` < '2025-01-08 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:18:18] Production.INFO: count ==202 [2025-01-08 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:18:05 - End Time 2025-01-08 02:18:05 [2025-01-08 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199125', 'tblTempUsageDetail_20' ) start [2025-01-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199125', 'tblTempUsageDetail_20' ) end [2025-01-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199125', 'tblTempVendorCDR_20' ) start [2025-01-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199125', 'tblTempVendorCDR_20' ) end [2025-01-08 02:18:18] Production.INFO: ProcessCDR(1,14199125,1,1,2) [2025-01-08 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199125', 'tblTempUsageDetail_20' ) start [2025-01-08 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199125', 'tblTempUsageDetail_20' ) end [2025-01-08 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:18:21] Production.INFO: ==14111== Releasing lock... [2025-01-08 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:19:04 [end_date_ymd] => 2025-01-08 02:19:04 [RateCDR] => 1 ) [2025-01-08 02:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:19:04' and `end` < '2025-01-08 02:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:19:17] Production.INFO: count ==202 [2025-01-08 02:19:17] Production.ERROR: pbx CDR StartTime 2025-01-07 23:19:04 - End Time 2025-01-08 02:19:04 [2025-01-08 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199130', 'tblTempUsageDetail_20' ) start [2025-01-08 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199130', 'tblTempUsageDetail_20' ) end [2025-01-08 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199130', 'tblTempVendorCDR_20' ) start [2025-01-08 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199130', 'tblTempVendorCDR_20' ) end [2025-01-08 02:19:17] Production.INFO: ProcessCDR(1,14199130,1,1,2) [2025-01-08 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199130', 'tblTempUsageDetail_20' ) start [2025-01-08 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199130', 'tblTempUsageDetail_20' ) end [2025-01-08 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:19:21] Production.INFO: ==14231== Releasing lock... [2025-01-08 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:19:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:20:06 [end_date_ymd] => 2025-01-08 02:20:06 [RateCDR] => 1 ) [2025-01-08 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:20:06' and `end` < '2025-01-08 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:20:20] Production.INFO: count ==209 [2025-01-08 02:20:20] Production.ERROR: pbx CDR StartTime 2025-01-07 23:20:06 - End Time 2025-01-08 02:20:06 [2025-01-08 02:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199136', 'tblTempUsageDetail_20' ) start [2025-01-08 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199136', 'tblTempUsageDetail_20' ) end [2025-01-08 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199136', 'tblTempVendorCDR_20' ) start [2025-01-08 02:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199136', 'tblTempVendorCDR_20' ) end [2025-01-08 02:20:20] Production.INFO: ProcessCDR(1,14199136,1,1,2) [2025-01-08 02:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199136', 'tblTempUsageDetail_20' ) start [2025-01-08 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199136', 'tblTempUsageDetail_20' ) end [2025-01-08 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:20:23] Production.INFO: ==14351== Releasing lock... [2025-01-08 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:20:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:21:05 [end_date_ymd] => 2025-01-08 02:21:05 [RateCDR] => 1 ) [2025-01-08 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:21:05' and `end` < '2025-01-08 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:21:18] Production.INFO: count ==213 [2025-01-08 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:21:05 - End Time 2025-01-08 02:21:05 [2025-01-08 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199141', 'tblTempUsageDetail_20' ) start [2025-01-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199141', 'tblTempUsageDetail_20' ) end [2025-01-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199141', 'tblTempVendorCDR_20' ) start [2025-01-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199141', 'tblTempVendorCDR_20' ) end [2025-01-08 02:21:18] Production.INFO: ProcessCDR(1,14199141,1,1,2) [2025-01-08 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199141', 'tblTempUsageDetail_20' ) start [2025-01-08 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199141', 'tblTempUsageDetail_20' ) end [2025-01-08 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:21:21] Production.INFO: ==14468== Releasing lock... [2025-01-08 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:22:05 [end_date_ymd] => 2025-01-08 02:22:05 [RateCDR] => 1 ) [2025-01-08 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:22:05' and `end` < '2025-01-08 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:22:17] Production.INFO: count ==210 [2025-01-08 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:22:05 - End Time 2025-01-08 02:22:05 [2025-01-08 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199146', 'tblTempUsageDetail_20' ) start [2025-01-08 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199146', 'tblTempUsageDetail_20' ) end [2025-01-08 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199146', 'tblTempVendorCDR_20' ) start [2025-01-08 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199146', 'tblTempVendorCDR_20' ) end [2025-01-08 02:22:18] Production.INFO: ProcessCDR(1,14199146,1,1,2) [2025-01-08 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199146', 'tblTempUsageDetail_20' ) start [2025-01-08 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199146', 'tblTempUsageDetail_20' ) end [2025-01-08 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:22:21] Production.INFO: ==14591== Releasing lock... [2025-01-08 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:23:05 [end_date_ymd] => 2025-01-08 02:23:05 [RateCDR] => 1 ) [2025-01-08 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:23:05' and `end` < '2025-01-08 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:23:20] Production.INFO: count ==210 [2025-01-08 02:23:20] Production.ERROR: pbx CDR StartTime 2025-01-07 23:23:05 - End Time 2025-01-08 02:23:05 [2025-01-08 02:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199151', 'tblTempUsageDetail_20' ) start [2025-01-08 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199151', 'tblTempUsageDetail_20' ) end [2025-01-08 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199151', 'tblTempVendorCDR_20' ) start [2025-01-08 02:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199151', 'tblTempVendorCDR_20' ) end [2025-01-08 02:23:20] Production.INFO: ProcessCDR(1,14199151,1,1,2) [2025-01-08 02:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199151', 'tblTempUsageDetail_20' ) start [2025-01-08 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199151', 'tblTempUsageDetail_20' ) end [2025-01-08 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:23:23] Production.INFO: ==14709== Releasing lock... [2025-01-08 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:23:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:24:05 [end_date_ymd] => 2025-01-08 02:24:05 [RateCDR] => 1 ) [2025-01-08 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:24:05' and `end` < '2025-01-08 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:24:18] Production.INFO: count ==210 [2025-01-08 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:24:05 - End Time 2025-01-08 02:24:05 [2025-01-08 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199156', 'tblTempUsageDetail_20' ) start [2025-01-08 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199156', 'tblTempUsageDetail_20' ) end [2025-01-08 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199156', 'tblTempVendorCDR_20' ) start [2025-01-08 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199156', 'tblTempVendorCDR_20' ) end [2025-01-08 02:24:18] Production.INFO: ProcessCDR(1,14199156,1,1,2) [2025-01-08 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199156', 'tblTempUsageDetail_20' ) start [2025-01-08 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199156', 'tblTempUsageDetail_20' ) end [2025-01-08 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:24:21] Production.INFO: ==14849== Releasing lock... [2025-01-08 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:25:05 [end_date_ymd] => 2025-01-08 02:25:05 [RateCDR] => 1 ) [2025-01-08 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:25:05' and `end` < '2025-01-08 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:25:18] Production.INFO: count ==207 [2025-01-08 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:25:05 - End Time 2025-01-08 02:25:05 [2025-01-08 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199161', 'tblTempUsageDetail_20' ) start [2025-01-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199161', 'tblTempUsageDetail_20' ) end [2025-01-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199161', 'tblTempVendorCDR_20' ) start [2025-01-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199161', 'tblTempVendorCDR_20' ) end [2025-01-08 02:25:18] Production.INFO: ProcessCDR(1,14199161,1,1,2) [2025-01-08 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199161', 'tblTempUsageDetail_20' ) start [2025-01-08 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199161', 'tblTempUsageDetail_20' ) end [2025-01-08 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:25:21] Production.INFO: ==14957== Releasing lock... [2025-01-08 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:26:04 [end_date_ymd] => 2025-01-08 02:26:04 [RateCDR] => 1 ) [2025-01-08 02:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:26:04' and `end` < '2025-01-08 02:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:26:18] Production.INFO: count ==207 [2025-01-08 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:26:04 - End Time 2025-01-08 02:26:04 [2025-01-08 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199165', 'tblTempUsageDetail_20' ) start [2025-01-08 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199165', 'tblTempUsageDetail_20' ) end [2025-01-08 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199165', 'tblTempVendorCDR_20' ) start [2025-01-08 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199165', 'tblTempVendorCDR_20' ) end [2025-01-08 02:26:18] Production.INFO: ProcessCDR(1,14199165,1,1,2) [2025-01-08 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199165', 'tblTempUsageDetail_20' ) start [2025-01-08 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199165', 'tblTempUsageDetail_20' ) end [2025-01-08 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:26:21] Production.INFO: ==15059== Releasing lock... [2025-01-08 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:26:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:27:05 [end_date_ymd] => 2025-01-08 02:27:05 [RateCDR] => 1 ) [2025-01-08 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:27:05' and `end` < '2025-01-08 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:27:19] Production.INFO: count ==207 [2025-01-08 02:27:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:27:05 - End Time 2025-01-08 02:27:05 [2025-01-08 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199171', 'tblTempUsageDetail_20' ) start [2025-01-08 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199171', 'tblTempUsageDetail_20' ) end [2025-01-08 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199171', 'tblTempVendorCDR_20' ) start [2025-01-08 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199171', 'tblTempVendorCDR_20' ) end [2025-01-08 02:27:19] Production.INFO: ProcessCDR(1,14199171,1,1,2) [2025-01-08 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199171', 'tblTempUsageDetail_20' ) start [2025-01-08 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199171', 'tblTempUsageDetail_20' ) end [2025-01-08 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:27:22] Production.INFO: ==15160== Releasing lock... [2025-01-08 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:27:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:28:05 [end_date_ymd] => 2025-01-08 02:28:05 [RateCDR] => 1 ) [2025-01-08 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:28:05' and `end` < '2025-01-08 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:28:19] Production.INFO: count ==207 [2025-01-08 02:28:20] Production.ERROR: pbx CDR StartTime 2025-01-07 23:28:05 - End Time 2025-01-08 02:28:05 [2025-01-08 02:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199176', 'tblTempUsageDetail_20' ) start [2025-01-08 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199176', 'tblTempUsageDetail_20' ) end [2025-01-08 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199176', 'tblTempVendorCDR_20' ) start [2025-01-08 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199176', 'tblTempVendorCDR_20' ) end [2025-01-08 02:28:20] Production.INFO: ProcessCDR(1,14199176,1,1,2) [2025-01-08 02:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199176', 'tblTempUsageDetail_20' ) start [2025-01-08 02:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199176', 'tblTempUsageDetail_20' ) end [2025-01-08 02:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:28:23] Production.INFO: ==15265== Releasing lock... [2025-01-08 02:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:28:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:29:05 [end_date_ymd] => 2025-01-08 02:29:05 [RateCDR] => 1 ) [2025-01-08 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:29:05' and `end` < '2025-01-08 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:29:18] Production.INFO: count ==205 [2025-01-08 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:29:05 - End Time 2025-01-08 02:29:05 [2025-01-08 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199181', 'tblTempUsageDetail_20' ) start [2025-01-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199181', 'tblTempUsageDetail_20' ) end [2025-01-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199181', 'tblTempVendorCDR_20' ) start [2025-01-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199181', 'tblTempVendorCDR_20' ) end [2025-01-08 02:29:18] Production.INFO: ProcessCDR(1,14199181,1,1,2) [2025-01-08 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199181', 'tblTempUsageDetail_20' ) start [2025-01-08 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199181', 'tblTempUsageDetail_20' ) end [2025-01-08 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:29:22] Production.INFO: ==15366== Releasing lock... [2025-01-08 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:29:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:30:06 [end_date_ymd] => 2025-01-08 02:30:06 [RateCDR] => 1 ) [2025-01-08 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:30:06' and `end` < '2025-01-08 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:30:19] Production.INFO: count ==212 [2025-01-08 02:30:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:30:06 - End Time 2025-01-08 02:30:06 [2025-01-08 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199187', 'tblTempUsageDetail_20' ) start [2025-01-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199187', 'tblTempUsageDetail_20' ) end [2025-01-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199187', 'tblTempVendorCDR_20' ) start [2025-01-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199187', 'tblTempVendorCDR_20' ) end [2025-01-08 02:30:19] Production.INFO: ProcessCDR(1,14199187,1,1,2) [2025-01-08 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199187', 'tblTempUsageDetail_20' ) start [2025-01-08 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199187', 'tblTempUsageDetail_20' ) end [2025-01-08 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:30:22] Production.INFO: ==15471== Releasing lock... [2025-01-08 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:31:05 [end_date_ymd] => 2025-01-08 02:31:05 [RateCDR] => 1 ) [2025-01-08 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:31:05' and `end` < '2025-01-08 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:31:18] Production.INFO: count ==213 [2025-01-08 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:31:05 - End Time 2025-01-08 02:31:05 [2025-01-08 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199192', 'tblTempUsageDetail_20' ) start [2025-01-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199192', 'tblTempUsageDetail_20' ) end [2025-01-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199192', 'tblTempVendorCDR_20' ) start [2025-01-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199192', 'tblTempVendorCDR_20' ) end [2025-01-08 02:31:18] Production.INFO: ProcessCDR(1,14199192,1,1,2) [2025-01-08 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199192', 'tblTempUsageDetail_20' ) start [2025-01-08 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199192', 'tblTempUsageDetail_20' ) end [2025-01-08 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:31:21] Production.INFO: ==15574== Releasing lock... [2025-01-08 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:32:05 [end_date_ymd] => 2025-01-08 02:32:05 [RateCDR] => 1 ) [2025-01-08 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:32:05' and `end` < '2025-01-08 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:32:18] Production.INFO: count ==213 [2025-01-08 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:32:05 - End Time 2025-01-08 02:32:05 [2025-01-08 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199196', 'tblTempUsageDetail_20' ) start [2025-01-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199196', 'tblTempUsageDetail_20' ) end [2025-01-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199196', 'tblTempVendorCDR_20' ) start [2025-01-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199196', 'tblTempVendorCDR_20' ) end [2025-01-08 02:32:18] Production.INFO: ProcessCDR(1,14199196,1,1,2) [2025-01-08 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199196', 'tblTempUsageDetail_20' ) start [2025-01-08 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199196', 'tblTempUsageDetail_20' ) end [2025-01-08 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:32:21] Production.INFO: ==15677== Releasing lock... [2025-01-08 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:33:04 [end_date_ymd] => 2025-01-08 02:33:04 [RateCDR] => 1 ) [2025-01-08 02:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:33:04' and `end` < '2025-01-08 02:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:33:17] Production.INFO: count ==213 [2025-01-08 02:33:17] Production.ERROR: pbx CDR StartTime 2025-01-07 23:33:04 - End Time 2025-01-08 02:33:04 [2025-01-08 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199202', 'tblTempUsageDetail_20' ) start [2025-01-08 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199202', 'tblTempUsageDetail_20' ) end [2025-01-08 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199202', 'tblTempVendorCDR_20' ) start [2025-01-08 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199202', 'tblTempVendorCDR_20' ) end [2025-01-08 02:33:17] Production.INFO: ProcessCDR(1,14199202,1,1,2) [2025-01-08 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199202', 'tblTempUsageDetail_20' ) start [2025-01-08 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199202', 'tblTempUsageDetail_20' ) end [2025-01-08 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:33:20] Production.INFO: ==15777== Releasing lock... [2025-01-08 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:33:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:34:05 [end_date_ymd] => 2025-01-08 02:34:05 [RateCDR] => 1 ) [2025-01-08 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:34:05' and `end` < '2025-01-08 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:34:18] Production.INFO: count ==213 [2025-01-08 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:34:05 - End Time 2025-01-08 02:34:05 [2025-01-08 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199207', 'tblTempUsageDetail_20' ) start [2025-01-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199207', 'tblTempUsageDetail_20' ) end [2025-01-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199207', 'tblTempVendorCDR_20' ) start [2025-01-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199207', 'tblTempVendorCDR_20' ) end [2025-01-08 02:34:18] Production.INFO: ProcessCDR(1,14199207,1,1,2) [2025-01-08 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199207', 'tblTempUsageDetail_20' ) start [2025-01-08 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199207', 'tblTempUsageDetail_20' ) end [2025-01-08 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:34:21] Production.INFO: ==15883== Releasing lock... [2025-01-08 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:35:05 [end_date_ymd] => 2025-01-08 02:35:05 [RateCDR] => 1 ) [2025-01-08 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:35:05' and `end` < '2025-01-08 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:35:18] Production.INFO: count ==213 [2025-01-08 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:35:05 - End Time 2025-01-08 02:35:05 [2025-01-08 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199212', 'tblTempUsageDetail_20' ) start [2025-01-08 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199212', 'tblTempUsageDetail_20' ) end [2025-01-08 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199212', 'tblTempVendorCDR_20' ) start [2025-01-08 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199212', 'tblTempVendorCDR_20' ) end [2025-01-08 02:35:18] Production.INFO: ProcessCDR(1,14199212,1,1,2) [2025-01-08 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199212', 'tblTempUsageDetail_20' ) start [2025-01-08 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199212', 'tblTempUsageDetail_20' ) end [2025-01-08 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:35:21] Production.INFO: ==15987== Releasing lock... [2025-01-08 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:36:05 [end_date_ymd] => 2025-01-08 02:36:05 [RateCDR] => 1 ) [2025-01-08 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:36:05' and `end` < '2025-01-08 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:36:18] Production.INFO: count ==212 [2025-01-08 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:36:05 - End Time 2025-01-08 02:36:05 [2025-01-08 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199217', 'tblTempUsageDetail_20' ) start [2025-01-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199217', 'tblTempUsageDetail_20' ) end [2025-01-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199217', 'tblTempVendorCDR_20' ) start [2025-01-08 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199217', 'tblTempVendorCDR_20' ) end [2025-01-08 02:36:18] Production.INFO: ProcessCDR(1,14199217,1,1,2) [2025-01-08 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199217', 'tblTempUsageDetail_20' ) start [2025-01-08 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199217', 'tblTempUsageDetail_20' ) end [2025-01-08 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:36:21] Production.INFO: ==16091== Releasing lock... [2025-01-08 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:37:05 [end_date_ymd] => 2025-01-08 02:37:05 [RateCDR] => 1 ) [2025-01-08 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:37:05' and `end` < '2025-01-08 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:37:18] Production.INFO: count ==211 [2025-01-08 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:37:05 - End Time 2025-01-08 02:37:05 [2025-01-08 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199222', 'tblTempUsageDetail_20' ) start [2025-01-08 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199222', 'tblTempUsageDetail_20' ) end [2025-01-08 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199222', 'tblTempVendorCDR_20' ) start [2025-01-08 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199222', 'tblTempVendorCDR_20' ) end [2025-01-08 02:37:18] Production.INFO: ProcessCDR(1,14199222,1,1,2) [2025-01-08 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199222', 'tblTempUsageDetail_20' ) start [2025-01-08 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199222', 'tblTempUsageDetail_20' ) end [2025-01-08 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:37:21] Production.INFO: ==16195== Releasing lock... [2025-01-08 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:38:05 [end_date_ymd] => 2025-01-08 02:38:05 [RateCDR] => 1 ) [2025-01-08 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:38:05' and `end` < '2025-01-08 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:38:19] Production.INFO: count ==209 [2025-01-08 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:38:05 - End Time 2025-01-08 02:38:05 [2025-01-08 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199227', 'tblTempUsageDetail_20' ) start [2025-01-08 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199227', 'tblTempUsageDetail_20' ) end [2025-01-08 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199227', 'tblTempVendorCDR_20' ) start [2025-01-08 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199227', 'tblTempVendorCDR_20' ) end [2025-01-08 02:38:19] Production.INFO: ProcessCDR(1,14199227,1,1,2) [2025-01-08 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199227', 'tblTempUsageDetail_20' ) start [2025-01-08 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199227', 'tblTempUsageDetail_20' ) end [2025-01-08 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:38:22] Production.INFO: ==16302== Releasing lock... [2025-01-08 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:38:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:39:05 [end_date_ymd] => 2025-01-08 02:39:05 [RateCDR] => 1 ) [2025-01-08 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:39:05' and `end` < '2025-01-08 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:39:18] Production.INFO: count ==204 [2025-01-08 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:39:05 - End Time 2025-01-08 02:39:05 [2025-01-08 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199232', 'tblTempUsageDetail_20' ) start [2025-01-08 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199232', 'tblTempUsageDetail_20' ) end [2025-01-08 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199232', 'tblTempVendorCDR_20' ) start [2025-01-08 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199232', 'tblTempVendorCDR_20' ) end [2025-01-08 02:39:18] Production.INFO: ProcessCDR(1,14199232,1,1,2) [2025-01-08 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199232', 'tblTempUsageDetail_20' ) start [2025-01-08 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199232', 'tblTempUsageDetail_20' ) end [2025-01-08 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:39:21] Production.INFO: ==16444== Releasing lock... [2025-01-08 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:40:05 [end_date_ymd] => 2025-01-08 02:40:05 [RateCDR] => 1 ) [2025-01-08 02:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:40:05' and `end` < '2025-01-08 02:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:40:18] Production.INFO: count ==209 [2025-01-08 02:40:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:40:05 - End Time 2025-01-08 02:40:05 [2025-01-08 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199238', 'tblTempUsageDetail_20' ) start [2025-01-08 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199238', 'tblTempUsageDetail_20' ) end [2025-01-08 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199238', 'tblTempVendorCDR_20' ) start [2025-01-08 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199238', 'tblTempVendorCDR_20' ) end [2025-01-08 02:40:18] Production.INFO: ProcessCDR(1,14199238,1,1,2) [2025-01-08 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199238', 'tblTempUsageDetail_20' ) start [2025-01-08 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199238', 'tblTempUsageDetail_20' ) end [2025-01-08 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:40:21] Production.INFO: ==16548== Releasing lock... [2025-01-08 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:40:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:41:05 [end_date_ymd] => 2025-01-08 02:41:05 [RateCDR] => 1 ) [2025-01-08 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:41:05' and `end` < '2025-01-08 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:41:18] Production.INFO: count ==219 [2025-01-08 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:41:05 - End Time 2025-01-08 02:41:05 [2025-01-08 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199243', 'tblTempUsageDetail_20' ) start [2025-01-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199243', 'tblTempUsageDetail_20' ) end [2025-01-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199243', 'tblTempVendorCDR_20' ) start [2025-01-08 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199243', 'tblTempVendorCDR_20' ) end [2025-01-08 02:41:18] Production.INFO: ProcessCDR(1,14199243,1,1,2) [2025-01-08 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199243', 'tblTempUsageDetail_20' ) start [2025-01-08 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199243', 'tblTempUsageDetail_20' ) end [2025-01-08 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:41:21] Production.INFO: ==16657== Releasing lock... [2025-01-08 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:41:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:42:06 [end_date_ymd] => 2025-01-08 02:42:06 [RateCDR] => 1 ) [2025-01-08 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:42:06' and `end` < '2025-01-08 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:42:18] Production.INFO: count ==219 [2025-01-08 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:42:06 - End Time 2025-01-08 02:42:06 [2025-01-08 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199248', 'tblTempUsageDetail_20' ) start [2025-01-08 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199248', 'tblTempUsageDetail_20' ) end [2025-01-08 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199248', 'tblTempVendorCDR_20' ) start [2025-01-08 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199248', 'tblTempVendorCDR_20' ) end [2025-01-08 02:42:18] Production.INFO: ProcessCDR(1,14199248,1,1,2) [2025-01-08 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199248', 'tblTempUsageDetail_20' ) start [2025-01-08 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199248', 'tblTempUsageDetail_20' ) end [2025-01-08 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:42:21] Production.INFO: ==16763== Releasing lock... [2025-01-08 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:42:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:43:05 [end_date_ymd] => 2025-01-08 02:43:05 [RateCDR] => 1 ) [2025-01-08 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:43:05' and `end` < '2025-01-08 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:43:17] Production.INFO: count ==219 [2025-01-08 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-07 23:43:05 - End Time 2025-01-08 02:43:05 [2025-01-08 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199253', 'tblTempUsageDetail_20' ) start [2025-01-08 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199253', 'tblTempUsageDetail_20' ) end [2025-01-08 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199253', 'tblTempVendorCDR_20' ) start [2025-01-08 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199253', 'tblTempVendorCDR_20' ) end [2025-01-08 02:43:18] Production.INFO: ProcessCDR(1,14199253,1,1,2) [2025-01-08 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199253', 'tblTempUsageDetail_20' ) start [2025-01-08 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199253', 'tblTempUsageDetail_20' ) end [2025-01-08 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:43:21] Production.INFO: ==16868== Releasing lock... [2025-01-08 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:44:05 [end_date_ymd] => 2025-01-08 02:44:05 [RateCDR] => 1 ) [2025-01-08 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:44:05' and `end` < '2025-01-08 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:44:20] Production.INFO: count ==219 [2025-01-08 02:44:20] Production.ERROR: pbx CDR StartTime 2025-01-07 23:44:05 - End Time 2025-01-08 02:44:05 [2025-01-08 02:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199258', 'tblTempUsageDetail_20' ) start [2025-01-08 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199258', 'tblTempUsageDetail_20' ) end [2025-01-08 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199258', 'tblTempVendorCDR_20' ) start [2025-01-08 02:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199258', 'tblTempVendorCDR_20' ) end [2025-01-08 02:44:20] Production.INFO: ProcessCDR(1,14199258,1,1,2) [2025-01-08 02:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199258', 'tblTempUsageDetail_20' ) start [2025-01-08 02:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199258', 'tblTempUsageDetail_20' ) end [2025-01-08 02:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:44:23] Production.INFO: ==16969== Releasing lock... [2025-01-08 02:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:44:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:45:05 [end_date_ymd] => 2025-01-08 02:45:05 [RateCDR] => 1 ) [2025-01-08 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:45:05' and `end` < '2025-01-08 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:45:18] Production.INFO: count ==219 [2025-01-08 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:45:05 - End Time 2025-01-08 02:45:05 [2025-01-08 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199263', 'tblTempUsageDetail_20' ) start [2025-01-08 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199263', 'tblTempUsageDetail_20' ) end [2025-01-08 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199263', 'tblTempVendorCDR_20' ) start [2025-01-08 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199263', 'tblTempVendorCDR_20' ) end [2025-01-08 02:45:18] Production.INFO: ProcessCDR(1,14199263,1,1,2) [2025-01-08 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199263', 'tblTempUsageDetail_20' ) start [2025-01-08 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199263', 'tblTempUsageDetail_20' ) end [2025-01-08 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:45:21] Production.INFO: ==17054== Releasing lock... [2025-01-08 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:46:05 [end_date_ymd] => 2025-01-08 02:46:05 [RateCDR] => 1 ) [2025-01-08 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:46:05' and `end` < '2025-01-08 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:46:18] Production.INFO: count ==219 [2025-01-08 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:46:05 - End Time 2025-01-08 02:46:05 [2025-01-08 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199268', 'tblTempUsageDetail_20' ) start [2025-01-08 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199268', 'tblTempUsageDetail_20' ) end [2025-01-08 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199268', 'tblTempVendorCDR_20' ) start [2025-01-08 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199268', 'tblTempVendorCDR_20' ) end [2025-01-08 02:46:18] Production.INFO: ProcessCDR(1,14199268,1,1,2) [2025-01-08 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199268', 'tblTempUsageDetail_20' ) start [2025-01-08 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199268', 'tblTempUsageDetail_20' ) end [2025-01-08 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:46:22] Production.INFO: ==17125== Releasing lock... [2025-01-08 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:46:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:47:04 [end_date_ymd] => 2025-01-08 02:47:04 [RateCDR] => 1 ) [2025-01-08 02:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:47:04' and `end` < '2025-01-08 02:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:47:17] Production.INFO: count ==219 [2025-01-08 02:47:17] Production.ERROR: pbx CDR StartTime 2025-01-07 23:47:04 - End Time 2025-01-08 02:47:04 [2025-01-08 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199273', 'tblTempUsageDetail_20' ) start [2025-01-08 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199273', 'tblTempUsageDetail_20' ) end [2025-01-08 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199273', 'tblTempVendorCDR_20' ) start [2025-01-08 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199273', 'tblTempVendorCDR_20' ) end [2025-01-08 02:47:17] Production.INFO: ProcessCDR(1,14199273,1,1,2) [2025-01-08 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199273', 'tblTempUsageDetail_20' ) start [2025-01-08 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199273', 'tblTempUsageDetail_20' ) end [2025-01-08 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:47:20] Production.INFO: ==17197== Releasing lock... [2025-01-08 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:47:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:48:05 [end_date_ymd] => 2025-01-08 02:48:05 [RateCDR] => 1 ) [2025-01-08 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:48:05' and `end` < '2025-01-08 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:48:18] Production.INFO: count ==219 [2025-01-08 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:48:05 - End Time 2025-01-08 02:48:05 [2025-01-08 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199278', 'tblTempUsageDetail_20' ) start [2025-01-08 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199278', 'tblTempUsageDetail_20' ) end [2025-01-08 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199278', 'tblTempVendorCDR_20' ) start [2025-01-08 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199278', 'tblTempVendorCDR_20' ) end [2025-01-08 02:48:18] Production.INFO: ProcessCDR(1,14199278,1,1,2) [2025-01-08 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199278', 'tblTempUsageDetail_20' ) start [2025-01-08 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199278', 'tblTempUsageDetail_20' ) end [2025-01-08 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:48:21] Production.INFO: ==17268== Releasing lock... [2025-01-08 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:49:04 [end_date_ymd] => 2025-01-08 02:49:04 [RateCDR] => 1 ) [2025-01-08 02:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:49:04' and `end` < '2025-01-08 02:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:49:18] Production.INFO: count ==217 [2025-01-08 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:49:04 - End Time 2025-01-08 02:49:04 [2025-01-08 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199280', 'tblTempUsageDetail_20' ) start [2025-01-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199280', 'tblTempUsageDetail_20' ) end [2025-01-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199280', 'tblTempVendorCDR_20' ) start [2025-01-08 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199280', 'tblTempVendorCDR_20' ) end [2025-01-08 02:49:18] Production.INFO: ProcessCDR(1,14199280,1,1,2) [2025-01-08 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199280', 'tblTempUsageDetail_20' ) start [2025-01-08 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199280', 'tblTempUsageDetail_20' ) end [2025-01-08 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:49:22] Production.INFO: ==17337== Releasing lock... [2025-01-08 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:50:06 [end_date_ymd] => 2025-01-08 02:50:06 [RateCDR] => 1 ) [2025-01-08 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:50:06' and `end` < '2025-01-08 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:50:19] Production.INFO: count ==221 [2025-01-08 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:50:06 - End Time 2025-01-08 02:50:06 [2025-01-08 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199289', 'tblTempUsageDetail_20' ) start [2025-01-08 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199289', 'tblTempUsageDetail_20' ) end [2025-01-08 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199289', 'tblTempVendorCDR_20' ) start [2025-01-08 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199289', 'tblTempVendorCDR_20' ) end [2025-01-08 02:50:19] Production.INFO: ProcessCDR(1,14199289,1,1,2) [2025-01-08 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199289', 'tblTempUsageDetail_20' ) start [2025-01-08 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199289', 'tblTempUsageDetail_20' ) end [2025-01-08 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:50:22] Production.INFO: ==17413== Releasing lock... [2025-01-08 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:50:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:51:05 [end_date_ymd] => 2025-01-08 02:51:05 [RateCDR] => 1 ) [2025-01-08 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:51:05' and `end` < '2025-01-08 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:51:19] Production.INFO: count ==221 [2025-01-08 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:51:05 - End Time 2025-01-08 02:51:05 [2025-01-08 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199294', 'tblTempUsageDetail_20' ) start [2025-01-08 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199294', 'tblTempUsageDetail_20' ) end [2025-01-08 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199294', 'tblTempVendorCDR_20' ) start [2025-01-08 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199294', 'tblTempVendorCDR_20' ) end [2025-01-08 02:51:19] Production.INFO: ProcessCDR(1,14199294,1,1,2) [2025-01-08 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199294', 'tblTempUsageDetail_20' ) start [2025-01-08 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199294', 'tblTempUsageDetail_20' ) end [2025-01-08 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:51:22] Production.INFO: ==17487== Releasing lock... [2025-01-08 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:51:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:52:05 [end_date_ymd] => 2025-01-08 02:52:05 [RateCDR] => 1 ) [2025-01-08 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:52:05' and `end` < '2025-01-08 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:52:18] Production.INFO: count ==221 [2025-01-08 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:52:05 - End Time 2025-01-08 02:52:05 [2025-01-08 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199299', 'tblTempUsageDetail_20' ) start [2025-01-08 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199299', 'tblTempUsageDetail_20' ) end [2025-01-08 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199299', 'tblTempVendorCDR_20' ) start [2025-01-08 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199299', 'tblTempVendorCDR_20' ) end [2025-01-08 02:52:18] Production.INFO: ProcessCDR(1,14199299,1,1,2) [2025-01-08 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199299', 'tblTempUsageDetail_20' ) start [2025-01-08 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199299', 'tblTempUsageDetail_20' ) end [2025-01-08 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:52:21] Production.INFO: ==17562== Releasing lock... [2025-01-08 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:52:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:53:05 [end_date_ymd] => 2025-01-08 02:53:05 [RateCDR] => 1 ) [2025-01-08 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:53:05' and `end` < '2025-01-08 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:53:19] Production.INFO: count ==221 [2025-01-08 02:53:19] Production.ERROR: pbx CDR StartTime 2025-01-07 23:53:05 - End Time 2025-01-08 02:53:05 [2025-01-08 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199304', 'tblTempUsageDetail_20' ) start [2025-01-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199304', 'tblTempUsageDetail_20' ) end [2025-01-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199304', 'tblTempVendorCDR_20' ) start [2025-01-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199304', 'tblTempVendorCDR_20' ) end [2025-01-08 02:53:19] Production.INFO: ProcessCDR(1,14199304,1,1,2) [2025-01-08 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199304', 'tblTempUsageDetail_20' ) start [2025-01-08 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199304', 'tblTempUsageDetail_20' ) end [2025-01-08 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:53:22] Production.INFO: ==17640== Releasing lock... [2025-01-08 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:53:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:54:04 [end_date_ymd] => 2025-01-08 02:54:04 [RateCDR] => 1 ) [2025-01-08 02:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:54:04' and `end` < '2025-01-08 02:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:54:17] Production.INFO: count ==221 [2025-01-08 02:54:17] Production.ERROR: pbx CDR StartTime 2025-01-07 23:54:04 - End Time 2025-01-08 02:54:04 [2025-01-08 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199309', 'tblTempUsageDetail_20' ) start [2025-01-08 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199309', 'tblTempUsageDetail_20' ) end [2025-01-08 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199309', 'tblTempVendorCDR_20' ) start [2025-01-08 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199309', 'tblTempVendorCDR_20' ) end [2025-01-08 02:54:17] Production.INFO: ProcessCDR(1,14199309,1,1,2) [2025-01-08 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199309', 'tblTempUsageDetail_20' ) start [2025-01-08 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199309', 'tblTempUsageDetail_20' ) end [2025-01-08 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:54:20] Production.INFO: ==17718== Releasing lock... [2025-01-08 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:54:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:55:05 [end_date_ymd] => 2025-01-08 02:55:05 [RateCDR] => 1 ) [2025-01-08 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:55:05' and `end` < '2025-01-08 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:55:18] Production.INFO: count ==222 [2025-01-08 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:55:05 - End Time 2025-01-08 02:55:05 [2025-01-08 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199314', 'tblTempUsageDetail_20' ) start [2025-01-08 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199314', 'tblTempUsageDetail_20' ) end [2025-01-08 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199314', 'tblTempVendorCDR_20' ) start [2025-01-08 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199314', 'tblTempVendorCDR_20' ) end [2025-01-08 02:55:18] Production.INFO: ProcessCDR(1,14199314,1,1,2) [2025-01-08 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199314', 'tblTempUsageDetail_20' ) start [2025-01-08 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199314', 'tblTempUsageDetail_20' ) end [2025-01-08 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:55:23] Production.INFO: ==17836== Releasing lock... [2025-01-08 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:55:23] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:56:05 [end_date_ymd] => 2025-01-08 02:56:05 [RateCDR] => 1 ) [2025-01-08 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:56:05' and `end` < '2025-01-08 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:56:18] Production.INFO: count ==223 [2025-01-08 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:56:05 - End Time 2025-01-08 02:56:05 [2025-01-08 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199319', 'tblTempUsageDetail_20' ) start [2025-01-08 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199319', 'tblTempUsageDetail_20' ) end [2025-01-08 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199319', 'tblTempVendorCDR_20' ) start [2025-01-08 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199319', 'tblTempVendorCDR_20' ) end [2025-01-08 02:56:18] Production.INFO: ProcessCDR(1,14199319,1,1,2) [2025-01-08 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199319', 'tblTempUsageDetail_20' ) start [2025-01-08 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199319', 'tblTempUsageDetail_20' ) end [2025-01-08 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:56:22] Production.INFO: ==17924== Releasing lock... [2025-01-08 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:56:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:57:05 [end_date_ymd] => 2025-01-08 02:57:05 [RateCDR] => 1 ) [2025-01-08 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:57:05' and `end` < '2025-01-08 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:57:18] Production.INFO: count ==223 [2025-01-08 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:57:05 - End Time 2025-01-08 02:57:05 [2025-01-08 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199324', 'tblTempUsageDetail_20' ) start [2025-01-08 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199324', 'tblTempUsageDetail_20' ) end [2025-01-08 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199324', 'tblTempVendorCDR_20' ) start [2025-01-08 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199324', 'tblTempVendorCDR_20' ) end [2025-01-08 02:57:18] Production.INFO: ProcessCDR(1,14199324,1,1,2) [2025-01-08 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199324', 'tblTempUsageDetail_20' ) start [2025-01-08 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199324', 'tblTempUsageDetail_20' ) end [2025-01-08 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:57:21] Production.INFO: ==18011== Releasing lock... [2025-01-08 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:57:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:58:05 [end_date_ymd] => 2025-01-08 02:58:05 [RateCDR] => 1 ) [2025-01-08 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:58:05' and `end` < '2025-01-08 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:58:18] Production.INFO: count ==223 [2025-01-08 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:58:05 - End Time 2025-01-08 02:58:05 [2025-01-08 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199329', 'tblTempUsageDetail_20' ) start [2025-01-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199329', 'tblTempUsageDetail_20' ) end [2025-01-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199329', 'tblTempVendorCDR_20' ) start [2025-01-08 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199329', 'tblTempVendorCDR_20' ) end [2025-01-08 02:58:18] Production.INFO: ProcessCDR(1,14199329,1,1,2) [2025-01-08 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199329', 'tblTempUsageDetail_20' ) start [2025-01-08 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199329', 'tblTempUsageDetail_20' ) end [2025-01-08 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:58:21] Production.INFO: ==18094== Releasing lock... [2025-01-08 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:58:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-07 23:59:05 [end_date_ymd] => 2025-01-08 02:59:05 [RateCDR] => 1 ) [2025-01-08 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-07 23:59:05' and `end` < '2025-01-08 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 02:59:18] Production.INFO: count ==223 [2025-01-08 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-07 23:59:05 - End Time 2025-01-08 02:59:05 [2025-01-08 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199334', 'tblTempUsageDetail_20' ) start [2025-01-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199334', 'tblTempUsageDetail_20' ) end [2025-01-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199334', 'tblTempVendorCDR_20' ) start [2025-01-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199334', 'tblTempVendorCDR_20' ) end [2025-01-08 02:59:18] Production.INFO: ProcessCDR(1,14199334,1,1,2) [2025-01-08 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199334', 'tblTempUsageDetail_20' ) start [2025-01-08 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199334', 'tblTempUsageDetail_20' ) end [2025-01-08 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 02:59:21] Production.INFO: ==18180== Releasing lock... [2025-01-08 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 02:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:00:05 [end_date_ymd] => 2025-01-08 03:00:05 [RateCDR] => 1 ) [2025-01-08 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:00:05' and `end` < '2025-01-08 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:00:18] Production.INFO: count ==227 [2025-01-08 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:00:05 - End Time 2025-01-08 03:00:05 [2025-01-08 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199340', 'tblTempUsageDetail_20' ) start [2025-01-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199340', 'tblTempUsageDetail_20' ) end [2025-01-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199340', 'tblTempVendorCDR_20' ) start [2025-01-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199340', 'tblTempVendorCDR_20' ) end [2025-01-08 03:00:18] Production.INFO: ProcessCDR(1,14199340,1,1,2) [2025-01-08 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199340', 'tblTempUsageDetail_20' ) start [2025-01-08 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199340', 'tblTempUsageDetail_20' ) end [2025-01-08 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:00:21] Production.INFO: ==18268== Releasing lock... [2025-01-08 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:00:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:01:05 [end_date_ymd] => 2025-01-08 03:01:05 [RateCDR] => 1 ) [2025-01-08 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:01:05' and `end` < '2025-01-08 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:01:18] Production.INFO: count ==227 [2025-01-08 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:01:05 - End Time 2025-01-08 03:01:05 [2025-01-08 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199345', 'tblTempUsageDetail_20' ) start [2025-01-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199345', 'tblTempUsageDetail_20' ) end [2025-01-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199345', 'tblTempVendorCDR_20' ) start [2025-01-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199345', 'tblTempVendorCDR_20' ) end [2025-01-08 03:01:18] Production.INFO: ProcessCDR(1,14199345,1,1,2) [2025-01-08 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199345', 'tblTempUsageDetail_20' ) start [2025-01-08 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199345', 'tblTempUsageDetail_20' ) end [2025-01-08 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:01:21] Production.INFO: ==18372== Releasing lock... [2025-01-08 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:01:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:02:05 [end_date_ymd] => 2025-01-08 03:02:05 [RateCDR] => 1 ) [2025-01-08 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:02:05' and `end` < '2025-01-08 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:02:19] Production.INFO: count ==224 [2025-01-08 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:02:05 - End Time 2025-01-08 03:02:05 [2025-01-08 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199350', 'tblTempUsageDetail_20' ) start [2025-01-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199350', 'tblTempUsageDetail_20' ) end [2025-01-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199350', 'tblTempVendorCDR_20' ) start [2025-01-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199350', 'tblTempVendorCDR_20' ) end [2025-01-08 03:02:19] Production.INFO: ProcessCDR(1,14199350,1,1,2) [2025-01-08 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199350', 'tblTempUsageDetail_20' ) start [2025-01-08 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199350', 'tblTempUsageDetail_20' ) end [2025-01-08 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:02:22] Production.INFO: ==18532== Releasing lock... [2025-01-08 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:02:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:03:05 [end_date_ymd] => 2025-01-08 03:03:05 [RateCDR] => 1 ) [2025-01-08 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:03:05' and `end` < '2025-01-08 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:03:18] Production.INFO: count ==224 [2025-01-08 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:03:05 - End Time 2025-01-08 03:03:05 [2025-01-08 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199355', 'tblTempUsageDetail_20' ) start [2025-01-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199355', 'tblTempUsageDetail_20' ) end [2025-01-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199355', 'tblTempVendorCDR_20' ) start [2025-01-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199355', 'tblTempVendorCDR_20' ) end [2025-01-08 03:03:18] Production.INFO: ProcessCDR(1,14199355,1,1,2) [2025-01-08 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199355', 'tblTempUsageDetail_20' ) start [2025-01-08 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199355', 'tblTempUsageDetail_20' ) end [2025-01-08 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:03:21] Production.INFO: ==18614== Releasing lock... [2025-01-08 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:04:05 [end_date_ymd] => 2025-01-08 03:04:05 [RateCDR] => 1 ) [2025-01-08 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:04:05' and `end` < '2025-01-08 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:04:18] Production.INFO: count ==223 [2025-01-08 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:04:05 - End Time 2025-01-08 03:04:05 [2025-01-08 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199360', 'tblTempUsageDetail_20' ) start [2025-01-08 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199360', 'tblTempUsageDetail_20' ) end [2025-01-08 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199360', 'tblTempVendorCDR_20' ) start [2025-01-08 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199360', 'tblTempVendorCDR_20' ) end [2025-01-08 03:04:18] Production.INFO: ProcessCDR(1,14199360,1,1,2) [2025-01-08 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199360', 'tblTempUsageDetail_20' ) start [2025-01-08 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199360', 'tblTempUsageDetail_20' ) end [2025-01-08 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:04:21] Production.INFO: ==18699== Releasing lock... [2025-01-08 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:05:05 [end_date_ymd] => 2025-01-08 03:05:05 [RateCDR] => 1 ) [2025-01-08 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:05:05' and `end` < '2025-01-08 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:05:17] Production.INFO: count ==223 [2025-01-08 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-08 00:05:05 - End Time 2025-01-08 03:05:05 [2025-01-08 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199365', 'tblTempUsageDetail_20' ) start [2025-01-08 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199365', 'tblTempUsageDetail_20' ) end [2025-01-08 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199365', 'tblTempVendorCDR_20' ) start [2025-01-08 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199365', 'tblTempVendorCDR_20' ) end [2025-01-08 03:05:17] Production.INFO: ProcessCDR(1,14199365,1,1,2) [2025-01-08 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199365', 'tblTempUsageDetail_20' ) start [2025-01-08 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199365', 'tblTempUsageDetail_20' ) end [2025-01-08 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:05:21] Production.INFO: ==18782== Releasing lock... [2025-01-08 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:06:05 [end_date_ymd] => 2025-01-08 03:06:05 [RateCDR] => 1 ) [2025-01-08 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:06:05' and `end` < '2025-01-08 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:06:18] Production.INFO: count ==223 [2025-01-08 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:06:05 - End Time 2025-01-08 03:06:05 [2025-01-08 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199370', 'tblTempUsageDetail_20' ) start [2025-01-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199370', 'tblTempUsageDetail_20' ) end [2025-01-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199370', 'tblTempVendorCDR_20' ) start [2025-01-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199370', 'tblTempVendorCDR_20' ) end [2025-01-08 03:06:18] Production.INFO: ProcessCDR(1,14199370,1,1,2) [2025-01-08 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199370', 'tblTempUsageDetail_20' ) start [2025-01-08 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199370', 'tblTempUsageDetail_20' ) end [2025-01-08 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:06:21] Production.INFO: ==18947== Releasing lock... [2025-01-08 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:07:05 [end_date_ymd] => 2025-01-08 03:07:05 [RateCDR] => 1 ) [2025-01-08 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:07:05' and `end` < '2025-01-08 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:07:18] Production.INFO: count ==223 [2025-01-08 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:07:05 - End Time 2025-01-08 03:07:05 [2025-01-08 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199375', 'tblTempUsageDetail_20' ) start [2025-01-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199375', 'tblTempUsageDetail_20' ) end [2025-01-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199375', 'tblTempVendorCDR_20' ) start [2025-01-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199375', 'tblTempVendorCDR_20' ) end [2025-01-08 03:07:18] Production.INFO: ProcessCDR(1,14199375,1,1,2) [2025-01-08 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199375', 'tblTempUsageDetail_20' ) start [2025-01-08 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199375', 'tblTempUsageDetail_20' ) end [2025-01-08 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:07:21] Production.INFO: ==19036== Releasing lock... [2025-01-08 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:08:05 [end_date_ymd] => 2025-01-08 03:08:05 [RateCDR] => 1 ) [2025-01-08 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:08:05' and `end` < '2025-01-08 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:08:18] Production.INFO: count ==222 [2025-01-08 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:08:05 - End Time 2025-01-08 03:08:05 [2025-01-08 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199380', 'tblTempUsageDetail_20' ) start [2025-01-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199380', 'tblTempUsageDetail_20' ) end [2025-01-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199380', 'tblTempVendorCDR_20' ) start [2025-01-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199380', 'tblTempVendorCDR_20' ) end [2025-01-08 03:08:18] Production.INFO: ProcessCDR(1,14199380,1,1,2) [2025-01-08 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199380', 'tblTempUsageDetail_20' ) start [2025-01-08 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199380', 'tblTempUsageDetail_20' ) end [2025-01-08 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:08:21] Production.INFO: ==19123== Releasing lock... [2025-01-08 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:08:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:09:05 [end_date_ymd] => 2025-01-08 03:09:05 [RateCDR] => 1 ) [2025-01-08 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:09:05' and `end` < '2025-01-08 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:09:18] Production.INFO: count ==222 [2025-01-08 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:09:05 - End Time 2025-01-08 03:09:05 [2025-01-08 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199385', 'tblTempUsageDetail_20' ) start [2025-01-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199385', 'tblTempUsageDetail_20' ) end [2025-01-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199385', 'tblTempVendorCDR_20' ) start [2025-01-08 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199385', 'tblTempVendorCDR_20' ) end [2025-01-08 03:09:18] Production.INFO: ProcessCDR(1,14199385,1,1,2) [2025-01-08 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199385', 'tblTempUsageDetail_20' ) start [2025-01-08 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199385', 'tblTempUsageDetail_20' ) end [2025-01-08 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:09:21] Production.INFO: ==19283== Releasing lock... [2025-01-08 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:10:06 [end_date_ymd] => 2025-01-08 03:10:06 [RateCDR] => 1 ) [2025-01-08 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:10:06' and `end` < '2025-01-08 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:10:18] Production.INFO: count ==216 [2025-01-08 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:10:06 - End Time 2025-01-08 03:10:06 [2025-01-08 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199391', 'tblTempUsageDetail_20' ) start [2025-01-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199391', 'tblTempUsageDetail_20' ) end [2025-01-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199391', 'tblTempVendorCDR_20' ) start [2025-01-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199391', 'tblTempVendorCDR_20' ) end [2025-01-08 03:10:19] Production.INFO: ProcessCDR(1,14199391,1,1,2) [2025-01-08 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199391', 'tblTempUsageDetail_20' ) start [2025-01-08 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199391', 'tblTempUsageDetail_20' ) end [2025-01-08 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:10:22] Production.INFO: ==19368== Releasing lock... [2025-01-08 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:10:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:11:04 [end_date_ymd] => 2025-01-08 03:11:04 [RateCDR] => 1 ) [2025-01-08 03:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:11:04' and `end` < '2025-01-08 03:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:11:17] Production.INFO: count ==212 [2025-01-08 03:11:17] Production.ERROR: pbx CDR StartTime 2025-01-08 00:11:04 - End Time 2025-01-08 03:11:04 [2025-01-08 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199396', 'tblTempUsageDetail_20' ) start [2025-01-08 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199396', 'tblTempUsageDetail_20' ) end [2025-01-08 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199396', 'tblTempVendorCDR_20' ) start [2025-01-08 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199396', 'tblTempVendorCDR_20' ) end [2025-01-08 03:11:17] Production.INFO: ProcessCDR(1,14199396,1,1,2) [2025-01-08 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199396', 'tblTempUsageDetail_20' ) start [2025-01-08 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199396', 'tblTempUsageDetail_20' ) end [2025-01-08 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:11:20] Production.INFO: ==19494== Releasing lock... [2025-01-08 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:11:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:12:05 [end_date_ymd] => 2025-01-08 03:12:05 [RateCDR] => 1 ) [2025-01-08 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:12:05' and `end` < '2025-01-08 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:12:19] Production.INFO: count ==211 [2025-01-08 03:12:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:12:05 - End Time 2025-01-08 03:12:05 [2025-01-08 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199401', 'tblTempUsageDetail_20' ) start [2025-01-08 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199401', 'tblTempUsageDetail_20' ) end [2025-01-08 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199401', 'tblTempVendorCDR_20' ) start [2025-01-08 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199401', 'tblTempVendorCDR_20' ) end [2025-01-08 03:12:19] Production.INFO: ProcessCDR(1,14199401,1,1,2) [2025-01-08 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199401', 'tblTempUsageDetail_20' ) start [2025-01-08 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199401', 'tblTempUsageDetail_20' ) end [2025-01-08 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:12:22] Production.INFO: ==19576== Releasing lock... [2025-01-08 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:12:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:13:04 [end_date_ymd] => 2025-01-08 03:13:04 [RateCDR] => 1 ) [2025-01-08 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:13:04' and `end` < '2025-01-08 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:13:18] Production.INFO: count ==211 [2025-01-08 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:13:04 - End Time 2025-01-08 03:13:04 [2025-01-08 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199406', 'tblTempUsageDetail_20' ) start [2025-01-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199406', 'tblTempUsageDetail_20' ) end [2025-01-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199406', 'tblTempVendorCDR_20' ) start [2025-01-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199406', 'tblTempVendorCDR_20' ) end [2025-01-08 03:13:18] Production.INFO: ProcessCDR(1,14199406,1,1,2) [2025-01-08 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199406', 'tblTempUsageDetail_20' ) start [2025-01-08 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199406', 'tblTempUsageDetail_20' ) end [2025-01-08 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:13:21] Production.INFO: ==19735== Releasing lock... [2025-01-08 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:14:05 [end_date_ymd] => 2025-01-08 03:14:05 [RateCDR] => 1 ) [2025-01-08 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:14:05' and `end` < '2025-01-08 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:14:18] Production.INFO: count ==207 [2025-01-08 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:14:05 - End Time 2025-01-08 03:14:05 [2025-01-08 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199411', 'tblTempUsageDetail_20' ) start [2025-01-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199411', 'tblTempUsageDetail_20' ) end [2025-01-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199411', 'tblTempVendorCDR_20' ) start [2025-01-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199411', 'tblTempVendorCDR_20' ) end [2025-01-08 03:14:18] Production.INFO: ProcessCDR(1,14199411,1,1,2) [2025-01-08 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199411', 'tblTempUsageDetail_20' ) start [2025-01-08 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199411', 'tblTempUsageDetail_20' ) end [2025-01-08 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:14:21] Production.INFO: ==19815== Releasing lock... [2025-01-08 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:14:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:15:05 [end_date_ymd] => 2025-01-08 03:15:05 [RateCDR] => 1 ) [2025-01-08 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:15:05' and `end` < '2025-01-08 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:15:18] Production.INFO: count ==204 [2025-01-08 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:15:05 - End Time 2025-01-08 03:15:05 [2025-01-08 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199416', 'tblTempUsageDetail_20' ) start [2025-01-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199416', 'tblTempUsageDetail_20' ) end [2025-01-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199416', 'tblTempVendorCDR_20' ) start [2025-01-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199416', 'tblTempVendorCDR_20' ) end [2025-01-08 03:15:18] Production.INFO: ProcessCDR(1,14199416,1,1,2) [2025-01-08 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199416', 'tblTempUsageDetail_20' ) start [2025-01-08 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199416', 'tblTempUsageDetail_20' ) end [2025-01-08 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:15:21] Production.INFO: ==19888== Releasing lock... [2025-01-08 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:15:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:16:05 [end_date_ymd] => 2025-01-08 03:16:05 [RateCDR] => 1 ) [2025-01-08 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:16:05' and `end` < '2025-01-08 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:16:18] Production.INFO: count ==204 [2025-01-08 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:16:05 - End Time 2025-01-08 03:16:05 [2025-01-08 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199421', 'tblTempUsageDetail_20' ) start [2025-01-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199421', 'tblTempUsageDetail_20' ) end [2025-01-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199421', 'tblTempVendorCDR_20' ) start [2025-01-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199421', 'tblTempVendorCDR_20' ) end [2025-01-08 03:16:18] Production.INFO: ProcessCDR(1,14199421,1,1,2) [2025-01-08 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199421', 'tblTempUsageDetail_20' ) start [2025-01-08 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199421', 'tblTempUsageDetail_20' ) end [2025-01-08 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:16:22] Production.INFO: ==19964== Releasing lock... [2025-01-08 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:16:22] Production.INFO: 29 MB #Memory Used# [2025-01-08 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:17:06 [end_date_ymd] => 2025-01-08 03:17:06 [RateCDR] => 1 ) [2025-01-08 03:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:17:06' and `end` < '2025-01-08 03:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:17:20] Production.INFO: count ==201 [2025-01-08 03:17:20] Production.ERROR: pbx CDR StartTime 2025-01-08 00:17:06 - End Time 2025-01-08 03:17:06 [2025-01-08 03:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199426', 'tblTempUsageDetail_20' ) start [2025-01-08 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199426', 'tblTempUsageDetail_20' ) end [2025-01-08 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199426', 'tblTempVendorCDR_20' ) start [2025-01-08 03:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199426', 'tblTempVendorCDR_20' ) end [2025-01-08 03:17:20] Production.INFO: ProcessCDR(1,14199426,1,1,2) [2025-01-08 03:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199426', 'tblTempUsageDetail_20' ) start [2025-01-08 03:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199426', 'tblTempUsageDetail_20' ) end [2025-01-08 03:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:17:23] Production.INFO: ==20121== Releasing lock... [2025-01-08 03:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:17:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:18:04 [end_date_ymd] => 2025-01-08 03:18:04 [RateCDR] => 1 ) [2025-01-08 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:18:04' and `end` < '2025-01-08 03:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:18:18] Production.INFO: count ==200 [2025-01-08 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:18:04 - End Time 2025-01-08 03:18:04 [2025-01-08 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199431', 'tblTempUsageDetail_20' ) start [2025-01-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199431', 'tblTempUsageDetail_20' ) end [2025-01-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199431', 'tblTempVendorCDR_20' ) start [2025-01-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199431', 'tblTempVendorCDR_20' ) end [2025-01-08 03:18:18] Production.INFO: ProcessCDR(1,14199431,1,1,2) [2025-01-08 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199431', 'tblTempUsageDetail_20' ) start [2025-01-08 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199431', 'tblTempUsageDetail_20' ) end [2025-01-08 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:18:22] Production.INFO: ==20196== Releasing lock... [2025-01-08 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:19:05 [end_date_ymd] => 2025-01-08 03:19:05 [RateCDR] => 1 ) [2025-01-08 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:19:05' and `end` < '2025-01-08 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:19:19] Production.INFO: count ==200 [2025-01-08 03:19:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:19:05 - End Time 2025-01-08 03:19:05 [2025-01-08 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199436', 'tblTempUsageDetail_20' ) start [2025-01-08 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199436', 'tblTempUsageDetail_20' ) end [2025-01-08 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199436', 'tblTempVendorCDR_20' ) start [2025-01-08 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199436', 'tblTempVendorCDR_20' ) end [2025-01-08 03:19:19] Production.INFO: ProcessCDR(1,14199436,1,1,2) [2025-01-08 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199436', 'tblTempUsageDetail_20' ) start [2025-01-08 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199436', 'tblTempUsageDetail_20' ) end [2025-01-08 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:19:22] Production.INFO: ==20269== Releasing lock... [2025-01-08 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:20:06 [end_date_ymd] => 2025-01-08 03:20:06 [RateCDR] => 1 ) [2025-01-08 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:20:06' and `end` < '2025-01-08 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:20:19] Production.INFO: count ==196 [2025-01-08 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:20:06 - End Time 2025-01-08 03:20:06 [2025-01-08 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199441', 'tblTempUsageDetail_20' ) start [2025-01-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199441', 'tblTempUsageDetail_20' ) end [2025-01-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199441', 'tblTempVendorCDR_20' ) start [2025-01-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199441', 'tblTempVendorCDR_20' ) end [2025-01-08 03:20:19] Production.INFO: ProcessCDR(1,14199441,1,1,2) [2025-01-08 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199441', 'tblTempUsageDetail_20' ) start [2025-01-08 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199441', 'tblTempUsageDetail_20' ) end [2025-01-08 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:20:22] Production.INFO: ==20347== Releasing lock... [2025-01-08 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:21:05 [end_date_ymd] => 2025-01-08 03:21:05 [RateCDR] => 1 ) [2025-01-08 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:21:05' and `end` < '2025-01-08 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:21:18] Production.INFO: count ==190 [2025-01-08 03:21:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:21:05 - End Time 2025-01-08 03:21:05 [2025-01-08 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199447', 'tblTempUsageDetail_20' ) start [2025-01-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199447', 'tblTempUsageDetail_20' ) end [2025-01-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199447', 'tblTempVendorCDR_20' ) start [2025-01-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199447', 'tblTempVendorCDR_20' ) end [2025-01-08 03:21:18] Production.INFO: ProcessCDR(1,14199447,1,1,2) [2025-01-08 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199447', 'tblTempUsageDetail_20' ) start [2025-01-08 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199447', 'tblTempUsageDetail_20' ) end [2025-01-08 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:21:21] Production.INFO: ==20417== Releasing lock... [2025-01-08 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:22:05 [end_date_ymd] => 2025-01-08 03:22:05 [RateCDR] => 1 ) [2025-01-08 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:22:05' and `end` < '2025-01-08 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:22:18] Production.INFO: count ==190 [2025-01-08 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:22:05 - End Time 2025-01-08 03:22:05 [2025-01-08 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199452', 'tblTempUsageDetail_20' ) start [2025-01-08 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199452', 'tblTempUsageDetail_20' ) end [2025-01-08 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199452', 'tblTempVendorCDR_20' ) start [2025-01-08 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199452', 'tblTempVendorCDR_20' ) end [2025-01-08 03:22:18] Production.INFO: ProcessCDR(1,14199452,1,1,2) [2025-01-08 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199452', 'tblTempUsageDetail_20' ) start [2025-01-08 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199452', 'tblTempUsageDetail_20' ) end [2025-01-08 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:22:21] Production.INFO: ==20485== Releasing lock... [2025-01-08 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:23:04 [end_date_ymd] => 2025-01-08 03:23:04 [RateCDR] => 1 ) [2025-01-08 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:23:04' and `end` < '2025-01-08 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:23:18] Production.INFO: count ==190 [2025-01-08 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:23:04 - End Time 2025-01-08 03:23:04 [2025-01-08 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199457', 'tblTempUsageDetail_20' ) start [2025-01-08 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199457', 'tblTempUsageDetail_20' ) end [2025-01-08 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199457', 'tblTempVendorCDR_20' ) start [2025-01-08 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199457', 'tblTempVendorCDR_20' ) end [2025-01-08 03:23:18] Production.INFO: ProcessCDR(1,14199457,1,1,2) [2025-01-08 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199457', 'tblTempUsageDetail_20' ) start [2025-01-08 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199457', 'tblTempUsageDetail_20' ) end [2025-01-08 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:23:21] Production.INFO: ==20555== Releasing lock... [2025-01-08 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:24:05 [end_date_ymd] => 2025-01-08 03:24:05 [RateCDR] => 1 ) [2025-01-08 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:24:05' and `end` < '2025-01-08 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:24:18] Production.INFO: count ==190 [2025-01-08 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:24:05 - End Time 2025-01-08 03:24:05 [2025-01-08 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199462', 'tblTempUsageDetail_20' ) start [2025-01-08 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199462', 'tblTempUsageDetail_20' ) end [2025-01-08 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199462', 'tblTempVendorCDR_20' ) start [2025-01-08 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199462', 'tblTempVendorCDR_20' ) end [2025-01-08 03:24:18] Production.INFO: ProcessCDR(1,14199462,1,1,2) [2025-01-08 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199462', 'tblTempUsageDetail_20' ) start [2025-01-08 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199462', 'tblTempUsageDetail_20' ) end [2025-01-08 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:24:21] Production.INFO: ==20625== Releasing lock... [2025-01-08 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:25:05 [end_date_ymd] => 2025-01-08 03:25:05 [RateCDR] => 1 ) [2025-01-08 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:25:05' and `end` < '2025-01-08 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:25:18] Production.INFO: count ==189 [2025-01-08 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:25:05 - End Time 2025-01-08 03:25:05 [2025-01-08 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199467', 'tblTempUsageDetail_20' ) start [2025-01-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199467', 'tblTempUsageDetail_20' ) end [2025-01-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199467', 'tblTempVendorCDR_20' ) start [2025-01-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199467', 'tblTempVendorCDR_20' ) end [2025-01-08 03:25:18] Production.INFO: ProcessCDR(1,14199467,1,1,2) [2025-01-08 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199467', 'tblTempUsageDetail_20' ) start [2025-01-08 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199467', 'tblTempUsageDetail_20' ) end [2025-01-08 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:25:22] Production.INFO: ==20694== Releasing lock... [2025-01-08 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:26:05 [end_date_ymd] => 2025-01-08 03:26:05 [RateCDR] => 1 ) [2025-01-08 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:26:05' and `end` < '2025-01-08 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:26:18] Production.INFO: count ==189 [2025-01-08 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:26:05 - End Time 2025-01-08 03:26:05 [2025-01-08 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199472', 'tblTempUsageDetail_20' ) start [2025-01-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199472', 'tblTempUsageDetail_20' ) end [2025-01-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199472', 'tblTempVendorCDR_20' ) start [2025-01-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199472', 'tblTempVendorCDR_20' ) end [2025-01-08 03:26:18] Production.INFO: ProcessCDR(1,14199472,1,1,2) [2025-01-08 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199472', 'tblTempUsageDetail_20' ) start [2025-01-08 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199472', 'tblTempUsageDetail_20' ) end [2025-01-08 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:26:21] Production.INFO: ==20763== Releasing lock... [2025-01-08 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:27:06 [end_date_ymd] => 2025-01-08 03:27:06 [RateCDR] => 1 ) [2025-01-08 03:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:27:06' and `end` < '2025-01-08 03:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:27:19] Production.INFO: count ==188 [2025-01-08 03:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:27:06 - End Time 2025-01-08 03:27:06 [2025-01-08 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199477', 'tblTempUsageDetail_20' ) start [2025-01-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199477', 'tblTempUsageDetail_20' ) end [2025-01-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199477', 'tblTempVendorCDR_20' ) start [2025-01-08 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199477', 'tblTempVendorCDR_20' ) end [2025-01-08 03:27:19] Production.INFO: ProcessCDR(1,14199477,1,1,2) [2025-01-08 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199477', 'tblTempUsageDetail_20' ) start [2025-01-08 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199477', 'tblTempUsageDetail_20' ) end [2025-01-08 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:27:22] Production.INFO: ==20832== Releasing lock... [2025-01-08 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:28:05 [end_date_ymd] => 2025-01-08 03:28:05 [RateCDR] => 1 ) [2025-01-08 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:28:05' and `end` < '2025-01-08 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:28:18] Production.INFO: count ==188 [2025-01-08 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:28:05 - End Time 2025-01-08 03:28:05 [2025-01-08 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199482', 'tblTempUsageDetail_20' ) start [2025-01-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199482', 'tblTempUsageDetail_20' ) end [2025-01-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199482', 'tblTempVendorCDR_20' ) start [2025-01-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199482', 'tblTempVendorCDR_20' ) end [2025-01-08 03:28:18] Production.INFO: ProcessCDR(1,14199482,1,1,2) [2025-01-08 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199482', 'tblTempUsageDetail_20' ) start [2025-01-08 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199482', 'tblTempUsageDetail_20' ) end [2025-01-08 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:28:22] Production.INFO: ==20956== Releasing lock... [2025-01-08 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:29:04 [end_date_ymd] => 2025-01-08 03:29:04 [RateCDR] => 1 ) [2025-01-08 03:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:29:04' and `end` < '2025-01-08 03:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:29:18] Production.INFO: count ==188 [2025-01-08 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:29:04 - End Time 2025-01-08 03:29:04 [2025-01-08 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199487', 'tblTempUsageDetail_20' ) start [2025-01-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199487', 'tblTempUsageDetail_20' ) end [2025-01-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199487', 'tblTempVendorCDR_20' ) start [2025-01-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199487', 'tblTempVendorCDR_20' ) end [2025-01-08 03:29:18] Production.INFO: ProcessCDR(1,14199487,1,1,2) [2025-01-08 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199487', 'tblTempUsageDetail_20' ) start [2025-01-08 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199487', 'tblTempUsageDetail_20' ) end [2025-01-08 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:29:21] Production.INFO: ==21047== Releasing lock... [2025-01-08 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:30:05 [end_date_ymd] => 2025-01-08 03:30:05 [RateCDR] => 1 ) [2025-01-08 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:30:05' and `end` < '2025-01-08 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:30:18] Production.INFO: count ==187 [2025-01-08 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:30:05 - End Time 2025-01-08 03:30:05 [2025-01-08 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199493', 'tblTempUsageDetail_20' ) start [2025-01-08 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199493', 'tblTempUsageDetail_20' ) end [2025-01-08 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199493', 'tblTempVendorCDR_20' ) start [2025-01-08 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199493', 'tblTempVendorCDR_20' ) end [2025-01-08 03:30:18] Production.INFO: ProcessCDR(1,14199493,1,1,2) [2025-01-08 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199493', 'tblTempUsageDetail_20' ) start [2025-01-08 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199493', 'tblTempUsageDetail_20' ) end [2025-01-08 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:30:21] Production.INFO: ==21120== Releasing lock... [2025-01-08 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:31:05 [end_date_ymd] => 2025-01-08 03:31:05 [RateCDR] => 1 ) [2025-01-08 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:31:05' and `end` < '2025-01-08 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:31:20] Production.INFO: count ==187 [2025-01-08 03:31:20] Production.ERROR: pbx CDR StartTime 2025-01-08 00:31:05 - End Time 2025-01-08 03:31:05 [2025-01-08 03:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199498', 'tblTempUsageDetail_20' ) start [2025-01-08 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199498', 'tblTempUsageDetail_20' ) end [2025-01-08 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199498', 'tblTempVendorCDR_20' ) start [2025-01-08 03:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199498', 'tblTempVendorCDR_20' ) end [2025-01-08 03:31:20] Production.INFO: ProcessCDR(1,14199498,1,1,2) [2025-01-08 03:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199498', 'tblTempUsageDetail_20' ) start [2025-01-08 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199498', 'tblTempUsageDetail_20' ) end [2025-01-08 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:31:23] Production.INFO: ==21193== Releasing lock... [2025-01-08 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:31:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:32:05 [end_date_ymd] => 2025-01-08 03:32:05 [RateCDR] => 1 ) [2025-01-08 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:32:05' and `end` < '2025-01-08 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:32:19] Production.INFO: count ==187 [2025-01-08 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:32:05 - End Time 2025-01-08 03:32:05 [2025-01-08 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199503', 'tblTempUsageDetail_20' ) start [2025-01-08 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199503', 'tblTempUsageDetail_20' ) end [2025-01-08 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199503', 'tblTempVendorCDR_20' ) start [2025-01-08 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199503', 'tblTempVendorCDR_20' ) end [2025-01-08 03:32:19] Production.INFO: ProcessCDR(1,14199503,1,1,2) [2025-01-08 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199503', 'tblTempUsageDetail_20' ) start [2025-01-08 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199503', 'tblTempUsageDetail_20' ) end [2025-01-08 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:32:22] Production.INFO: ==21263== Releasing lock... [2025-01-08 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:33:05 [end_date_ymd] => 2025-01-08 03:33:05 [RateCDR] => 1 ) [2025-01-08 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:33:05' and `end` < '2025-01-08 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:33:18] Production.INFO: count ==186 [2025-01-08 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:33:05 - End Time 2025-01-08 03:33:05 [2025-01-08 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199508', 'tblTempUsageDetail_20' ) start [2025-01-08 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199508', 'tblTempUsageDetail_20' ) end [2025-01-08 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199508', 'tblTempVendorCDR_20' ) start [2025-01-08 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199508', 'tblTempVendorCDR_20' ) end [2025-01-08 03:33:18] Production.INFO: ProcessCDR(1,14199508,1,1,2) [2025-01-08 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199508', 'tblTempUsageDetail_20' ) start [2025-01-08 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199508', 'tblTempUsageDetail_20' ) end [2025-01-08 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:33:21] Production.INFO: ==21333== Releasing lock... [2025-01-08 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:34:05 [end_date_ymd] => 2025-01-08 03:34:05 [RateCDR] => 1 ) [2025-01-08 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:34:05' and `end` < '2025-01-08 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:34:18] Production.INFO: count ==186 [2025-01-08 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:34:05 - End Time 2025-01-08 03:34:05 [2025-01-08 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199513', 'tblTempUsageDetail_20' ) start [2025-01-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199513', 'tblTempUsageDetail_20' ) end [2025-01-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199513', 'tblTempVendorCDR_20' ) start [2025-01-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199513', 'tblTempVendorCDR_20' ) end [2025-01-08 03:34:18] Production.INFO: ProcessCDR(1,14199513,1,1,2) [2025-01-08 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199513', 'tblTempUsageDetail_20' ) start [2025-01-08 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199513', 'tblTempUsageDetail_20' ) end [2025-01-08 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:34:21] Production.INFO: ==21413== Releasing lock... [2025-01-08 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:35:05 [end_date_ymd] => 2025-01-08 03:35:05 [RateCDR] => 1 ) [2025-01-08 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:35:05' and `end` < '2025-01-08 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:35:18] Production.INFO: count ==186 [2025-01-08 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:35:05 - End Time 2025-01-08 03:35:05 [2025-01-08 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199518', 'tblTempUsageDetail_20' ) start [2025-01-08 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199518', 'tblTempUsageDetail_20' ) end [2025-01-08 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199518', 'tblTempVendorCDR_20' ) start [2025-01-08 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199518', 'tblTempVendorCDR_20' ) end [2025-01-08 03:35:18] Production.INFO: ProcessCDR(1,14199518,1,1,2) [2025-01-08 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199518', 'tblTempUsageDetail_20' ) start [2025-01-08 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199518', 'tblTempUsageDetail_20' ) end [2025-01-08 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:35:21] Production.INFO: ==21485== Releasing lock... [2025-01-08 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:36:05 [end_date_ymd] => 2025-01-08 03:36:05 [RateCDR] => 1 ) [2025-01-08 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:36:05' and `end` < '2025-01-08 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:36:17] Production.INFO: count ==186 [2025-01-08 03:36:17] Production.ERROR: pbx CDR StartTime 2025-01-08 00:36:05 - End Time 2025-01-08 03:36:05 [2025-01-08 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199523', 'tblTempUsageDetail_20' ) start [2025-01-08 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199523', 'tblTempUsageDetail_20' ) end [2025-01-08 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199523', 'tblTempVendorCDR_20' ) start [2025-01-08 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199523', 'tblTempVendorCDR_20' ) end [2025-01-08 03:36:17] Production.INFO: ProcessCDR(1,14199523,1,1,2) [2025-01-08 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199523', 'tblTempUsageDetail_20' ) start [2025-01-08 03:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199523', 'tblTempUsageDetail_20' ) end [2025-01-08 03:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:36:20] Production.INFO: ==21559== Releasing lock... [2025-01-08 03:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:37:05 [end_date_ymd] => 2025-01-08 03:37:05 [RateCDR] => 1 ) [2025-01-08 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:37:05' and `end` < '2025-01-08 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:37:18] Production.INFO: count ==184 [2025-01-08 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:37:05 - End Time 2025-01-08 03:37:05 [2025-01-08 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199528', 'tblTempUsageDetail_20' ) start [2025-01-08 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199528', 'tblTempUsageDetail_20' ) end [2025-01-08 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199528', 'tblTempVendorCDR_20' ) start [2025-01-08 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199528', 'tblTempVendorCDR_20' ) end [2025-01-08 03:37:18] Production.INFO: ProcessCDR(1,14199528,1,1,2) [2025-01-08 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199528', 'tblTempUsageDetail_20' ) start [2025-01-08 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199528', 'tblTempUsageDetail_20' ) end [2025-01-08 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:37:21] Production.INFO: ==21637== Releasing lock... [2025-01-08 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:38:04 [end_date_ymd] => 2025-01-08 03:38:04 [RateCDR] => 1 ) [2025-01-08 03:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:38:04' and `end` < '2025-01-08 03:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:38:19] Production.INFO: count ==183 [2025-01-08 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:38:04 - End Time 2025-01-08 03:38:04 [2025-01-08 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199533', 'tblTempUsageDetail_20' ) start [2025-01-08 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199533', 'tblTempUsageDetail_20' ) end [2025-01-08 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199533', 'tblTempVendorCDR_20' ) start [2025-01-08 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199533', 'tblTempVendorCDR_20' ) end [2025-01-08 03:38:19] Production.INFO: ProcessCDR(1,14199533,1,1,2) [2025-01-08 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199533', 'tblTempUsageDetail_20' ) start [2025-01-08 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199533', 'tblTempUsageDetail_20' ) end [2025-01-08 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:38:22] Production.INFO: ==21713== Releasing lock... [2025-01-08 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:39:05 [end_date_ymd] => 2025-01-08 03:39:05 [RateCDR] => 1 ) [2025-01-08 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:39:05' and `end` < '2025-01-08 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:39:18] Production.INFO: count ==183 [2025-01-08 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:39:05 - End Time 2025-01-08 03:39:05 [2025-01-08 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199538', 'tblTempUsageDetail_20' ) start [2025-01-08 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199538', 'tblTempUsageDetail_20' ) end [2025-01-08 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199538', 'tblTempVendorCDR_20' ) start [2025-01-08 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199538', 'tblTempVendorCDR_20' ) end [2025-01-08 03:39:18] Production.INFO: ProcessCDR(1,14199538,1,1,2) [2025-01-08 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199538', 'tblTempUsageDetail_20' ) start [2025-01-08 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199538', 'tblTempUsageDetail_20' ) end [2025-01-08 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:39:21] Production.INFO: ==21808== Releasing lock... [2025-01-08 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:40:06 [end_date_ymd] => 2025-01-08 03:40:06 [RateCDR] => 1 ) [2025-01-08 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:40:06' and `end` < '2025-01-08 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:40:19] Production.INFO: count ==177 [2025-01-08 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:40:06 - End Time 2025-01-08 03:40:06 [2025-01-08 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199544', 'tblTempUsageDetail_20' ) start [2025-01-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199544', 'tblTempUsageDetail_20' ) end [2025-01-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199544', 'tblTempVendorCDR_20' ) start [2025-01-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199544', 'tblTempVendorCDR_20' ) end [2025-01-08 03:40:19] Production.INFO: ProcessCDR(1,14199544,1,1,2) [2025-01-08 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199544', 'tblTempUsageDetail_20' ) start [2025-01-08 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199544', 'tblTempUsageDetail_20' ) end [2025-01-08 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:40:22] Production.INFO: ==21911== Releasing lock... [2025-01-08 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:41:05 [end_date_ymd] => 2025-01-08 03:41:05 [RateCDR] => 1 ) [2025-01-08 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:41:05' and `end` < '2025-01-08 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:41:18] Production.INFO: count ==171 [2025-01-08 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:41:05 - End Time 2025-01-08 03:41:05 [2025-01-08 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199549', 'tblTempUsageDetail_20' ) start [2025-01-08 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199549', 'tblTempUsageDetail_20' ) end [2025-01-08 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199549', 'tblTempVendorCDR_20' ) start [2025-01-08 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199549', 'tblTempVendorCDR_20' ) end [2025-01-08 03:41:18] Production.INFO: ProcessCDR(1,14199549,1,1,2) [2025-01-08 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199549', 'tblTempUsageDetail_20' ) start [2025-01-08 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199549', 'tblTempUsageDetail_20' ) end [2025-01-08 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:41:22] Production.INFO: ==21998== Releasing lock... [2025-01-08 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:42:05 [end_date_ymd] => 2025-01-08 03:42:05 [RateCDR] => 1 ) [2025-01-08 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:42:05' and `end` < '2025-01-08 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:42:18] Production.INFO: count ==171 [2025-01-08 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:42:05 - End Time 2025-01-08 03:42:05 [2025-01-08 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199554', 'tblTempUsageDetail_20' ) start [2025-01-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199554', 'tblTempUsageDetail_20' ) end [2025-01-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199554', 'tblTempVendorCDR_20' ) start [2025-01-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199554', 'tblTempVendorCDR_20' ) end [2025-01-08 03:42:18] Production.INFO: ProcessCDR(1,14199554,1,1,2) [2025-01-08 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199554', 'tblTempUsageDetail_20' ) start [2025-01-08 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199554', 'tblTempUsageDetail_20' ) end [2025-01-08 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:42:21] Production.INFO: ==22107== Releasing lock... [2025-01-08 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:43:05 [end_date_ymd] => 2025-01-08 03:43:05 [RateCDR] => 1 ) [2025-01-08 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:43:05' and `end` < '2025-01-08 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:43:18] Production.INFO: count ==171 [2025-01-08 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:43:05 - End Time 2025-01-08 03:43:05 [2025-01-08 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199559', 'tblTempUsageDetail_20' ) start [2025-01-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199559', 'tblTempUsageDetail_20' ) end [2025-01-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199559', 'tblTempVendorCDR_20' ) start [2025-01-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199559', 'tblTempVendorCDR_20' ) end [2025-01-08 03:43:18] Production.INFO: ProcessCDR(1,14199559,1,1,2) [2025-01-08 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199559', 'tblTempUsageDetail_20' ) start [2025-01-08 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199559', 'tblTempUsageDetail_20' ) end [2025-01-08 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:43:21] Production.INFO: ==22199== Releasing lock... [2025-01-08 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:44:05 [end_date_ymd] => 2025-01-08 03:44:05 [RateCDR] => 1 ) [2025-01-08 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:44:05' and `end` < '2025-01-08 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:44:19] Production.INFO: count ==171 [2025-01-08 03:44:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:44:05 - End Time 2025-01-08 03:44:05 [2025-01-08 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199564', 'tblTempUsageDetail_20' ) start [2025-01-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199564', 'tblTempUsageDetail_20' ) end [2025-01-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199564', 'tblTempVendorCDR_20' ) start [2025-01-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199564', 'tblTempVendorCDR_20' ) end [2025-01-08 03:44:19] Production.INFO: ProcessCDR(1,14199564,1,1,2) [2025-01-08 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199564', 'tblTempUsageDetail_20' ) start [2025-01-08 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199564', 'tblTempUsageDetail_20' ) end [2025-01-08 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:44:22] Production.INFO: ==22346== Releasing lock... [2025-01-08 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:45:04 [end_date_ymd] => 2025-01-08 03:45:04 [RateCDR] => 1 ) [2025-01-08 03:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:45:04' and `end` < '2025-01-08 03:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:45:17] Production.INFO: count ==171 [2025-01-08 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-08 00:45:04 - End Time 2025-01-08 03:45:04 [2025-01-08 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199569', 'tblTempUsageDetail_20' ) start [2025-01-08 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199569', 'tblTempUsageDetail_20' ) end [2025-01-08 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199569', 'tblTempVendorCDR_20' ) start [2025-01-08 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199569', 'tblTempVendorCDR_20' ) end [2025-01-08 03:45:17] Production.INFO: ProcessCDR(1,14199569,1,1,2) [2025-01-08 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199569', 'tblTempUsageDetail_20' ) start [2025-01-08 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199569', 'tblTempUsageDetail_20' ) end [2025-01-08 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:45:20] Production.INFO: ==22433== Releasing lock... [2025-01-08 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:46:06 [end_date_ymd] => 2025-01-08 03:46:06 [RateCDR] => 1 ) [2025-01-08 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:46:06' and `end` < '2025-01-08 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:46:18] Production.INFO: count ==171 [2025-01-08 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:46:06 - End Time 2025-01-08 03:46:06 [2025-01-08 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199574', 'tblTempUsageDetail_20' ) start [2025-01-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199574', 'tblTempUsageDetail_20' ) end [2025-01-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199574', 'tblTempVendorCDR_20' ) start [2025-01-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199574', 'tblTempVendorCDR_20' ) end [2025-01-08 03:46:18] Production.INFO: ProcessCDR(1,14199574,1,1,2) [2025-01-08 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199574', 'tblTempUsageDetail_20' ) start [2025-01-08 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199574', 'tblTempUsageDetail_20' ) end [2025-01-08 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:46:22] Production.INFO: ==22542== Releasing lock... [2025-01-08 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:47:04 [end_date_ymd] => 2025-01-08 03:47:04 [RateCDR] => 1 ) [2025-01-08 03:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:47:04' and `end` < '2025-01-08 03:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:47:17] Production.INFO: count ==171 [2025-01-08 03:47:17] Production.ERROR: pbx CDR StartTime 2025-01-08 00:47:04 - End Time 2025-01-08 03:47:04 [2025-01-08 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199579', 'tblTempUsageDetail_20' ) start [2025-01-08 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199579', 'tblTempUsageDetail_20' ) end [2025-01-08 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199579', 'tblTempVendorCDR_20' ) start [2025-01-08 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199579', 'tblTempVendorCDR_20' ) end [2025-01-08 03:47:17] Production.INFO: ProcessCDR(1,14199579,1,1,2) [2025-01-08 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199579', 'tblTempUsageDetail_20' ) start [2025-01-08 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199579', 'tblTempUsageDetail_20' ) end [2025-01-08 03:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:47:20] Production.INFO: ==22628== Releasing lock... [2025-01-08 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:48:05 [end_date_ymd] => 2025-01-08 03:48:05 [RateCDR] => 1 ) [2025-01-08 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:48:05' and `end` < '2025-01-08 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:48:18] Production.INFO: count ==171 [2025-01-08 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:48:05 - End Time 2025-01-08 03:48:05 [2025-01-08 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199584', 'tblTempUsageDetail_20' ) start [2025-01-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199584', 'tblTempUsageDetail_20' ) end [2025-01-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199584', 'tblTempVendorCDR_20' ) start [2025-01-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199584', 'tblTempVendorCDR_20' ) end [2025-01-08 03:48:18] Production.INFO: ProcessCDR(1,14199584,1,1,2) [2025-01-08 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199584', 'tblTempUsageDetail_20' ) start [2025-01-08 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199584', 'tblTempUsageDetail_20' ) end [2025-01-08 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:48:21] Production.INFO: ==22743== Releasing lock... [2025-01-08 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:49:05 [end_date_ymd] => 2025-01-08 03:49:05 [RateCDR] => 1 ) [2025-01-08 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:49:05' and `end` < '2025-01-08 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:49:18] Production.INFO: count ==171 [2025-01-08 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:49:05 - End Time 2025-01-08 03:49:05 [2025-01-08 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199589', 'tblTempUsageDetail_20' ) start [2025-01-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199589', 'tblTempUsageDetail_20' ) end [2025-01-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199589', 'tblTempVendorCDR_20' ) start [2025-01-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199589', 'tblTempVendorCDR_20' ) end [2025-01-08 03:49:18] Production.INFO: ProcessCDR(1,14199589,1,1,2) [2025-01-08 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199589', 'tblTempUsageDetail_20' ) start [2025-01-08 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199589', 'tblTempUsageDetail_20' ) end [2025-01-08 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:49:21] Production.INFO: ==22834== Releasing lock... [2025-01-08 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:50:05 [end_date_ymd] => 2025-01-08 03:50:05 [RateCDR] => 1 ) [2025-01-08 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:50:05' and `end` < '2025-01-08 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:50:18] Production.INFO: count ==167 [2025-01-08 03:50:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:50:05 - End Time 2025-01-08 03:50:05 [2025-01-08 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199595', 'tblTempUsageDetail_20' ) start [2025-01-08 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199595', 'tblTempUsageDetail_20' ) end [2025-01-08 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199595', 'tblTempVendorCDR_20' ) start [2025-01-08 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199595', 'tblTempVendorCDR_20' ) end [2025-01-08 03:50:18] Production.INFO: ProcessCDR(1,14199595,1,1,2) [2025-01-08 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199595', 'tblTempUsageDetail_20' ) start [2025-01-08 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199595', 'tblTempUsageDetail_20' ) end [2025-01-08 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:50:21] Production.INFO: ==22940== Releasing lock... [2025-01-08 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:51:05 [end_date_ymd] => 2025-01-08 03:51:05 [RateCDR] => 1 ) [2025-01-08 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:51:05' and `end` < '2025-01-08 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:51:18] Production.INFO: count ==157 [2025-01-08 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:51:05 - End Time 2025-01-08 03:51:05 [2025-01-08 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199600', 'tblTempUsageDetail_20' ) start [2025-01-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199600', 'tblTempUsageDetail_20' ) end [2025-01-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199600', 'tblTempVendorCDR_20' ) start [2025-01-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199600', 'tblTempVendorCDR_20' ) end [2025-01-08 03:51:18] Production.INFO: ProcessCDR(1,14199600,1,1,2) [2025-01-08 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199600', 'tblTempUsageDetail_20' ) start [2025-01-08 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199600', 'tblTempUsageDetail_20' ) end [2025-01-08 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:51:21] Production.INFO: ==23033== Releasing lock... [2025-01-08 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:52:06 [end_date_ymd] => 2025-01-08 03:52:06 [RateCDR] => 1 ) [2025-01-08 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:52:06' and `end` < '2025-01-08 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:52:20] Production.INFO: count ==157 [2025-01-08 03:52:20] Production.ERROR: pbx CDR StartTime 2025-01-08 00:52:06 - End Time 2025-01-08 03:52:06 [2025-01-08 03:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199605', 'tblTempUsageDetail_20' ) start [2025-01-08 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199605', 'tblTempUsageDetail_20' ) end [2025-01-08 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199605', 'tblTempVendorCDR_20' ) start [2025-01-08 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199605', 'tblTempVendorCDR_20' ) end [2025-01-08 03:52:20] Production.INFO: ProcessCDR(1,14199605,1,1,2) [2025-01-08 03:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199605', 'tblTempUsageDetail_20' ) start [2025-01-08 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199605', 'tblTempUsageDetail_20' ) end [2025-01-08 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:52:23] Production.INFO: ==23128== Releasing lock... [2025-01-08 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:52:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:53:05 [end_date_ymd] => 2025-01-08 03:53:05 [RateCDR] => 1 ) [2025-01-08 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:53:05' and `end` < '2025-01-08 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:53:19] Production.INFO: count ==157 [2025-01-08 03:53:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:53:05 - End Time 2025-01-08 03:53:05 [2025-01-08 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199610', 'tblTempUsageDetail_20' ) start [2025-01-08 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199610', 'tblTempUsageDetail_20' ) end [2025-01-08 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199610', 'tblTempVendorCDR_20' ) start [2025-01-08 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199610', 'tblTempVendorCDR_20' ) end [2025-01-08 03:53:19] Production.INFO: ProcessCDR(1,14199610,1,1,2) [2025-01-08 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199610', 'tblTempUsageDetail_20' ) start [2025-01-08 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199610', 'tblTempUsageDetail_20' ) end [2025-01-08 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:53:22] Production.INFO: ==23220== Releasing lock... [2025-01-08 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:54:05 [end_date_ymd] => 2025-01-08 03:54:05 [RateCDR] => 1 ) [2025-01-08 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:54:05' and `end` < '2025-01-08 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:54:18] Production.INFO: count ==156 [2025-01-08 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:54:05 - End Time 2025-01-08 03:54:05 [2025-01-08 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199615', 'tblTempUsageDetail_20' ) start [2025-01-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199615', 'tblTempUsageDetail_20' ) end [2025-01-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199615', 'tblTempVendorCDR_20' ) start [2025-01-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199615', 'tblTempVendorCDR_20' ) end [2025-01-08 03:54:18] Production.INFO: ProcessCDR(1,14199615,1,1,2) [2025-01-08 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199615', 'tblTempUsageDetail_20' ) start [2025-01-08 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199615', 'tblTempUsageDetail_20' ) end [2025-01-08 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:54:21] Production.INFO: ==23322== Releasing lock... [2025-01-08 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:55:05 [end_date_ymd] => 2025-01-08 03:55:05 [RateCDR] => 1 ) [2025-01-08 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:55:05' and `end` < '2025-01-08 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:55:18] Production.INFO: count ==156 [2025-01-08 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:55:05 - End Time 2025-01-08 03:55:05 [2025-01-08 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199620', 'tblTempUsageDetail_20' ) start [2025-01-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199620', 'tblTempUsageDetail_20' ) end [2025-01-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199620', 'tblTempVendorCDR_20' ) start [2025-01-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199620', 'tblTempVendorCDR_20' ) end [2025-01-08 03:55:18] Production.INFO: ProcessCDR(1,14199620,1,1,2) [2025-01-08 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199620', 'tblTempUsageDetail_20' ) start [2025-01-08 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199620', 'tblTempUsageDetail_20' ) end [2025-01-08 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:55:21] Production.INFO: ==23418== Releasing lock... [2025-01-08 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:56:05 [end_date_ymd] => 2025-01-08 03:56:05 [RateCDR] => 1 ) [2025-01-08 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:56:05' and `end` < '2025-01-08 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:56:19] Production.INFO: count ==154 [2025-01-08 03:56:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:56:05 - End Time 2025-01-08 03:56:05 [2025-01-08 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199625', 'tblTempUsageDetail_20' ) start [2025-01-08 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199625', 'tblTempUsageDetail_20' ) end [2025-01-08 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199625', 'tblTempVendorCDR_20' ) start [2025-01-08 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199625', 'tblTempVendorCDR_20' ) end [2025-01-08 03:56:19] Production.INFO: ProcessCDR(1,14199625,1,1,2) [2025-01-08 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199625', 'tblTempUsageDetail_20' ) start [2025-01-08 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199625', 'tblTempUsageDetail_20' ) end [2025-01-08 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:56:22] Production.INFO: ==23521== Releasing lock... [2025-01-08 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:57:05 [end_date_ymd] => 2025-01-08 03:57:05 [RateCDR] => 1 ) [2025-01-08 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:57:05' and `end` < '2025-01-08 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:57:18] Production.INFO: count ==154 [2025-01-08 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:57:05 - End Time 2025-01-08 03:57:05 [2025-01-08 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199630', 'tblTempUsageDetail_20' ) start [2025-01-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199630', 'tblTempUsageDetail_20' ) end [2025-01-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199630', 'tblTempVendorCDR_20' ) start [2025-01-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199630', 'tblTempVendorCDR_20' ) end [2025-01-08 03:57:18] Production.INFO: ProcessCDR(1,14199630,1,1,2) [2025-01-08 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199630', 'tblTempUsageDetail_20' ) start [2025-01-08 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199630', 'tblTempUsageDetail_20' ) end [2025-01-08 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:57:21] Production.INFO: ==23628== Releasing lock... [2025-01-08 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:58:05 [end_date_ymd] => 2025-01-08 03:58:05 [RateCDR] => 1 ) [2025-01-08 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:58:05' and `end` < '2025-01-08 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:58:18] Production.INFO: count ==154 [2025-01-08 03:58:19] Production.ERROR: pbx CDR StartTime 2025-01-08 00:58:05 - End Time 2025-01-08 03:58:05 [2025-01-08 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199635', 'tblTempUsageDetail_20' ) start [2025-01-08 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199635', 'tblTempUsageDetail_20' ) end [2025-01-08 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199635', 'tblTempVendorCDR_20' ) start [2025-01-08 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199635', 'tblTempVendorCDR_20' ) end [2025-01-08 03:58:19] Production.INFO: ProcessCDR(1,14199635,1,1,2) [2025-01-08 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199635', 'tblTempUsageDetail_20' ) start [2025-01-08 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199635', 'tblTempUsageDetail_20' ) end [2025-01-08 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:58:22] Production.INFO: ==23719== Releasing lock... [2025-01-08 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 00:59:06 [end_date_ymd] => 2025-01-08 03:59:06 [RateCDR] => 1 ) [2025-01-08 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 00:59:06' and `end` < '2025-01-08 03:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 03:59:18] Production.INFO: count ==153 [2025-01-08 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-08 00:59:06 - End Time 2025-01-08 03:59:06 [2025-01-08 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199640', 'tblTempUsageDetail_20' ) start [2025-01-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199640', 'tblTempUsageDetail_20' ) end [2025-01-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199640', 'tblTempVendorCDR_20' ) start [2025-01-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199640', 'tblTempVendorCDR_20' ) end [2025-01-08 03:59:18] Production.INFO: ProcessCDR(1,14199640,1,1,2) [2025-01-08 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199640', 'tblTempUsageDetail_20' ) start [2025-01-08 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199640', 'tblTempUsageDetail_20' ) end [2025-01-08 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 03:59:22] Production.INFO: ==23798== Releasing lock... [2025-01-08 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 03:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:00:05 [end_date_ymd] => 2025-01-08 04:00:05 [RateCDR] => 1 ) [2025-01-08 04:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:00:05' and `end` < '2025-01-08 04:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:00:18] Production.INFO: count ==149 [2025-01-08 04:00:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:00:05 - End Time 2025-01-08 04:00:05 [2025-01-08 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199646', 'tblTempUsageDetail_20' ) start [2025-01-08 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199646', 'tblTempUsageDetail_20' ) end [2025-01-08 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199646', 'tblTempVendorCDR_20' ) start [2025-01-08 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199646', 'tblTempVendorCDR_20' ) end [2025-01-08 04:00:18] Production.INFO: ProcessCDR(1,14199646,1,1,2) [2025-01-08 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199646', 'tblTempUsageDetail_20' ) start [2025-01-08 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199646', 'tblTempUsageDetail_20' ) end [2025-01-08 04:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:00:21] Production.INFO: ==23914== Releasing lock... [2025-01-08 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:01:05 [end_date_ymd] => 2025-01-08 04:01:05 [RateCDR] => 1 ) [2025-01-08 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:01:05' and `end` < '2025-01-08 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:01:18] Production.INFO: count ==141 [2025-01-08 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:01:05 - End Time 2025-01-08 04:01:05 [2025-01-08 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199652', 'tblTempUsageDetail_20' ) start [2025-01-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199652', 'tblTempUsageDetail_20' ) end [2025-01-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199652', 'tblTempVendorCDR_20' ) start [2025-01-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199652', 'tblTempVendorCDR_20' ) end [2025-01-08 04:01:18] Production.INFO: ProcessCDR(1,14199652,1,1,2) [2025-01-08 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199652', 'tblTempUsageDetail_20' ) start [2025-01-08 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199652', 'tblTempUsageDetail_20' ) end [2025-01-08 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:01:22] Production.INFO: ==24009== Releasing lock... [2025-01-08 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:02:05 [end_date_ymd] => 2025-01-08 04:02:05 [RateCDR] => 1 ) [2025-01-08 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:02:05' and `end` < '2025-01-08 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:02:18] Production.INFO: count ==141 [2025-01-08 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:02:05 - End Time 2025-01-08 04:02:05 [2025-01-08 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199657', 'tblTempUsageDetail_20' ) start [2025-01-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199657', 'tblTempUsageDetail_20' ) end [2025-01-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199657', 'tblTempVendorCDR_20' ) start [2025-01-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199657', 'tblTempVendorCDR_20' ) end [2025-01-08 04:02:18] Production.INFO: ProcessCDR(1,14199657,1,1,2) [2025-01-08 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199657', 'tblTempUsageDetail_20' ) start [2025-01-08 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199657', 'tblTempUsageDetail_20' ) end [2025-01-08 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:02:21] Production.INFO: ==24088== Releasing lock... [2025-01-08 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:03:05 [end_date_ymd] => 2025-01-08 04:03:05 [RateCDR] => 1 ) [2025-01-08 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:03:05' and `end` < '2025-01-08 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:03:18] Production.INFO: count ==141 [2025-01-08 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:03:05 - End Time 2025-01-08 04:03:05 [2025-01-08 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199662', 'tblTempUsageDetail_20' ) start [2025-01-08 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199662', 'tblTempUsageDetail_20' ) end [2025-01-08 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199662', 'tblTempVendorCDR_20' ) start [2025-01-08 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199662', 'tblTempVendorCDR_20' ) end [2025-01-08 04:03:18] Production.INFO: ProcessCDR(1,14199662,1,1,2) [2025-01-08 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199662', 'tblTempUsageDetail_20' ) start [2025-01-08 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199662', 'tblTempUsageDetail_20' ) end [2025-01-08 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:03:21] Production.INFO: ==24163== Releasing lock... [2025-01-08 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:04:05 [end_date_ymd] => 2025-01-08 04:04:05 [RateCDR] => 1 ) [2025-01-08 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:04:05' and `end` < '2025-01-08 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:04:17] Production.INFO: count ==141 [2025-01-08 04:04:17] Production.ERROR: pbx CDR StartTime 2025-01-08 01:04:05 - End Time 2025-01-08 04:04:05 [2025-01-08 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199667', 'tblTempUsageDetail_20' ) start [2025-01-08 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199667', 'tblTempUsageDetail_20' ) end [2025-01-08 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199667', 'tblTempVendorCDR_20' ) start [2025-01-08 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199667', 'tblTempVendorCDR_20' ) end [2025-01-08 04:04:17] Production.INFO: ProcessCDR(1,14199667,1,1,2) [2025-01-08 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199667', 'tblTempUsageDetail_20' ) start [2025-01-08 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199667', 'tblTempUsageDetail_20' ) end [2025-01-08 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:04:21] Production.INFO: ==24234== Releasing lock... [2025-01-08 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:05:05 [end_date_ymd] => 2025-01-08 04:05:05 [RateCDR] => 1 ) [2025-01-08 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:05:05' and `end` < '2025-01-08 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:05:18] Production.INFO: count ==141 [2025-01-08 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:05:05 - End Time 2025-01-08 04:05:05 [2025-01-08 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199672', 'tblTempUsageDetail_20' ) start [2025-01-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199672', 'tblTempUsageDetail_20' ) end [2025-01-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199672', 'tblTempVendorCDR_20' ) start [2025-01-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199672', 'tblTempVendorCDR_20' ) end [2025-01-08 04:05:18] Production.INFO: ProcessCDR(1,14199672,1,1,2) [2025-01-08 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199672', 'tblTempUsageDetail_20' ) start [2025-01-08 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199672', 'tblTempUsageDetail_20' ) end [2025-01-08 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:05:21] Production.INFO: ==24310== Releasing lock... [2025-01-08 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:06:05 [end_date_ymd] => 2025-01-08 04:06:05 [RateCDR] => 1 ) [2025-01-08 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:06:05' and `end` < '2025-01-08 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:06:18] Production.INFO: count ==139 [2025-01-08 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:06:05 - End Time 2025-01-08 04:06:05 [2025-01-08 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199677', 'tblTempUsageDetail_20' ) start [2025-01-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199677', 'tblTempUsageDetail_20' ) end [2025-01-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199677', 'tblTempVendorCDR_20' ) start [2025-01-08 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199677', 'tblTempVendorCDR_20' ) end [2025-01-08 04:06:18] Production.INFO: ProcessCDR(1,14199677,1,1,2) [2025-01-08 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199677', 'tblTempUsageDetail_20' ) start [2025-01-08 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199677', 'tblTempUsageDetail_20' ) end [2025-01-08 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:06:21] Production.INFO: ==24380== Releasing lock... [2025-01-08 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:07:05 [end_date_ymd] => 2025-01-08 04:07:05 [RateCDR] => 1 ) [2025-01-08 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:07:05' and `end` < '2025-01-08 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:07:18] Production.INFO: count ==139 [2025-01-08 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:07:05 - End Time 2025-01-08 04:07:05 [2025-01-08 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199682', 'tblTempUsageDetail_20' ) start [2025-01-08 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199682', 'tblTempUsageDetail_20' ) end [2025-01-08 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199682', 'tblTempVendorCDR_20' ) start [2025-01-08 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199682', 'tblTempVendorCDR_20' ) end [2025-01-08 04:07:18] Production.INFO: ProcessCDR(1,14199682,1,1,2) [2025-01-08 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199682', 'tblTempUsageDetail_20' ) start [2025-01-08 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199682', 'tblTempUsageDetail_20' ) end [2025-01-08 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:07:21] Production.INFO: ==24450== Releasing lock... [2025-01-08 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:08:05 [end_date_ymd] => 2025-01-08 04:08:05 [RateCDR] => 1 ) [2025-01-08 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:08:05' and `end` < '2025-01-08 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:08:18] Production.INFO: count ==138 [2025-01-08 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:08:05 - End Time 2025-01-08 04:08:05 [2025-01-08 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199687', 'tblTempUsageDetail_20' ) start [2025-01-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199687', 'tblTempUsageDetail_20' ) end [2025-01-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199687', 'tblTempVendorCDR_20' ) start [2025-01-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199687', 'tblTempVendorCDR_20' ) end [2025-01-08 04:08:18] Production.INFO: ProcessCDR(1,14199687,1,1,2) [2025-01-08 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199687', 'tblTempUsageDetail_20' ) start [2025-01-08 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199687', 'tblTempUsageDetail_20' ) end [2025-01-08 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:08:21] Production.INFO: ==24520== Releasing lock... [2025-01-08 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:09:04 [end_date_ymd] => 2025-01-08 04:09:04 [RateCDR] => 1 ) [2025-01-08 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:09:04' and `end` < '2025-01-08 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:09:18] Production.INFO: count ==138 [2025-01-08 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:09:04 - End Time 2025-01-08 04:09:04 [2025-01-08 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199692', 'tblTempUsageDetail_20' ) start [2025-01-08 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199692', 'tblTempUsageDetail_20' ) end [2025-01-08 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199692', 'tblTempVendorCDR_20' ) start [2025-01-08 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199692', 'tblTempVendorCDR_20' ) end [2025-01-08 04:09:18] Production.INFO: ProcessCDR(1,14199692,1,1,2) [2025-01-08 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199692', 'tblTempUsageDetail_20' ) start [2025-01-08 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199692', 'tblTempUsageDetail_20' ) end [2025-01-08 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:09:21] Production.INFO: ==24592== Releasing lock... [2025-01-08 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:10:06 [end_date_ymd] => 2025-01-08 04:10:06 [RateCDR] => 1 ) [2025-01-08 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:10:06' and `end` < '2025-01-08 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:10:19] Production.INFO: count ==132 [2025-01-08 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:10:06 - End Time 2025-01-08 04:10:06 [2025-01-08 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199698', 'tblTempUsageDetail_20' ) start [2025-01-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199698', 'tblTempUsageDetail_20' ) end [2025-01-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199698', 'tblTempVendorCDR_20' ) start [2025-01-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199698', 'tblTempVendorCDR_20' ) end [2025-01-08 04:10:19] Production.INFO: ProcessCDR(1,14199698,1,1,2) [2025-01-08 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199698', 'tblTempUsageDetail_20' ) start [2025-01-08 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199698', 'tblTempUsageDetail_20' ) end [2025-01-08 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:10:22] Production.INFO: ==24666== Releasing lock... [2025-01-08 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:11:05 [end_date_ymd] => 2025-01-08 04:11:05 [RateCDR] => 1 ) [2025-01-08 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:11:05' and `end` < '2025-01-08 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:11:18] Production.INFO: count ==128 [2025-01-08 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:11:05 - End Time 2025-01-08 04:11:05 [2025-01-08 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199703', 'tblTempUsageDetail_20' ) start [2025-01-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199703', 'tblTempUsageDetail_20' ) end [2025-01-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199703', 'tblTempVendorCDR_20' ) start [2025-01-08 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199703', 'tblTempVendorCDR_20' ) end [2025-01-08 04:11:18] Production.INFO: ProcessCDR(1,14199703,1,1,2) [2025-01-08 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199703', 'tblTempUsageDetail_20' ) start [2025-01-08 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199703', 'tblTempUsageDetail_20' ) end [2025-01-08 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:11:21] Production.INFO: ==24738== Releasing lock... [2025-01-08 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:12:05 [end_date_ymd] => 2025-01-08 04:12:05 [RateCDR] => 1 ) [2025-01-08 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:12:05' and `end` < '2025-01-08 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:12:18] Production.INFO: count ==128 [2025-01-08 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:12:05 - End Time 2025-01-08 04:12:05 [2025-01-08 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199708', 'tblTempUsageDetail_20' ) start [2025-01-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199708', 'tblTempUsageDetail_20' ) end [2025-01-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199708', 'tblTempVendorCDR_20' ) start [2025-01-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199708', 'tblTempVendorCDR_20' ) end [2025-01-08 04:12:18] Production.INFO: ProcessCDR(1,14199708,1,1,2) [2025-01-08 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199708', 'tblTempUsageDetail_20' ) start [2025-01-08 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199708', 'tblTempUsageDetail_20' ) end [2025-01-08 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:12:21] Production.INFO: ==24815== Releasing lock... [2025-01-08 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:13:05 [end_date_ymd] => 2025-01-08 04:13:05 [RateCDR] => 1 ) [2025-01-08 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:13:05' and `end` < '2025-01-08 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:13:18] Production.INFO: count ==128 [2025-01-08 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:13:05 - End Time 2025-01-08 04:13:05 [2025-01-08 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199713', 'tblTempUsageDetail_20' ) start [2025-01-08 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199713', 'tblTempUsageDetail_20' ) end [2025-01-08 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199713', 'tblTempVendorCDR_20' ) start [2025-01-08 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199713', 'tblTempVendorCDR_20' ) end [2025-01-08 04:13:18] Production.INFO: ProcessCDR(1,14199713,1,1,2) [2025-01-08 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199713', 'tblTempUsageDetail_20' ) start [2025-01-08 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199713', 'tblTempUsageDetail_20' ) end [2025-01-08 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:13:21] Production.INFO: ==24896== Releasing lock... [2025-01-08 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:13:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:14:05 [end_date_ymd] => 2025-01-08 04:14:05 [RateCDR] => 1 ) [2025-01-08 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:14:05' and `end` < '2025-01-08 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:14:19] Production.INFO: count ==128 [2025-01-08 04:14:20] Production.ERROR: pbx CDR StartTime 2025-01-08 01:14:05 - End Time 2025-01-08 04:14:05 [2025-01-08 04:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199718', 'tblTempUsageDetail_20' ) start [2025-01-08 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199718', 'tblTempUsageDetail_20' ) end [2025-01-08 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199718', 'tblTempVendorCDR_20' ) start [2025-01-08 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199718', 'tblTempVendorCDR_20' ) end [2025-01-08 04:14:20] Production.INFO: ProcessCDR(1,14199718,1,1,2) [2025-01-08 04:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199718', 'tblTempUsageDetail_20' ) start [2025-01-08 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199718', 'tblTempUsageDetail_20' ) end [2025-01-08 04:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:14:23] Production.INFO: ==24975== Releasing lock... [2025-01-08 04:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:14:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:15:05 [end_date_ymd] => 2025-01-08 04:15:05 [RateCDR] => 1 ) [2025-01-08 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:15:05' and `end` < '2025-01-08 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:15:18] Production.INFO: count ==128 [2025-01-08 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:15:05 - End Time 2025-01-08 04:15:05 [2025-01-08 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199723', 'tblTempUsageDetail_20' ) start [2025-01-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199723', 'tblTempUsageDetail_20' ) end [2025-01-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199723', 'tblTempVendorCDR_20' ) start [2025-01-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199723', 'tblTempVendorCDR_20' ) end [2025-01-08 04:15:18] Production.INFO: ProcessCDR(1,14199723,1,1,2) [2025-01-08 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199723', 'tblTempUsageDetail_20' ) start [2025-01-08 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199723', 'tblTempUsageDetail_20' ) end [2025-01-08 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:15:22] Production.INFO: ==25098== Releasing lock... [2025-01-08 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:15:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:16:05 [end_date_ymd] => 2025-01-08 04:16:05 [RateCDR] => 1 ) [2025-01-08 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:16:05' and `end` < '2025-01-08 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:16:18] Production.INFO: count ==128 [2025-01-08 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:16:05 - End Time 2025-01-08 04:16:05 [2025-01-08 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199728', 'tblTempUsageDetail_20' ) start [2025-01-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199728', 'tblTempUsageDetail_20' ) end [2025-01-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199728', 'tblTempVendorCDR_20' ) start [2025-01-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199728', 'tblTempVendorCDR_20' ) end [2025-01-08 04:16:18] Production.INFO: ProcessCDR(1,14199728,1,1,2) [2025-01-08 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199728', 'tblTempUsageDetail_20' ) start [2025-01-08 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199728', 'tblTempUsageDetail_20' ) end [2025-01-08 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:16:21] Production.INFO: ==25185== Releasing lock... [2025-01-08 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:17:05 [end_date_ymd] => 2025-01-08 04:17:05 [RateCDR] => 1 ) [2025-01-08 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:17:05' and `end` < '2025-01-08 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:17:18] Production.INFO: count ==128 [2025-01-08 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:17:05 - End Time 2025-01-08 04:17:05 [2025-01-08 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199733', 'tblTempUsageDetail_20' ) start [2025-01-08 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199733', 'tblTempUsageDetail_20' ) end [2025-01-08 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199733', 'tblTempVendorCDR_20' ) start [2025-01-08 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199733', 'tblTempVendorCDR_20' ) end [2025-01-08 04:17:18] Production.INFO: ProcessCDR(1,14199733,1,1,2) [2025-01-08 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199733', 'tblTempUsageDetail_20' ) start [2025-01-08 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199733', 'tblTempUsageDetail_20' ) end [2025-01-08 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:17:21] Production.INFO: ==25267== Releasing lock... [2025-01-08 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:18:05 [end_date_ymd] => 2025-01-08 04:18:05 [RateCDR] => 1 ) [2025-01-08 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:18:05' and `end` < '2025-01-08 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:18:20] Production.INFO: count ==128 [2025-01-08 04:18:20] Production.ERROR: pbx CDR StartTime 2025-01-08 01:18:05 - End Time 2025-01-08 04:18:05 [2025-01-08 04:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199738', 'tblTempUsageDetail_20' ) start [2025-01-08 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199738', 'tblTempUsageDetail_20' ) end [2025-01-08 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199738', 'tblTempVendorCDR_20' ) start [2025-01-08 04:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199738', 'tblTempVendorCDR_20' ) end [2025-01-08 04:18:20] Production.INFO: ProcessCDR(1,14199738,1,1,2) [2025-01-08 04:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199738', 'tblTempUsageDetail_20' ) start [2025-01-08 04:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199738', 'tblTempUsageDetail_20' ) end [2025-01-08 04:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:18:23] Production.INFO: ==25358== Releasing lock... [2025-01-08 04:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:18:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:19:05 [end_date_ymd] => 2025-01-08 04:19:05 [RateCDR] => 1 ) [2025-01-08 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:19:05' and `end` < '2025-01-08 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:19:19] Production.INFO: count ==128 [2025-01-08 04:19:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:19:05 - End Time 2025-01-08 04:19:05 [2025-01-08 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199743', 'tblTempUsageDetail_20' ) start [2025-01-08 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199743', 'tblTempUsageDetail_20' ) end [2025-01-08 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199743', 'tblTempVendorCDR_20' ) start [2025-01-08 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199743', 'tblTempVendorCDR_20' ) end [2025-01-08 04:19:19] Production.INFO: ProcessCDR(1,14199743,1,1,2) [2025-01-08 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199743', 'tblTempUsageDetail_20' ) start [2025-01-08 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199743', 'tblTempUsageDetail_20' ) end [2025-01-08 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:19:22] Production.INFO: ==25438== Releasing lock... [2025-01-08 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:19:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:20:06 [end_date_ymd] => 2025-01-08 04:20:06 [RateCDR] => 1 ) [2025-01-08 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:20:06' and `end` < '2025-01-08 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:20:19] Production.INFO: count ==128 [2025-01-08 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:20:06 - End Time 2025-01-08 04:20:06 [2025-01-08 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199749', 'tblTempUsageDetail_20' ) start [2025-01-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199749', 'tblTempUsageDetail_20' ) end [2025-01-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199749', 'tblTempVendorCDR_20' ) start [2025-01-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199749', 'tblTempVendorCDR_20' ) end [2025-01-08 04:20:19] Production.INFO: ProcessCDR(1,14199749,1,1,2) [2025-01-08 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199749', 'tblTempUsageDetail_20' ) start [2025-01-08 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199749', 'tblTempUsageDetail_20' ) end [2025-01-08 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:20:22] Production.INFO: ==25527== Releasing lock... [2025-01-08 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:21:05 [end_date_ymd] => 2025-01-08 04:21:05 [RateCDR] => 1 ) [2025-01-08 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:21:05' and `end` < '2025-01-08 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:21:19] Production.INFO: count ==128 [2025-01-08 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:21:05 - End Time 2025-01-08 04:21:05 [2025-01-08 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199754', 'tblTempUsageDetail_20' ) start [2025-01-08 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199754', 'tblTempUsageDetail_20' ) end [2025-01-08 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199754', 'tblTempVendorCDR_20' ) start [2025-01-08 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199754', 'tblTempVendorCDR_20' ) end [2025-01-08 04:21:19] Production.INFO: ProcessCDR(1,14199754,1,1,2) [2025-01-08 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199754', 'tblTempUsageDetail_20' ) start [2025-01-08 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199754', 'tblTempUsageDetail_20' ) end [2025-01-08 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:21:22] Production.INFO: ==25620== Releasing lock... [2025-01-08 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:22:05 [end_date_ymd] => 2025-01-08 04:22:05 [RateCDR] => 1 ) [2025-01-08 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:22:05' and `end` < '2025-01-08 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:22:19] Production.INFO: count ==128 [2025-01-08 04:22:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:22:05 - End Time 2025-01-08 04:22:05 [2025-01-08 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199759', 'tblTempUsageDetail_20' ) start [2025-01-08 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199759', 'tblTempUsageDetail_20' ) end [2025-01-08 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199759', 'tblTempVendorCDR_20' ) start [2025-01-08 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199759', 'tblTempVendorCDR_20' ) end [2025-01-08 04:22:19] Production.INFO: ProcessCDR(1,14199759,1,1,2) [2025-01-08 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199759', 'tblTempUsageDetail_20' ) start [2025-01-08 04:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199759', 'tblTempUsageDetail_20' ) end [2025-01-08 04:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:22:23] Production.INFO: ==25710== Releasing lock... [2025-01-08 04:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:22:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:23:05 [end_date_ymd] => 2025-01-08 04:23:05 [RateCDR] => 1 ) [2025-01-08 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:23:05' and `end` < '2025-01-08 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:23:18] Production.INFO: count ==128 [2025-01-08 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:23:05 - End Time 2025-01-08 04:23:05 [2025-01-08 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199764', 'tblTempUsageDetail_20' ) start [2025-01-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199764', 'tblTempUsageDetail_20' ) end [2025-01-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199764', 'tblTempVendorCDR_20' ) start [2025-01-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199764', 'tblTempVendorCDR_20' ) end [2025-01-08 04:23:18] Production.INFO: ProcessCDR(1,14199764,1,1,2) [2025-01-08 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199764', 'tblTempUsageDetail_20' ) start [2025-01-08 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199764', 'tblTempUsageDetail_20' ) end [2025-01-08 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:23:21] Production.INFO: ==25804== Releasing lock... [2025-01-08 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:24:05 [end_date_ymd] => 2025-01-08 04:24:05 [RateCDR] => 1 ) [2025-01-08 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:24:05' and `end` < '2025-01-08 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:24:18] Production.INFO: count ==128 [2025-01-08 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:24:05 - End Time 2025-01-08 04:24:05 [2025-01-08 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199769', 'tblTempUsageDetail_20' ) start [2025-01-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199769', 'tblTempUsageDetail_20' ) end [2025-01-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199769', 'tblTempVendorCDR_20' ) start [2025-01-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199769', 'tblTempVendorCDR_20' ) end [2025-01-08 04:24:18] Production.INFO: ProcessCDR(1,14199769,1,1,2) [2025-01-08 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199769', 'tblTempUsageDetail_20' ) start [2025-01-08 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199769', 'tblTempUsageDetail_20' ) end [2025-01-08 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:24:21] Production.INFO: ==25886== Releasing lock... [2025-01-08 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:25:05 [end_date_ymd] => 2025-01-08 04:25:05 [RateCDR] => 1 ) [2025-01-08 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:25:05' and `end` < '2025-01-08 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:25:19] Production.INFO: count ==128 [2025-01-08 04:25:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:25:05 - End Time 2025-01-08 04:25:05 [2025-01-08 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199774', 'tblTempUsageDetail_20' ) start [2025-01-08 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199774', 'tblTempUsageDetail_20' ) end [2025-01-08 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199774', 'tblTempVendorCDR_20' ) start [2025-01-08 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199774', 'tblTempVendorCDR_20' ) end [2025-01-08 04:25:19] Production.INFO: ProcessCDR(1,14199774,1,1,2) [2025-01-08 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199774', 'tblTempUsageDetail_20' ) start [2025-01-08 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199774', 'tblTempUsageDetail_20' ) end [2025-01-08 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:25:22] Production.INFO: ==25970== Releasing lock... [2025-01-08 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:25:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:26:05 [end_date_ymd] => 2025-01-08 04:26:05 [RateCDR] => 1 ) [2025-01-08 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:26:05' and `end` < '2025-01-08 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:26:19] Production.INFO: count ==126 [2025-01-08 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:26:05 - End Time 2025-01-08 04:26:05 [2025-01-08 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199779', 'tblTempUsageDetail_20' ) start [2025-01-08 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199779', 'tblTempUsageDetail_20' ) end [2025-01-08 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199779', 'tblTempVendorCDR_20' ) start [2025-01-08 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199779', 'tblTempVendorCDR_20' ) end [2025-01-08 04:26:19] Production.INFO: ProcessCDR(1,14199779,1,1,2) [2025-01-08 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199779', 'tblTempUsageDetail_20' ) start [2025-01-08 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199779', 'tblTempUsageDetail_20' ) end [2025-01-08 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:26:22] Production.INFO: ==26053== Releasing lock... [2025-01-08 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:27:06 [end_date_ymd] => 2025-01-08 04:27:06 [RateCDR] => 1 ) [2025-01-08 04:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:27:06' and `end` < '2025-01-08 04:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:27:19] Production.INFO: count ==123 [2025-01-08 04:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:27:06 - End Time 2025-01-08 04:27:06 [2025-01-08 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199784', 'tblTempUsageDetail_20' ) start [2025-01-08 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199784', 'tblTempUsageDetail_20' ) end [2025-01-08 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199784', 'tblTempVendorCDR_20' ) start [2025-01-08 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199784', 'tblTempVendorCDR_20' ) end [2025-01-08 04:27:19] Production.INFO: ProcessCDR(1,14199784,1,1,2) [2025-01-08 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199784', 'tblTempUsageDetail_20' ) start [2025-01-08 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199784', 'tblTempUsageDetail_20' ) end [2025-01-08 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:27:22] Production.INFO: ==26136== Releasing lock... [2025-01-08 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:28:05 [end_date_ymd] => 2025-01-08 04:28:05 [RateCDR] => 1 ) [2025-01-08 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:28:05' and `end` < '2025-01-08 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:28:18] Production.INFO: count ==121 [2025-01-08 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:28:05 - End Time 2025-01-08 04:28:05 [2025-01-08 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199789', 'tblTempUsageDetail_20' ) start [2025-01-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199789', 'tblTempUsageDetail_20' ) end [2025-01-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199789', 'tblTempVendorCDR_20' ) start [2025-01-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199789', 'tblTempVendorCDR_20' ) end [2025-01-08 04:28:18] Production.INFO: ProcessCDR(1,14199789,1,1,2) [2025-01-08 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199789', 'tblTempUsageDetail_20' ) start [2025-01-08 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199789', 'tblTempUsageDetail_20' ) end [2025-01-08 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:28:21] Production.INFO: ==26218== Releasing lock... [2025-01-08 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:29:05 [end_date_ymd] => 2025-01-08 04:29:05 [RateCDR] => 1 ) [2025-01-08 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:29:05' and `end` < '2025-01-08 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:29:19] Production.INFO: count ==121 [2025-01-08 04:29:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:29:05 - End Time 2025-01-08 04:29:05 [2025-01-08 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199794', 'tblTempUsageDetail_20' ) start [2025-01-08 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199794', 'tblTempUsageDetail_20' ) end [2025-01-08 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199794', 'tblTempVendorCDR_20' ) start [2025-01-08 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199794', 'tblTempVendorCDR_20' ) end [2025-01-08 04:29:19] Production.INFO: ProcessCDR(1,14199794,1,1,2) [2025-01-08 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199794', 'tblTempUsageDetail_20' ) start [2025-01-08 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199794', 'tblTempUsageDetail_20' ) end [2025-01-08 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:29:22] Production.INFO: ==26303== Releasing lock... [2025-01-08 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:30:06 [end_date_ymd] => 2025-01-08 04:30:06 [RateCDR] => 1 ) [2025-01-08 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:30:06' and `end` < '2025-01-08 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:30:19] Production.INFO: count ==120 [2025-01-08 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:30:06 - End Time 2025-01-08 04:30:06 [2025-01-08 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199801', 'tblTempUsageDetail_20' ) start [2025-01-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199801', 'tblTempUsageDetail_20' ) end [2025-01-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199801', 'tblTempVendorCDR_20' ) start [2025-01-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199801', 'tblTempVendorCDR_20' ) end [2025-01-08 04:30:19] Production.INFO: ProcessCDR(1,14199801,1,1,2) [2025-01-08 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199801', 'tblTempUsageDetail_20' ) start [2025-01-08 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199801', 'tblTempUsageDetail_20' ) end [2025-01-08 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:30:23] Production.INFO: ==26389== Releasing lock... [2025-01-08 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:30:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:31:05 [end_date_ymd] => 2025-01-08 04:31:05 [RateCDR] => 1 ) [2025-01-08 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:31:05' and `end` < '2025-01-08 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:31:17] Production.INFO: count ==121 [2025-01-08 04:31:17] Production.ERROR: pbx CDR StartTime 2025-01-08 01:31:05 - End Time 2025-01-08 04:31:05 [2025-01-08 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199806', 'tblTempUsageDetail_20' ) start [2025-01-08 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199806', 'tblTempUsageDetail_20' ) end [2025-01-08 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199806', 'tblTempVendorCDR_20' ) start [2025-01-08 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199806', 'tblTempVendorCDR_20' ) end [2025-01-08 04:31:17] Production.INFO: ProcessCDR(1,14199806,1,1,2) [2025-01-08 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199806', 'tblTempUsageDetail_20' ) start [2025-01-08 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199806', 'tblTempUsageDetail_20' ) end [2025-01-08 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:31:21] Production.INFO: ==26785== Releasing lock... [2025-01-08 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:32:04 [end_date_ymd] => 2025-01-08 04:32:04 [RateCDR] => 1 ) [2025-01-08 04:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:32:04' and `end` < '2025-01-08 04:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:32:18] Production.INFO: count ==121 [2025-01-08 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:32:04 - End Time 2025-01-08 04:32:04 [2025-01-08 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199811', 'tblTempUsageDetail_20' ) start [2025-01-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199811', 'tblTempUsageDetail_20' ) end [2025-01-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199811', 'tblTempVendorCDR_20' ) start [2025-01-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199811', 'tblTempVendorCDR_20' ) end [2025-01-08 04:32:18] Production.INFO: ProcessCDR(1,14199811,1,1,2) [2025-01-08 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199811', 'tblTempUsageDetail_20' ) start [2025-01-08 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199811', 'tblTempUsageDetail_20' ) end [2025-01-08 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:32:21] Production.INFO: ==26865== Releasing lock... [2025-01-08 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:33:05 [end_date_ymd] => 2025-01-08 04:33:05 [RateCDR] => 1 ) [2025-01-08 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:33:05' and `end` < '2025-01-08 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:33:17] Production.INFO: count ==120 [2025-01-08 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-08 01:33:05 - End Time 2025-01-08 04:33:05 [2025-01-08 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199816', 'tblTempUsageDetail_20' ) start [2025-01-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199816', 'tblTempUsageDetail_20' ) end [2025-01-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199816', 'tblTempVendorCDR_20' ) start [2025-01-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199816', 'tblTempVendorCDR_20' ) end [2025-01-08 04:33:17] Production.INFO: ProcessCDR(1,14199816,1,1,2) [2025-01-08 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199816', 'tblTempUsageDetail_20' ) start [2025-01-08 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199816', 'tblTempUsageDetail_20' ) end [2025-01-08 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:33:21] Production.INFO: ==26948== Releasing lock... [2025-01-08 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:34:05 [end_date_ymd] => 2025-01-08 04:34:05 [RateCDR] => 1 ) [2025-01-08 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:34:05' and `end` < '2025-01-08 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:34:18] Production.INFO: count ==120 [2025-01-08 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:34:05 - End Time 2025-01-08 04:34:05 [2025-01-08 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199821', 'tblTempUsageDetail_20' ) start [2025-01-08 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199821', 'tblTempUsageDetail_20' ) end [2025-01-08 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199821', 'tblTempVendorCDR_20' ) start [2025-01-08 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199821', 'tblTempVendorCDR_20' ) end [2025-01-08 04:34:18] Production.INFO: ProcessCDR(1,14199821,1,1,2) [2025-01-08 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199821', 'tblTempUsageDetail_20' ) start [2025-01-08 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199821', 'tblTempUsageDetail_20' ) end [2025-01-08 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:34:21] Production.INFO: ==27028== Releasing lock... [2025-01-08 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:35:05 [end_date_ymd] => 2025-01-08 04:35:05 [RateCDR] => 1 ) [2025-01-08 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:35:05' and `end` < '2025-01-08 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:35:18] Production.INFO: count ==118 [2025-01-08 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:35:05 - End Time 2025-01-08 04:35:05 [2025-01-08 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199826', 'tblTempUsageDetail_20' ) start [2025-01-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199826', 'tblTempUsageDetail_20' ) end [2025-01-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199826', 'tblTempVendorCDR_20' ) start [2025-01-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199826', 'tblTempVendorCDR_20' ) end [2025-01-08 04:35:18] Production.INFO: ProcessCDR(1,14199826,1,1,2) [2025-01-08 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199826', 'tblTempUsageDetail_20' ) start [2025-01-08 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199826', 'tblTempUsageDetail_20' ) end [2025-01-08 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:35:21] Production.INFO: ==27111== Releasing lock... [2025-01-08 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:36:05 [end_date_ymd] => 2025-01-08 04:36:05 [RateCDR] => 1 ) [2025-01-08 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:36:05' and `end` < '2025-01-08 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:36:18] Production.INFO: count ==118 [2025-01-08 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:36:05 - End Time 2025-01-08 04:36:05 [2025-01-08 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199831', 'tblTempUsageDetail_20' ) start [2025-01-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199831', 'tblTempUsageDetail_20' ) end [2025-01-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199831', 'tblTempVendorCDR_20' ) start [2025-01-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199831', 'tblTempVendorCDR_20' ) end [2025-01-08 04:36:18] Production.INFO: ProcessCDR(1,14199831,1,1,2) [2025-01-08 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199831', 'tblTempUsageDetail_20' ) start [2025-01-08 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199831', 'tblTempUsageDetail_20' ) end [2025-01-08 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:36:21] Production.INFO: ==27191== Releasing lock... [2025-01-08 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:37:04 [end_date_ymd] => 2025-01-08 04:37:04 [RateCDR] => 1 ) [2025-01-08 04:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:37:04' and `end` < '2025-01-08 04:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:37:17] Production.INFO: count ==118 [2025-01-08 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-08 01:37:04 - End Time 2025-01-08 04:37:04 [2025-01-08 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199836', 'tblTempUsageDetail_20' ) start [2025-01-08 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199836', 'tblTempUsageDetail_20' ) end [2025-01-08 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199836', 'tblTempVendorCDR_20' ) start [2025-01-08 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199836', 'tblTempVendorCDR_20' ) end [2025-01-08 04:37:17] Production.INFO: ProcessCDR(1,14199836,1,1,2) [2025-01-08 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199836', 'tblTempUsageDetail_20' ) start [2025-01-08 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199836', 'tblTempUsageDetail_20' ) end [2025-01-08 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:37:20] Production.INFO: ==27277== Releasing lock... [2025-01-08 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:37:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:38:05 [end_date_ymd] => 2025-01-08 04:38:05 [RateCDR] => 1 ) [2025-01-08 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:38:05' and `end` < '2025-01-08 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:38:18] Production.INFO: count ==118 [2025-01-08 04:38:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:38:05 - End Time 2025-01-08 04:38:05 [2025-01-08 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199841', 'tblTempUsageDetail_20' ) start [2025-01-08 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199841', 'tblTempUsageDetail_20' ) end [2025-01-08 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199841', 'tblTempVendorCDR_20' ) start [2025-01-08 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199841', 'tblTempVendorCDR_20' ) end [2025-01-08 04:38:19] Production.INFO: ProcessCDR(1,14199841,1,1,2) [2025-01-08 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199841', 'tblTempUsageDetail_20' ) start [2025-01-08 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199841', 'tblTempUsageDetail_20' ) end [2025-01-08 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:38:22] Production.INFO: ==27361== Releasing lock... [2025-01-08 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:39:04 [end_date_ymd] => 2025-01-08 04:39:04 [RateCDR] => 1 ) [2025-01-08 04:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:39:04' and `end` < '2025-01-08 04:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:39:18] Production.INFO: count ==118 [2025-01-08 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:39:04 - End Time 2025-01-08 04:39:04 [2025-01-08 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199846', 'tblTempUsageDetail_20' ) start [2025-01-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199846', 'tblTempUsageDetail_20' ) end [2025-01-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199846', 'tblTempVendorCDR_20' ) start [2025-01-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199846', 'tblTempVendorCDR_20' ) end [2025-01-08 04:39:18] Production.INFO: ProcessCDR(1,14199846,1,1,2) [2025-01-08 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199846', 'tblTempUsageDetail_20' ) start [2025-01-08 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199846', 'tblTempUsageDetail_20' ) end [2025-01-08 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:39:21] Production.INFO: ==27436== Releasing lock... [2025-01-08 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:40:06 [end_date_ymd] => 2025-01-08 04:40:06 [RateCDR] => 1 ) [2025-01-08 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:40:06' and `end` < '2025-01-08 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:40:19] Production.INFO: count ==112 [2025-01-08 04:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:40:06 - End Time 2025-01-08 04:40:06 [2025-01-08 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199852', 'tblTempUsageDetail_20' ) start [2025-01-08 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199852', 'tblTempUsageDetail_20' ) end [2025-01-08 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199852', 'tblTempVendorCDR_20' ) start [2025-01-08 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199852', 'tblTempVendorCDR_20' ) end [2025-01-08 04:40:19] Production.INFO: ProcessCDR(1,14199852,1,1,2) [2025-01-08 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199852', 'tblTempUsageDetail_20' ) start [2025-01-08 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199852', 'tblTempUsageDetail_20' ) end [2025-01-08 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:40:22] Production.INFO: ==27518== Releasing lock... [2025-01-08 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:41:04 [end_date_ymd] => 2025-01-08 04:41:04 [RateCDR] => 1 ) [2025-01-08 04:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:41:04' and `end` < '2025-01-08 04:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:41:18] Production.INFO: count ==108 [2025-01-08 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:41:04 - End Time 2025-01-08 04:41:04 [2025-01-08 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199857', 'tblTempUsageDetail_20' ) start [2025-01-08 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199857', 'tblTempUsageDetail_20' ) end [2025-01-08 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199857', 'tblTempVendorCDR_20' ) start [2025-01-08 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199857', 'tblTempVendorCDR_20' ) end [2025-01-08 04:41:18] Production.INFO: ProcessCDR(1,14199857,1,1,2) [2025-01-08 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199857', 'tblTempUsageDetail_20' ) start [2025-01-08 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199857', 'tblTempUsageDetail_20' ) end [2025-01-08 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:41:21] Production.INFO: ==27596== Releasing lock... [2025-01-08 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:42:05 [end_date_ymd] => 2025-01-08 04:42:05 [RateCDR] => 1 ) [2025-01-08 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:42:05' and `end` < '2025-01-08 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:42:19] Production.INFO: count ==108 [2025-01-08 04:42:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:42:05 - End Time 2025-01-08 04:42:05 [2025-01-08 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199862', 'tblTempUsageDetail_20' ) start [2025-01-08 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199862', 'tblTempUsageDetail_20' ) end [2025-01-08 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199862', 'tblTempVendorCDR_20' ) start [2025-01-08 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199862', 'tblTempVendorCDR_20' ) end [2025-01-08 04:42:19] Production.INFO: ProcessCDR(1,14199862,1,1,2) [2025-01-08 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199862', 'tblTempUsageDetail_20' ) start [2025-01-08 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199862', 'tblTempUsageDetail_20' ) end [2025-01-08 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:42:22] Production.INFO: ==27668== Releasing lock... [2025-01-08 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:43:05 [end_date_ymd] => 2025-01-08 04:43:05 [RateCDR] => 1 ) [2025-01-08 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:43:05' and `end` < '2025-01-08 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:43:18] Production.INFO: count ==108 [2025-01-08 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:43:05 - End Time 2025-01-08 04:43:05 [2025-01-08 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199867', 'tblTempUsageDetail_20' ) start [2025-01-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199867', 'tblTempUsageDetail_20' ) end [2025-01-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199867', 'tblTempVendorCDR_20' ) start [2025-01-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199867', 'tblTempVendorCDR_20' ) end [2025-01-08 04:43:18] Production.INFO: ProcessCDR(1,14199867,1,1,2) [2025-01-08 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199867', 'tblTempUsageDetail_20' ) start [2025-01-08 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199867', 'tblTempUsageDetail_20' ) end [2025-01-08 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:43:21] Production.INFO: ==27743== Releasing lock... [2025-01-08 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:44:05 [end_date_ymd] => 2025-01-08 04:44:05 [RateCDR] => 1 ) [2025-01-08 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:44:05' and `end` < '2025-01-08 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:44:17] Production.INFO: count ==108 [2025-01-08 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:44:05 - End Time 2025-01-08 04:44:05 [2025-01-08 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199872', 'tblTempUsageDetail_20' ) start [2025-01-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199872', 'tblTempUsageDetail_20' ) end [2025-01-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199872', 'tblTempVendorCDR_20' ) start [2025-01-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199872', 'tblTempVendorCDR_20' ) end [2025-01-08 04:44:18] Production.INFO: ProcessCDR(1,14199872,1,1,2) [2025-01-08 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199872', 'tblTempUsageDetail_20' ) start [2025-01-08 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199872', 'tblTempUsageDetail_20' ) end [2025-01-08 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:44:21] Production.INFO: ==27819== Releasing lock... [2025-01-08 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:45:05 [end_date_ymd] => 2025-01-08 04:45:05 [RateCDR] => 1 ) [2025-01-08 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:45:05' and `end` < '2025-01-08 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:45:18] Production.INFO: count ==108 [2025-01-08 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 01:45:05 - End Time 2025-01-08 04:45:05 [2025-01-08 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199877', 'tblTempUsageDetail_20' ) start [2025-01-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199877', 'tblTempUsageDetail_20' ) end [2025-01-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199877', 'tblTempVendorCDR_20' ) start [2025-01-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199877', 'tblTempVendorCDR_20' ) end [2025-01-08 04:45:18] Production.INFO: ProcessCDR(1,14199877,1,1,2) [2025-01-08 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199877', 'tblTempUsageDetail_20' ) start [2025-01-08 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199877', 'tblTempUsageDetail_20' ) end [2025-01-08 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:45:21] Production.INFO: ==27890== Releasing lock... [2025-01-08 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:46:05 [end_date_ymd] => 2025-01-08 04:46:05 [RateCDR] => 1 ) [2025-01-08 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:46:05' and `end` < '2025-01-08 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:47:00] Production.INFO: count ==108 [2025-01-08 04:47:00] Production.ERROR: pbx CDR StartTime 2025-01-08 01:46:05 - End Time 2025-01-08 04:46:05 [2025-01-08 04:47:00] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:47:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199882', 'tblTempUsageDetail_20' ) start [2025-01-08 04:47:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199882', 'tblTempUsageDetail_20' ) end [2025-01-08 04:47:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199882', 'tblTempVendorCDR_20' ) start [2025-01-08 04:47:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199882', 'tblTempVendorCDR_20' ) end [2025-01-08 04:47:00] Production.INFO: ProcessCDR(1,14199882,1,1,2) [2025-01-08 04:47:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:47:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:47:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:47:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:47:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199882', 'tblTempUsageDetail_20' ) start [2025-01-08 04:47:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199882', 'tblTempUsageDetail_20' ) end [2025-01-08 04:47:06] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:47:06] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:47:06] Production.INFO: ==28002== Releasing lock... [2025-01-08 04:47:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:47:06] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:48:05 [end_date_ymd] => 2025-01-08 04:48:05 [RateCDR] => 1 ) [2025-01-08 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:48:05' and `end` < '2025-01-08 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:48:23] Production.INFO: count ==108 [2025-01-08 04:48:23] Production.ERROR: pbx CDR StartTime 2025-01-08 01:48:05 - End Time 2025-01-08 04:48:05 [2025-01-08 04:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199891', 'tblTempUsageDetail_20' ) start [2025-01-08 04:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199891', 'tblTempUsageDetail_20' ) end [2025-01-08 04:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199891', 'tblTempVendorCDR_20' ) start [2025-01-08 04:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199891', 'tblTempVendorCDR_20' ) end [2025-01-08 04:48:23] Production.INFO: ProcessCDR(1,14199891,1,1,2) [2025-01-08 04:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199891', 'tblTempUsageDetail_20' ) start [2025-01-08 04:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199891', 'tblTempUsageDetail_20' ) end [2025-01-08 04:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:48:26] Production.INFO: ==28145== Releasing lock... [2025-01-08 04:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:48:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:49:05 [end_date_ymd] => 2025-01-08 04:49:05 [RateCDR] => 1 ) [2025-01-08 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:49:05' and `end` < '2025-01-08 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:49:20] Production.INFO: count ==108 [2025-01-08 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-08 01:49:05 - End Time 2025-01-08 04:49:05 [2025-01-08 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199896', 'tblTempUsageDetail_20' ) start [2025-01-08 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199896', 'tblTempUsageDetail_20' ) end [2025-01-08 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199896', 'tblTempVendorCDR_20' ) start [2025-01-08 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199896', 'tblTempVendorCDR_20' ) end [2025-01-08 04:49:20] Production.INFO: ProcessCDR(1,14199896,1,1,2) [2025-01-08 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199896', 'tblTempUsageDetail_20' ) start [2025-01-08 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199896', 'tblTempUsageDetail_20' ) end [2025-01-08 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:49:23] Production.INFO: ==28218== Releasing lock... [2025-01-08 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:49:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:50:06 [end_date_ymd] => 2025-01-08 04:50:06 [RateCDR] => 1 ) [2025-01-08 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:50:06' and `end` < '2025-01-08 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:50:22] Production.INFO: count ==108 [2025-01-08 04:50:22] Production.ERROR: pbx CDR StartTime 2025-01-08 01:50:06 - End Time 2025-01-08 04:50:06 [2025-01-08 04:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199902', 'tblTempUsageDetail_20' ) start [2025-01-08 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199902', 'tblTempUsageDetail_20' ) end [2025-01-08 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199902', 'tblTempVendorCDR_20' ) start [2025-01-08 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199902', 'tblTempVendorCDR_20' ) end [2025-01-08 04:50:22] Production.INFO: ProcessCDR(1,14199902,1,1,2) [2025-01-08 04:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199902', 'tblTempUsageDetail_20' ) start [2025-01-08 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199902', 'tblTempUsageDetail_20' ) end [2025-01-08 04:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:50:25] Production.INFO: ==28295== Releasing lock... [2025-01-08 04:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:50:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:51:05 [end_date_ymd] => 2025-01-08 04:51:05 [RateCDR] => 1 ) [2025-01-08 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:51:05' and `end` < '2025-01-08 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:51:22] Production.INFO: count ==108 [2025-01-08 04:51:22] Production.ERROR: pbx CDR StartTime 2025-01-08 01:51:05 - End Time 2025-01-08 04:51:05 [2025-01-08 04:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199907', 'tblTempUsageDetail_20' ) start [2025-01-08 04:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199907', 'tblTempUsageDetail_20' ) end [2025-01-08 04:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199907', 'tblTempVendorCDR_20' ) start [2025-01-08 04:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199907', 'tblTempVendorCDR_20' ) end [2025-01-08 04:51:22] Production.INFO: ProcessCDR(1,14199907,1,1,2) [2025-01-08 04:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199907', 'tblTempUsageDetail_20' ) start [2025-01-08 04:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199907', 'tblTempUsageDetail_20' ) end [2025-01-08 04:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:51:26] Production.INFO: ==28372== Releasing lock... [2025-01-08 04:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:51:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:52:05 [end_date_ymd] => 2025-01-08 04:52:05 [RateCDR] => 1 ) [2025-01-08 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:52:05' and `end` < '2025-01-08 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:52:21] Production.INFO: count ==108 [2025-01-08 04:52:21] Production.ERROR: pbx CDR StartTime 2025-01-08 01:52:05 - End Time 2025-01-08 04:52:05 [2025-01-08 04:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199912', 'tblTempUsageDetail_20' ) start [2025-01-08 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199912', 'tblTempUsageDetail_20' ) end [2025-01-08 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199912', 'tblTempVendorCDR_20' ) start [2025-01-08 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199912', 'tblTempVendorCDR_20' ) end [2025-01-08 04:52:21] Production.INFO: ProcessCDR(1,14199912,1,1,2) [2025-01-08 04:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199912', 'tblTempUsageDetail_20' ) start [2025-01-08 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199912', 'tblTempUsageDetail_20' ) end [2025-01-08 04:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:52:24] Production.INFO: ==28447== Releasing lock... [2025-01-08 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:52:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:53:04 [end_date_ymd] => 2025-01-08 04:53:04 [RateCDR] => 1 ) [2025-01-08 04:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:53:04' and `end` < '2025-01-08 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:53:21] Production.INFO: count ==108 [2025-01-08 04:53:21] Production.ERROR: pbx CDR StartTime 2025-01-08 01:53:04 - End Time 2025-01-08 04:53:04 [2025-01-08 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199917', 'tblTempUsageDetail_20' ) start [2025-01-08 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199917', 'tblTempUsageDetail_20' ) end [2025-01-08 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199917', 'tblTempVendorCDR_20' ) start [2025-01-08 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199917', 'tblTempVendorCDR_20' ) end [2025-01-08 04:53:21] Production.INFO: ProcessCDR(1,14199917,1,1,2) [2025-01-08 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199917', 'tblTempUsageDetail_20' ) start [2025-01-08 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199917', 'tblTempUsageDetail_20' ) end [2025-01-08 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:53:24] Production.INFO: ==28521== Releasing lock... [2025-01-08 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:53:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:54:04 [end_date_ymd] => 2025-01-08 04:54:04 [RateCDR] => 1 ) [2025-01-08 04:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:54:04' and `end` < '2025-01-08 04:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:54:19] Production.INFO: count ==107 [2025-01-08 04:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 01:54:04 - End Time 2025-01-08 04:54:04 [2025-01-08 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199922', 'tblTempUsageDetail_20' ) start [2025-01-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199922', 'tblTempUsageDetail_20' ) end [2025-01-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199922', 'tblTempVendorCDR_20' ) start [2025-01-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199922', 'tblTempVendorCDR_20' ) end [2025-01-08 04:54:19] Production.INFO: ProcessCDR(1,14199922,1,1,2) [2025-01-08 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199922', 'tblTempUsageDetail_20' ) start [2025-01-08 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199922', 'tblTempUsageDetail_20' ) end [2025-01-08 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:54:23] Production.INFO: ==28593== Releasing lock... [2025-01-08 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:54:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:55:05 [end_date_ymd] => 2025-01-08 04:55:05 [RateCDR] => 1 ) [2025-01-08 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:55:05' and `end` < '2025-01-08 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:55:21] Production.INFO: count ==107 [2025-01-08 04:55:21] Production.ERROR: pbx CDR StartTime 2025-01-08 01:55:05 - End Time 2025-01-08 04:55:05 [2025-01-08 04:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199927', 'tblTempUsageDetail_20' ) start [2025-01-08 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199927', 'tblTempUsageDetail_20' ) end [2025-01-08 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199927', 'tblTempVendorCDR_20' ) start [2025-01-08 04:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199927', 'tblTempVendorCDR_20' ) end [2025-01-08 04:55:21] Production.INFO: ProcessCDR(1,14199927,1,1,2) [2025-01-08 04:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199927', 'tblTempUsageDetail_20' ) start [2025-01-08 04:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199927', 'tblTempUsageDetail_20' ) end [2025-01-08 04:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:55:25] Production.INFO: ==28667== Releasing lock... [2025-01-08 04:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:55:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:56:05 [end_date_ymd] => 2025-01-08 04:56:05 [RateCDR] => 1 ) [2025-01-08 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:56:05' and `end` < '2025-01-08 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:56:24] Production.INFO: count ==107 [2025-01-08 04:56:24] Production.ERROR: pbx CDR StartTime 2025-01-08 01:56:05 - End Time 2025-01-08 04:56:05 [2025-01-08 04:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199932', 'tblTempUsageDetail_20' ) start [2025-01-08 04:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199932', 'tblTempUsageDetail_20' ) end [2025-01-08 04:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199932', 'tblTempVendorCDR_20' ) start [2025-01-08 04:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199932', 'tblTempVendorCDR_20' ) end [2025-01-08 04:56:24] Production.INFO: ProcessCDR(1,14199932,1,1,2) [2025-01-08 04:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199932', 'tblTempUsageDetail_20' ) start [2025-01-08 04:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199932', 'tblTempUsageDetail_20' ) end [2025-01-08 04:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:56:27] Production.INFO: ==28740== Releasing lock... [2025-01-08 04:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:56:27] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:57:05 [end_date_ymd] => 2025-01-08 04:57:05 [RateCDR] => 1 ) [2025-01-08 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:57:05' and `end` < '2025-01-08 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:57:20] Production.INFO: count ==107 [2025-01-08 04:57:20] Production.ERROR: pbx CDR StartTime 2025-01-08 01:57:05 - End Time 2025-01-08 04:57:05 [2025-01-08 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199937', 'tblTempUsageDetail_20' ) start [2025-01-08 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199937', 'tblTempUsageDetail_20' ) end [2025-01-08 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199937', 'tblTempVendorCDR_20' ) start [2025-01-08 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199937', 'tblTempVendorCDR_20' ) end [2025-01-08 04:57:20] Production.INFO: ProcessCDR(1,14199937,1,1,2) [2025-01-08 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199937', 'tblTempUsageDetail_20' ) start [2025-01-08 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199937', 'tblTempUsageDetail_20' ) end [2025-01-08 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:57:23] Production.INFO: ==28812== Releasing lock... [2025-01-08 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:57:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:58:05 [end_date_ymd] => 2025-01-08 04:58:05 [RateCDR] => 1 ) [2025-01-08 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:58:05' and `end` < '2025-01-08 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:58:20] Production.INFO: count ==107 [2025-01-08 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-08 01:58:05 - End Time 2025-01-08 04:58:05 [2025-01-08 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199942', 'tblTempUsageDetail_20' ) start [2025-01-08 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199942', 'tblTempUsageDetail_20' ) end [2025-01-08 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199942', 'tblTempVendorCDR_20' ) start [2025-01-08 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199942', 'tblTempVendorCDR_20' ) end [2025-01-08 04:58:20] Production.INFO: ProcessCDR(1,14199942,1,1,2) [2025-01-08 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199942', 'tblTempUsageDetail_20' ) start [2025-01-08 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199942', 'tblTempUsageDetail_20' ) end [2025-01-08 04:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:58:24] Production.INFO: ==28893== Releasing lock... [2025-01-08 04:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:58:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 01:59:04 [end_date_ymd] => 2025-01-08 04:59:04 [RateCDR] => 1 ) [2025-01-08 04:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 01:59:04' and `end` < '2025-01-08 04:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 04:59:21] Production.INFO: count ==107 [2025-01-08 04:59:21] Production.ERROR: pbx CDR StartTime 2025-01-08 01:59:04 - End Time 2025-01-08 04:59:04 [2025-01-08 04:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199947', 'tblTempUsageDetail_20' ) start [2025-01-08 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199947', 'tblTempUsageDetail_20' ) end [2025-01-08 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199947', 'tblTempVendorCDR_20' ) start [2025-01-08 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199947', 'tblTempVendorCDR_20' ) end [2025-01-08 04:59:21] Production.INFO: ProcessCDR(1,14199947,1,1,2) [2025-01-08 04:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 04:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 04:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199947', 'tblTempUsageDetail_20' ) start [2025-01-08 04:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199947', 'tblTempUsageDetail_20' ) end [2025-01-08 04:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 04:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 04:59:25] Production.INFO: ==28967== Releasing lock... [2025-01-08 04:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 04:59:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:00:06 [end_date_ymd] => 2025-01-08 05:00:06 [RateCDR] => 1 ) [2025-01-08 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:00:06' and `end` < '2025-01-08 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:00:23] Production.INFO: count ==98 [2025-01-08 05:00:23] Production.ERROR: pbx CDR StartTime 2025-01-08 02:00:06 - End Time 2025-01-08 05:00:06 [2025-01-08 05:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199953', 'tblTempUsageDetail_20' ) start [2025-01-08 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199953', 'tblTempUsageDetail_20' ) end [2025-01-08 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199953', 'tblTempVendorCDR_20' ) start [2025-01-08 05:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199953', 'tblTempVendorCDR_20' ) end [2025-01-08 05:00:23] Production.INFO: ProcessCDR(1,14199953,1,1,2) [2025-01-08 05:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199953', 'tblTempUsageDetail_20' ) start [2025-01-08 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199953', 'tblTempUsageDetail_20' ) end [2025-01-08 05:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:00:26] Production.INFO: ==29043== Releasing lock... [2025-01-08 05:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:00:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:01:05 [end_date_ymd] => 2025-01-08 05:01:05 [RateCDR] => 1 ) [2025-01-08 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:01:05' and `end` < '2025-01-08 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:01:20] Production.INFO: count ==94 [2025-01-08 05:01:20] Production.ERROR: pbx CDR StartTime 2025-01-08 02:01:05 - End Time 2025-01-08 05:01:05 [2025-01-08 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199958', 'tblTempUsageDetail_20' ) start [2025-01-08 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199958', 'tblTempUsageDetail_20' ) end [2025-01-08 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199958', 'tblTempVendorCDR_20' ) start [2025-01-08 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199958', 'tblTempVendorCDR_20' ) end [2025-01-08 05:01:20] Production.INFO: ProcessCDR(1,14199958,1,1,2) [2025-01-08 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199958', 'tblTempUsageDetail_20' ) start [2025-01-08 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199958', 'tblTempUsageDetail_20' ) end [2025-01-08 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:01:23] Production.INFO: ==29132== Releasing lock... [2025-01-08 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:02:05 [end_date_ymd] => 2025-01-08 05:02:05 [RateCDR] => 1 ) [2025-01-08 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:02:05' and `end` < '2025-01-08 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:02:21] Production.INFO: count ==92 [2025-01-08 05:02:21] Production.ERROR: pbx CDR StartTime 2025-01-08 02:02:05 - End Time 2025-01-08 05:02:05 [2025-01-08 05:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199963', 'tblTempUsageDetail_20' ) start [2025-01-08 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199963', 'tblTempUsageDetail_20' ) end [2025-01-08 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199963', 'tblTempVendorCDR_20' ) start [2025-01-08 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199963', 'tblTempVendorCDR_20' ) end [2025-01-08 05:02:21] Production.INFO: ProcessCDR(1,14199963,1,1,2) [2025-01-08 05:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199963', 'tblTempUsageDetail_20' ) start [2025-01-08 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199963', 'tblTempUsageDetail_20' ) end [2025-01-08 05:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:02:24] Production.INFO: ==29244== Releasing lock... [2025-01-08 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:02:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:03:05 [end_date_ymd] => 2025-01-08 05:03:05 [RateCDR] => 1 ) [2025-01-08 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:03:05' and `end` < '2025-01-08 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:03:20] Production.INFO: count ==92 [2025-01-08 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-08 02:03:05 - End Time 2025-01-08 05:03:05 [2025-01-08 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199968', 'tblTempUsageDetail_20' ) start [2025-01-08 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199968', 'tblTempUsageDetail_20' ) end [2025-01-08 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199968', 'tblTempVendorCDR_20' ) start [2025-01-08 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199968', 'tblTempVendorCDR_20' ) end [2025-01-08 05:03:20] Production.INFO: ProcessCDR(1,14199968,1,1,2) [2025-01-08 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199968', 'tblTempUsageDetail_20' ) start [2025-01-08 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199968', 'tblTempUsageDetail_20' ) end [2025-01-08 05:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:03:24] Production.INFO: ==29316== Releasing lock... [2025-01-08 05:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:03:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:04:05 [end_date_ymd] => 2025-01-08 05:04:05 [RateCDR] => 1 ) [2025-01-08 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:04:05' and `end` < '2025-01-08 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:04:18] Production.INFO: count ==92 [2025-01-08 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:04:05 - End Time 2025-01-08 05:04:05 [2025-01-08 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199973', 'tblTempUsageDetail_20' ) start [2025-01-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199973', 'tblTempUsageDetail_20' ) end [2025-01-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199973', 'tblTempVendorCDR_20' ) start [2025-01-08 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199973', 'tblTempVendorCDR_20' ) end [2025-01-08 05:04:18] Production.INFO: ProcessCDR(1,14199973,1,1,2) [2025-01-08 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199973', 'tblTempUsageDetail_20' ) start [2025-01-08 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199973', 'tblTempUsageDetail_20' ) end [2025-01-08 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:04:21] Production.INFO: ==29389== Releasing lock... [2025-01-08 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:05:05 [end_date_ymd] => 2025-01-08 05:05:05 [RateCDR] => 1 ) [2025-01-08 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:05:05' and `end` < '2025-01-08 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:05:18] Production.INFO: count ==92 [2025-01-08 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:05:05 - End Time 2025-01-08 05:05:05 [2025-01-08 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199978', 'tblTempUsageDetail_20' ) start [2025-01-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199978', 'tblTempUsageDetail_20' ) end [2025-01-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199978', 'tblTempVendorCDR_20' ) start [2025-01-08 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199978', 'tblTempVendorCDR_20' ) end [2025-01-08 05:05:18] Production.INFO: ProcessCDR(1,14199978,1,1,2) [2025-01-08 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199978', 'tblTempUsageDetail_20' ) start [2025-01-08 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199978', 'tblTempUsageDetail_20' ) end [2025-01-08 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:05:21] Production.INFO: ==29461== Releasing lock... [2025-01-08 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:06:05 [end_date_ymd] => 2025-01-08 05:06:05 [RateCDR] => 1 ) [2025-01-08 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:06:05' and `end` < '2025-01-08 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:06:19] Production.INFO: count ==92 [2025-01-08 05:06:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:06:05 - End Time 2025-01-08 05:06:05 [2025-01-08 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199983', 'tblTempUsageDetail_20' ) start [2025-01-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199983', 'tblTempUsageDetail_20' ) end [2025-01-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199983', 'tblTempVendorCDR_20' ) start [2025-01-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199983', 'tblTempVendorCDR_20' ) end [2025-01-08 05:06:19] Production.INFO: ProcessCDR(1,14199983,1,1,2) [2025-01-08 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199983', 'tblTempUsageDetail_20' ) start [2025-01-08 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199983', 'tblTempUsageDetail_20' ) end [2025-01-08 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:06:22] Production.INFO: ==29540== Releasing lock... [2025-01-08 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:07:05 [end_date_ymd] => 2025-01-08 05:07:05 [RateCDR] => 1 ) [2025-01-08 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:07:05' and `end` < '2025-01-08 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:07:21] Production.INFO: count ==92 [2025-01-08 05:07:21] Production.ERROR: pbx CDR StartTime 2025-01-08 02:07:05 - End Time 2025-01-08 05:07:05 [2025-01-08 05:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199988', 'tblTempUsageDetail_20' ) start [2025-01-08 05:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199988', 'tblTempUsageDetail_20' ) end [2025-01-08 05:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199988', 'tblTempVendorCDR_20' ) start [2025-01-08 05:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199988', 'tblTempVendorCDR_20' ) end [2025-01-08 05:07:21] Production.INFO: ProcessCDR(1,14199988,1,1,2) [2025-01-08 05:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199988', 'tblTempUsageDetail_20' ) start [2025-01-08 05:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199988', 'tblTempUsageDetail_20' ) end [2025-01-08 05:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:07:24] Production.INFO: ==29613== Releasing lock... [2025-01-08 05:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:07:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:08:05 [end_date_ymd] => 2025-01-08 05:08:05 [RateCDR] => 1 ) [2025-01-08 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:08:05' and `end` < '2025-01-08 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:08:33] Production.INFO: count ==91 [2025-01-08 05:08:33] Production.ERROR: pbx CDR StartTime 2025-01-08 02:08:05 - End Time 2025-01-08 05:08:05 [2025-01-08 05:08:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199993', 'tblTempUsageDetail_20' ) start [2025-01-08 05:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199993', 'tblTempUsageDetail_20' ) end [2025-01-08 05:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199993', 'tblTempVendorCDR_20' ) start [2025-01-08 05:08:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199993', 'tblTempVendorCDR_20' ) end [2025-01-08 05:08:33] Production.INFO: ProcessCDR(1,14199993,1,1,2) [2025-01-08 05:08:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:08:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199993', 'tblTempUsageDetail_20' ) start [2025-01-08 05:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199993', 'tblTempUsageDetail_20' ) end [2025-01-08 05:08:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:08:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:08:36] Production.INFO: ==29685== Releasing lock... [2025-01-08 05:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:08:36] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:09:05 [end_date_ymd] => 2025-01-08 05:09:05 [RateCDR] => 1 ) [2025-01-08 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:09:05' and `end` < '2025-01-08 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:09:20] Production.INFO: count ==89 [2025-01-08 05:09:20] Production.ERROR: pbx CDR StartTime 2025-01-08 02:09:05 - End Time 2025-01-08 05:09:05 [2025-01-08 05:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199998', 'tblTempUsageDetail_20' ) start [2025-01-08 05:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14199998', 'tblTempUsageDetail_20' ) end [2025-01-08 05:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199998', 'tblTempVendorCDR_20' ) start [2025-01-08 05:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14199998', 'tblTempVendorCDR_20' ) end [2025-01-08 05:09:20] Production.INFO: ProcessCDR(1,14199998,1,1,2) [2025-01-08 05:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14199998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14199998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14199998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14199998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199998', 'tblTempUsageDetail_20' ) start [2025-01-08 05:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14199998', 'tblTempUsageDetail_20' ) end [2025-01-08 05:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:09:23] Production.INFO: ==29759== Releasing lock... [2025-01-08 05:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:09:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:10:05 [end_date_ymd] => 2025-01-08 05:10:05 [RateCDR] => 1 ) [2025-01-08 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:10:05' and `end` < '2025-01-08 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:10:18] Production.INFO: count ==84 [2025-01-08 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:10:05 - End Time 2025-01-08 05:10:05 [2025-01-08 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200003', 'tblTempUsageDetail_20' ) start [2025-01-08 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200003', 'tblTempUsageDetail_20' ) end [2025-01-08 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200003', 'tblTempVendorCDR_20' ) start [2025-01-08 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200003', 'tblTempVendorCDR_20' ) end [2025-01-08 05:10:18] Production.INFO: ProcessCDR(1,14200003,1,1,2) [2025-01-08 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200003', 'tblTempUsageDetail_20' ) start [2025-01-08 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200003', 'tblTempUsageDetail_20' ) end [2025-01-08 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:10:21] Production.INFO: ==29834== Releasing lock... [2025-01-08 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:11:05 [end_date_ymd] => 2025-01-08 05:11:05 [RateCDR] => 1 ) [2025-01-08 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:11:05' and `end` < '2025-01-08 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:11:20] Production.INFO: count ==81 [2025-01-08 05:11:20] Production.ERROR: pbx CDR StartTime 2025-01-08 02:11:05 - End Time 2025-01-08 05:11:05 [2025-01-08 05:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200009', 'tblTempUsageDetail_20' ) start [2025-01-08 05:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200009', 'tblTempUsageDetail_20' ) end [2025-01-08 05:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200009', 'tblTempVendorCDR_20' ) start [2025-01-08 05:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200009', 'tblTempVendorCDR_20' ) end [2025-01-08 05:11:20] Production.INFO: ProcessCDR(1,14200009,1,1,2) [2025-01-08 05:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200009', 'tblTempUsageDetail_20' ) start [2025-01-08 05:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200009', 'tblTempUsageDetail_20' ) end [2025-01-08 05:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:11:23] Production.INFO: ==29913== Releasing lock... [2025-01-08 05:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:12:04 [end_date_ymd] => 2025-01-08 05:12:04 [RateCDR] => 1 ) [2025-01-08 05:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:12:04' and `end` < '2025-01-08 05:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:12:17] Production.INFO: count ==81 [2025-01-08 05:12:17] Production.ERROR: pbx CDR StartTime 2025-01-08 02:12:04 - End Time 2025-01-08 05:12:04 [2025-01-08 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200014', 'tblTempUsageDetail_20' ) start [2025-01-08 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200014', 'tblTempUsageDetail_20' ) end [2025-01-08 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200014', 'tblTempVendorCDR_20' ) start [2025-01-08 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200014', 'tblTempVendorCDR_20' ) end [2025-01-08 05:12:17] Production.INFO: ProcessCDR(1,14200014,1,1,2) [2025-01-08 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200014', 'tblTempUsageDetail_20' ) start [2025-01-08 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200014', 'tblTempUsageDetail_20' ) end [2025-01-08 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:12:20] Production.INFO: ==29988== Releasing lock... [2025-01-08 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:12:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:13:05 [end_date_ymd] => 2025-01-08 05:13:05 [RateCDR] => 1 ) [2025-01-08 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:13:05' and `end` < '2025-01-08 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:13:18] Production.INFO: count ==81 [2025-01-08 05:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:13:05 - End Time 2025-01-08 05:13:05 [2025-01-08 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200019', 'tblTempUsageDetail_20' ) start [2025-01-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200019', 'tblTempUsageDetail_20' ) end [2025-01-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200019', 'tblTempVendorCDR_20' ) start [2025-01-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200019', 'tblTempVendorCDR_20' ) end [2025-01-08 05:13:18] Production.INFO: ProcessCDR(1,14200019,1,1,2) [2025-01-08 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200019', 'tblTempUsageDetail_20' ) start [2025-01-08 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200019', 'tblTempUsageDetail_20' ) end [2025-01-08 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:13:21] Production.INFO: ==30060== Releasing lock... [2025-01-08 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:14:05 [end_date_ymd] => 2025-01-08 05:14:05 [RateCDR] => 1 ) [2025-01-08 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:14:05' and `end` < '2025-01-08 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:14:19] Production.INFO: count ==81 [2025-01-08 05:14:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:14:05 - End Time 2025-01-08 05:14:05 [2025-01-08 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200024', 'tblTempUsageDetail_20' ) start [2025-01-08 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200024', 'tblTempUsageDetail_20' ) end [2025-01-08 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200024', 'tblTempVendorCDR_20' ) start [2025-01-08 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200024', 'tblTempVendorCDR_20' ) end [2025-01-08 05:14:19] Production.INFO: ProcessCDR(1,14200024,1,1,2) [2025-01-08 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200024', 'tblTempUsageDetail_20' ) start [2025-01-08 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200024', 'tblTempUsageDetail_20' ) end [2025-01-08 05:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:14:23] Production.INFO: ==30133== Releasing lock... [2025-01-08 05:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:15:05 [end_date_ymd] => 2025-01-08 05:15:05 [RateCDR] => 1 ) [2025-01-08 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:15:05' and `end` < '2025-01-08 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:15:20] Production.INFO: count ==82 [2025-01-08 05:15:20] Production.ERROR: pbx CDR StartTime 2025-01-08 02:15:05 - End Time 2025-01-08 05:15:05 [2025-01-08 05:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200029', 'tblTempUsageDetail_20' ) start [2025-01-08 05:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200029', 'tblTempUsageDetail_20' ) end [2025-01-08 05:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200029', 'tblTempVendorCDR_20' ) start [2025-01-08 05:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200029', 'tblTempVendorCDR_20' ) end [2025-01-08 05:15:20] Production.INFO: ProcessCDR(1,14200029,1,1,2) [2025-01-08 05:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200029', 'tblTempUsageDetail_20' ) start [2025-01-08 05:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200029', 'tblTempUsageDetail_20' ) end [2025-01-08 05:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:15:25] Production.INFO: ==30204== Releasing lock... [2025-01-08 05:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:15:25] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:16:05 [end_date_ymd] => 2025-01-08 05:16:05 [RateCDR] => 1 ) [2025-01-08 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:16:05' and `end` < '2025-01-08 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:16:18] Production.INFO: count ==82 [2025-01-08 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:16:05 - End Time 2025-01-08 05:16:05 [2025-01-08 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200034', 'tblTempUsageDetail_20' ) start [2025-01-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200034', 'tblTempUsageDetail_20' ) end [2025-01-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200034', 'tblTempVendorCDR_20' ) start [2025-01-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200034', 'tblTempVendorCDR_20' ) end [2025-01-08 05:16:18] Production.INFO: ProcessCDR(1,14200034,1,1,2) [2025-01-08 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200034', 'tblTempUsageDetail_20' ) start [2025-01-08 05:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200034', 'tblTempUsageDetail_20' ) end [2025-01-08 05:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:16:23] Production.INFO: ==30275== Releasing lock... [2025-01-08 05:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:16:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:17:05 [end_date_ymd] => 2025-01-08 05:17:05 [RateCDR] => 1 ) [2025-01-08 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:17:05' and `end` < '2025-01-08 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:17:18] Production.INFO: count ==82 [2025-01-08 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:17:05 - End Time 2025-01-08 05:17:05 [2025-01-08 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200039', 'tblTempUsageDetail_20' ) start [2025-01-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200039', 'tblTempUsageDetail_20' ) end [2025-01-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200039', 'tblTempVendorCDR_20' ) start [2025-01-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200039', 'tblTempVendorCDR_20' ) end [2025-01-08 05:17:18] Production.INFO: ProcessCDR(1,14200039,1,1,2) [2025-01-08 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200039', 'tblTempUsageDetail_20' ) start [2025-01-08 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200039', 'tblTempUsageDetail_20' ) end [2025-01-08 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:17:21] Production.INFO: ==30343== Releasing lock... [2025-01-08 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:18:05 [end_date_ymd] => 2025-01-08 05:18:05 [RateCDR] => 1 ) [2025-01-08 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:18:05' and `end` < '2025-01-08 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:18:18] Production.INFO: count ==82 [2025-01-08 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:18:05 - End Time 2025-01-08 05:18:05 [2025-01-08 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200044', 'tblTempUsageDetail_20' ) start [2025-01-08 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200044', 'tblTempUsageDetail_20' ) end [2025-01-08 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200044', 'tblTempVendorCDR_20' ) start [2025-01-08 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200044', 'tblTempVendorCDR_20' ) end [2025-01-08 05:18:18] Production.INFO: ProcessCDR(1,14200044,1,1,2) [2025-01-08 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200044', 'tblTempUsageDetail_20' ) start [2025-01-08 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200044', 'tblTempUsageDetail_20' ) end [2025-01-08 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:18:21] Production.INFO: ==30454== Releasing lock... [2025-01-08 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:19:05 [end_date_ymd] => 2025-01-08 05:19:05 [RateCDR] => 1 ) [2025-01-08 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:19:05' and `end` < '2025-01-08 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:19:19] Production.INFO: count ==82 [2025-01-08 05:19:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:19:05 - End Time 2025-01-08 05:19:05 [2025-01-08 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200049', 'tblTempUsageDetail_20' ) start [2025-01-08 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200049', 'tblTempUsageDetail_20' ) end [2025-01-08 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200049', 'tblTempVendorCDR_20' ) start [2025-01-08 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200049', 'tblTempVendorCDR_20' ) end [2025-01-08 05:19:19] Production.INFO: ProcessCDR(1,14200049,1,1,2) [2025-01-08 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200049', 'tblTempUsageDetail_20' ) start [2025-01-08 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200049', 'tblTempUsageDetail_20' ) end [2025-01-08 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:19:22] Production.INFO: ==30525== Releasing lock... [2025-01-08 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:19:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:20:06 [end_date_ymd] => 2025-01-08 05:20:06 [RateCDR] => 1 ) [2025-01-08 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:20:06' and `end` < '2025-01-08 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:20:19] Production.INFO: count ==76 [2025-01-08 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:20:06 - End Time 2025-01-08 05:20:06 [2025-01-08 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200055', 'tblTempUsageDetail_20' ) start [2025-01-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200055', 'tblTempUsageDetail_20' ) end [2025-01-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200055', 'tblTempVendorCDR_20' ) start [2025-01-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200055', 'tblTempVendorCDR_20' ) end [2025-01-08 05:20:19] Production.INFO: ProcessCDR(1,14200055,1,1,2) [2025-01-08 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200055', 'tblTempUsageDetail_20' ) start [2025-01-08 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200055', 'tblTempUsageDetail_20' ) end [2025-01-08 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:20:22] Production.INFO: ==30599== Releasing lock... [2025-01-08 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:21:05 [end_date_ymd] => 2025-01-08 05:21:05 [RateCDR] => 1 ) [2025-01-08 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:21:05' and `end` < '2025-01-08 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:21:19] Production.INFO: count ==72 [2025-01-08 05:21:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:21:05 - End Time 2025-01-08 05:21:05 [2025-01-08 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200060', 'tblTempUsageDetail_20' ) start [2025-01-08 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200060', 'tblTempUsageDetail_20' ) end [2025-01-08 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200060', 'tblTempVendorCDR_20' ) start [2025-01-08 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200060', 'tblTempVendorCDR_20' ) end [2025-01-08 05:21:19] Production.INFO: ProcessCDR(1,14200060,1,1,2) [2025-01-08 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200060', 'tblTempUsageDetail_20' ) start [2025-01-08 05:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200060', 'tblTempUsageDetail_20' ) end [2025-01-08 05:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:21:23] Production.INFO: ==30673== Releasing lock... [2025-01-08 05:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:21:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:22:05 [end_date_ymd] => 2025-01-08 05:22:05 [RateCDR] => 1 ) [2025-01-08 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:22:05' and `end` < '2025-01-08 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:22:19] Production.INFO: count ==72 [2025-01-08 05:22:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:22:05 - End Time 2025-01-08 05:22:05 [2025-01-08 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200065', 'tblTempUsageDetail_20' ) start [2025-01-08 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200065', 'tblTempUsageDetail_20' ) end [2025-01-08 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200065', 'tblTempVendorCDR_20' ) start [2025-01-08 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200065', 'tblTempVendorCDR_20' ) end [2025-01-08 05:22:19] Production.INFO: ProcessCDR(1,14200065,1,1,2) [2025-01-08 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200065', 'tblTempUsageDetail_20' ) start [2025-01-08 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200065', 'tblTempUsageDetail_20' ) end [2025-01-08 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:22:22] Production.INFO: ==30744== Releasing lock... [2025-01-08 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:23:04 [end_date_ymd] => 2025-01-08 05:23:04 [RateCDR] => 1 ) [2025-01-08 05:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:23:04' and `end` < '2025-01-08 05:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:23:18] Production.INFO: count ==72 [2025-01-08 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:23:04 - End Time 2025-01-08 05:23:04 [2025-01-08 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200070', 'tblTempUsageDetail_20' ) start [2025-01-08 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200070', 'tblTempUsageDetail_20' ) end [2025-01-08 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200070', 'tblTempVendorCDR_20' ) start [2025-01-08 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200070', 'tblTempVendorCDR_20' ) end [2025-01-08 05:23:18] Production.INFO: ProcessCDR(1,14200070,1,1,2) [2025-01-08 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200070', 'tblTempUsageDetail_20' ) start [2025-01-08 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200070', 'tblTempUsageDetail_20' ) end [2025-01-08 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:23:21] Production.INFO: ==30813== Releasing lock... [2025-01-08 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:24:05 [end_date_ymd] => 2025-01-08 05:24:05 [RateCDR] => 1 ) [2025-01-08 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:24:05' and `end` < '2025-01-08 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:24:18] Production.INFO: count ==72 [2025-01-08 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:24:05 - End Time 2025-01-08 05:24:05 [2025-01-08 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200075', 'tblTempUsageDetail_20' ) start [2025-01-08 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200075', 'tblTempUsageDetail_20' ) end [2025-01-08 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200075', 'tblTempVendorCDR_20' ) start [2025-01-08 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200075', 'tblTempVendorCDR_20' ) end [2025-01-08 05:24:18] Production.INFO: ProcessCDR(1,14200075,1,1,2) [2025-01-08 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200075', 'tblTempUsageDetail_20' ) start [2025-01-08 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200075', 'tblTempUsageDetail_20' ) end [2025-01-08 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:24:22] Production.INFO: ==30886== Releasing lock... [2025-01-08 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:24:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:25:05 [end_date_ymd] => 2025-01-08 05:25:05 [RateCDR] => 1 ) [2025-01-08 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:25:05' and `end` < '2025-01-08 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:25:18] Production.INFO: count ==72 [2025-01-08 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:25:05 - End Time 2025-01-08 05:25:05 [2025-01-08 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200080', 'tblTempUsageDetail_20' ) start [2025-01-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200080', 'tblTempUsageDetail_20' ) end [2025-01-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200080', 'tblTempVendorCDR_20' ) start [2025-01-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200080', 'tblTempVendorCDR_20' ) end [2025-01-08 05:25:18] Production.INFO: ProcessCDR(1,14200080,1,1,2) [2025-01-08 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200080', 'tblTempUsageDetail_20' ) start [2025-01-08 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200080', 'tblTempUsageDetail_20' ) end [2025-01-08 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:25:21] Production.INFO: ==30963== Releasing lock... [2025-01-08 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:26:05 [end_date_ymd] => 2025-01-08 05:26:05 [RateCDR] => 1 ) [2025-01-08 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:26:05' and `end` < '2025-01-08 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:26:19] Production.INFO: count ==72 [2025-01-08 05:26:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:26:05 - End Time 2025-01-08 05:26:05 [2025-01-08 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200085', 'tblTempUsageDetail_20' ) start [2025-01-08 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200085', 'tblTempUsageDetail_20' ) end [2025-01-08 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200085', 'tblTempVendorCDR_20' ) start [2025-01-08 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200085', 'tblTempVendorCDR_20' ) end [2025-01-08 05:26:19] Production.INFO: ProcessCDR(1,14200085,1,1,2) [2025-01-08 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200085', 'tblTempUsageDetail_20' ) start [2025-01-08 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200085', 'tblTempUsageDetail_20' ) end [2025-01-08 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:26:22] Production.INFO: ==31039== Releasing lock... [2025-01-08 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:27:05 [end_date_ymd] => 2025-01-08 05:27:05 [RateCDR] => 1 ) [2025-01-08 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:27:05' and `end` < '2025-01-08 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:27:19] Production.INFO: count ==72 [2025-01-08 05:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:27:05 - End Time 2025-01-08 05:27:05 [2025-01-08 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200090', 'tblTempUsageDetail_20' ) start [2025-01-08 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200090', 'tblTempUsageDetail_20' ) end [2025-01-08 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200090', 'tblTempVendorCDR_20' ) start [2025-01-08 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200090', 'tblTempVendorCDR_20' ) end [2025-01-08 05:27:19] Production.INFO: ProcessCDR(1,14200090,1,1,2) [2025-01-08 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200090', 'tblTempUsageDetail_20' ) start [2025-01-08 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200090', 'tblTempUsageDetail_20' ) end [2025-01-08 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:27:22] Production.INFO: ==31118== Releasing lock... [2025-01-08 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:28:05 [end_date_ymd] => 2025-01-08 05:28:05 [RateCDR] => 1 ) [2025-01-08 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:28:05' and `end` < '2025-01-08 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:28:19] Production.INFO: count ==72 [2025-01-08 05:28:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:28:05 - End Time 2025-01-08 05:28:05 [2025-01-08 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200095', 'tblTempUsageDetail_20' ) start [2025-01-08 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200095', 'tblTempUsageDetail_20' ) end [2025-01-08 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200095', 'tblTempVendorCDR_20' ) start [2025-01-08 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200095', 'tblTempVendorCDR_20' ) end [2025-01-08 05:28:19] Production.INFO: ProcessCDR(1,14200095,1,1,2) [2025-01-08 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200095', 'tblTempUsageDetail_20' ) start [2025-01-08 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200095', 'tblTempUsageDetail_20' ) end [2025-01-08 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:28:22] Production.INFO: ==31200== Releasing lock... [2025-01-08 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:29:05 [end_date_ymd] => 2025-01-08 05:29:05 [RateCDR] => 1 ) [2025-01-08 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:29:05' and `end` < '2025-01-08 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:29:18] Production.INFO: count ==72 [2025-01-08 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:29:05 - End Time 2025-01-08 05:29:05 [2025-01-08 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200100', 'tblTempUsageDetail_20' ) start [2025-01-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200100', 'tblTempUsageDetail_20' ) end [2025-01-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200100', 'tblTempVendorCDR_20' ) start [2025-01-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200100', 'tblTempVendorCDR_20' ) end [2025-01-08 05:29:18] Production.INFO: ProcessCDR(1,14200100,1,1,2) [2025-01-08 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200100', 'tblTempUsageDetail_20' ) start [2025-01-08 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200100', 'tblTempUsageDetail_20' ) end [2025-01-08 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:29:22] Production.INFO: ==31269== Releasing lock... [2025-01-08 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:29:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:30:06 [end_date_ymd] => 2025-01-08 05:30:06 [RateCDR] => 1 ) [2025-01-08 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:30:06' and `end` < '2025-01-08 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:30:19] Production.INFO: count ==66 [2025-01-08 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:30:06 - End Time 2025-01-08 05:30:06 [2025-01-08 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200106', 'tblTempUsageDetail_20' ) start [2025-01-08 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200106', 'tblTempUsageDetail_20' ) end [2025-01-08 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200106', 'tblTempVendorCDR_20' ) start [2025-01-08 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200106', 'tblTempVendorCDR_20' ) end [2025-01-08 05:30:19] Production.INFO: ProcessCDR(1,14200106,1,1,2) [2025-01-08 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200106', 'tblTempUsageDetail_20' ) start [2025-01-08 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200106', 'tblTempUsageDetail_20' ) end [2025-01-08 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:30:22] Production.INFO: ==31343== Releasing lock... [2025-01-08 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:31:05 [end_date_ymd] => 2025-01-08 05:31:05 [RateCDR] => 1 ) [2025-01-08 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:31:05' and `end` < '2025-01-08 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:31:18] Production.INFO: count ==65 [2025-01-08 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:31:05 - End Time 2025-01-08 05:31:05 [2025-01-08 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200111', 'tblTempUsageDetail_20' ) start [2025-01-08 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200111', 'tblTempUsageDetail_20' ) end [2025-01-08 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200111', 'tblTempVendorCDR_20' ) start [2025-01-08 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200111', 'tblTempVendorCDR_20' ) end [2025-01-08 05:31:18] Production.INFO: ProcessCDR(1,14200111,1,1,2) [2025-01-08 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200111', 'tblTempUsageDetail_20' ) start [2025-01-08 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200111', 'tblTempUsageDetail_20' ) end [2025-01-08 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:31:22] Production.INFO: ==31420== Releasing lock... [2025-01-08 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:31:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:32:05 [end_date_ymd] => 2025-01-08 05:32:05 [RateCDR] => 1 ) [2025-01-08 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:32:05' and `end` < '2025-01-08 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:32:19] Production.INFO: count ==65 [2025-01-08 05:32:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:32:05 - End Time 2025-01-08 05:32:05 [2025-01-08 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200116', 'tblTempUsageDetail_20' ) start [2025-01-08 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200116', 'tblTempUsageDetail_20' ) end [2025-01-08 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200116', 'tblTempVendorCDR_20' ) start [2025-01-08 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200116', 'tblTempVendorCDR_20' ) end [2025-01-08 05:32:19] Production.INFO: ProcessCDR(1,14200116,1,1,2) [2025-01-08 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200116', 'tblTempUsageDetail_20' ) start [2025-01-08 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200116', 'tblTempUsageDetail_20' ) end [2025-01-08 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:32:22] Production.INFO: ==31492== Releasing lock... [2025-01-08 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:33:05 [end_date_ymd] => 2025-01-08 05:33:05 [RateCDR] => 1 ) [2025-01-08 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:33:05' and `end` < '2025-01-08 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:33:17] Production.INFO: count ==65 [2025-01-08 05:33:17] Production.ERROR: pbx CDR StartTime 2025-01-08 02:33:05 - End Time 2025-01-08 05:33:05 [2025-01-08 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200121', 'tblTempUsageDetail_20' ) start [2025-01-08 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200121', 'tblTempUsageDetail_20' ) end [2025-01-08 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200121', 'tblTempVendorCDR_20' ) start [2025-01-08 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200121', 'tblTempVendorCDR_20' ) end [2025-01-08 05:33:17] Production.INFO: ProcessCDR(1,14200121,1,1,2) [2025-01-08 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200121', 'tblTempUsageDetail_20' ) start [2025-01-08 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200121', 'tblTempUsageDetail_20' ) end [2025-01-08 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:33:21] Production.INFO: ==31600== Releasing lock... [2025-01-08 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:34:05 [end_date_ymd] => 2025-01-08 05:34:05 [RateCDR] => 1 ) [2025-01-08 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:34:05' and `end` < '2025-01-08 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:34:18] Production.INFO: count ==65 [2025-01-08 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:34:05 - End Time 2025-01-08 05:34:05 [2025-01-08 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200126', 'tblTempUsageDetail_20' ) start [2025-01-08 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200126', 'tblTempUsageDetail_20' ) end [2025-01-08 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200126', 'tblTempVendorCDR_20' ) start [2025-01-08 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200126', 'tblTempVendorCDR_20' ) end [2025-01-08 05:34:18] Production.INFO: ProcessCDR(1,14200126,1,1,2) [2025-01-08 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200126', 'tblTempUsageDetail_20' ) start [2025-01-08 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200126', 'tblTempUsageDetail_20' ) end [2025-01-08 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:34:21] Production.INFO: ==31671== Releasing lock... [2025-01-08 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:35:04 [end_date_ymd] => 2025-01-08 05:35:04 [RateCDR] => 1 ) [2025-01-08 05:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:35:04' and `end` < '2025-01-08 05:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:35:17] Production.INFO: count ==65 [2025-01-08 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-08 02:35:04 - End Time 2025-01-08 05:35:04 [2025-01-08 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200131', 'tblTempUsageDetail_20' ) start [2025-01-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200131', 'tblTempUsageDetail_20' ) end [2025-01-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200131', 'tblTempVendorCDR_20' ) start [2025-01-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200131', 'tblTempVendorCDR_20' ) end [2025-01-08 05:35:17] Production.INFO: ProcessCDR(1,14200131,1,1,2) [2025-01-08 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200131', 'tblTempUsageDetail_20' ) start [2025-01-08 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200131', 'tblTempUsageDetail_20' ) end [2025-01-08 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:35:20] Production.INFO: ==31762== Releasing lock... [2025-01-08 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:36:05 [end_date_ymd] => 2025-01-08 05:36:05 [RateCDR] => 1 ) [2025-01-08 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:36:05' and `end` < '2025-01-08 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:36:20] Production.INFO: count ==65 [2025-01-08 05:36:20] Production.ERROR: pbx CDR StartTime 2025-01-08 02:36:05 - End Time 2025-01-08 05:36:05 [2025-01-08 05:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200136', 'tblTempUsageDetail_20' ) start [2025-01-08 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200136', 'tblTempUsageDetail_20' ) end [2025-01-08 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200136', 'tblTempVendorCDR_20' ) start [2025-01-08 05:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200136', 'tblTempVendorCDR_20' ) end [2025-01-08 05:36:20] Production.INFO: ProcessCDR(1,14200136,1,1,2) [2025-01-08 05:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200136', 'tblTempUsageDetail_20' ) start [2025-01-08 05:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200136', 'tblTempUsageDetail_20' ) end [2025-01-08 05:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:36:23] Production.INFO: ==31843== Releasing lock... [2025-01-08 05:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:36:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:37:05 [end_date_ymd] => 2025-01-08 05:37:05 [RateCDR] => 1 ) [2025-01-08 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:37:05' and `end` < '2025-01-08 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:37:20] Production.INFO: count ==65 [2025-01-08 05:37:20] Production.ERROR: pbx CDR StartTime 2025-01-08 02:37:05 - End Time 2025-01-08 05:37:05 [2025-01-08 05:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200141', 'tblTempUsageDetail_20' ) start [2025-01-08 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200141', 'tblTempUsageDetail_20' ) end [2025-01-08 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200141', 'tblTempVendorCDR_20' ) start [2025-01-08 05:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200141', 'tblTempVendorCDR_20' ) end [2025-01-08 05:37:20] Production.INFO: ProcessCDR(1,14200141,1,1,2) [2025-01-08 05:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200141', 'tblTempUsageDetail_20' ) start [2025-01-08 05:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200141', 'tblTempUsageDetail_20' ) end [2025-01-08 05:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:37:23] Production.INFO: ==31929== Releasing lock... [2025-01-08 05:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:37:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:38:05 [end_date_ymd] => 2025-01-08 05:38:05 [RateCDR] => 1 ) [2025-01-08 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:38:05' and `end` < '2025-01-08 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:38:19] Production.INFO: count ==65 [2025-01-08 05:38:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:38:05 - End Time 2025-01-08 05:38:05 [2025-01-08 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200146', 'tblTempUsageDetail_20' ) start [2025-01-08 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200146', 'tblTempUsageDetail_20' ) end [2025-01-08 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200146', 'tblTempVendorCDR_20' ) start [2025-01-08 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200146', 'tblTempVendorCDR_20' ) end [2025-01-08 05:38:19] Production.INFO: ProcessCDR(1,14200146,1,1,2) [2025-01-08 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200146', 'tblTempUsageDetail_20' ) start [2025-01-08 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200146', 'tblTempUsageDetail_20' ) end [2025-01-08 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:38:22] Production.INFO: ==32018== Releasing lock... [2025-01-08 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:38:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:39:04 [end_date_ymd] => 2025-01-08 05:39:04 [RateCDR] => 1 ) [2025-01-08 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:39:04' and `end` < '2025-01-08 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:39:18] Production.INFO: count ==65 [2025-01-08 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:39:04 - End Time 2025-01-08 05:39:04 [2025-01-08 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200151', 'tblTempUsageDetail_20' ) start [2025-01-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200151', 'tblTempUsageDetail_20' ) end [2025-01-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200151', 'tblTempVendorCDR_20' ) start [2025-01-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200151', 'tblTempVendorCDR_20' ) end [2025-01-08 05:39:18] Production.INFO: ProcessCDR(1,14200151,1,1,2) [2025-01-08 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200151', 'tblTempUsageDetail_20' ) start [2025-01-08 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200151', 'tblTempUsageDetail_20' ) end [2025-01-08 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:39:21] Production.INFO: ==32110== Releasing lock... [2025-01-08 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:40:06 [end_date_ymd] => 2025-01-08 05:40:06 [RateCDR] => 1 ) [2025-01-08 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:40:06' and `end` < '2025-01-08 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:40:19] Production.INFO: count ==63 [2025-01-08 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:40:06 - End Time 2025-01-08 05:40:06 [2025-01-08 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200157', 'tblTempUsageDetail_20' ) start [2025-01-08 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200157', 'tblTempUsageDetail_20' ) end [2025-01-08 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200157', 'tblTempVendorCDR_20' ) start [2025-01-08 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200157', 'tblTempVendorCDR_20' ) end [2025-01-08 05:40:19] Production.INFO: ProcessCDR(1,14200157,1,1,2) [2025-01-08 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200157', 'tblTempUsageDetail_20' ) start [2025-01-08 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200157', 'tblTempUsageDetail_20' ) end [2025-01-08 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:40:22] Production.INFO: ==32206== Releasing lock... [2025-01-08 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:41:05 [end_date_ymd] => 2025-01-08 05:41:05 [RateCDR] => 1 ) [2025-01-08 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:41:05' and `end` < '2025-01-08 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:41:21] Production.INFO: count ==58 [2025-01-08 05:41:21] Production.ERROR: pbx CDR StartTime 2025-01-08 02:41:05 - End Time 2025-01-08 05:41:05 [2025-01-08 05:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200162', 'tblTempUsageDetail_20' ) start [2025-01-08 05:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200162', 'tblTempUsageDetail_20' ) end [2025-01-08 05:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200162', 'tblTempVendorCDR_20' ) start [2025-01-08 05:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200162', 'tblTempVendorCDR_20' ) end [2025-01-08 05:41:21] Production.INFO: ProcessCDR(1,14200162,1,1,2) [2025-01-08 05:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200162', 'tblTempUsageDetail_20' ) start [2025-01-08 05:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200162', 'tblTempUsageDetail_20' ) end [2025-01-08 05:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:41:25] Production.INFO: ==32290== Releasing lock... [2025-01-08 05:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:41:25] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:42:04 [end_date_ymd] => 2025-01-08 05:42:04 [RateCDR] => 1 ) [2025-01-08 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:42:04' and `end` < '2025-01-08 05:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:42:18] Production.INFO: count ==58 [2025-01-08 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:42:04 - End Time 2025-01-08 05:42:04 [2025-01-08 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200167', 'tblTempUsageDetail_20' ) start [2025-01-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200167', 'tblTempUsageDetail_20' ) end [2025-01-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200167', 'tblTempVendorCDR_20' ) start [2025-01-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200167', 'tblTempVendorCDR_20' ) end [2025-01-08 05:42:18] Production.INFO: ProcessCDR(1,14200167,1,1,2) [2025-01-08 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200167', 'tblTempUsageDetail_20' ) start [2025-01-08 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200167', 'tblTempUsageDetail_20' ) end [2025-01-08 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:42:22] Production.INFO: ==32384== Releasing lock... [2025-01-08 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:43:05 [end_date_ymd] => 2025-01-08 05:43:05 [RateCDR] => 1 ) [2025-01-08 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:43:05' and `end` < '2025-01-08 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:43:18] Production.INFO: count ==58 [2025-01-08 05:43:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:43:05 - End Time 2025-01-08 05:43:05 [2025-01-08 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200172', 'tblTempUsageDetail_20' ) start [2025-01-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200172', 'tblTempUsageDetail_20' ) end [2025-01-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200172', 'tblTempVendorCDR_20' ) start [2025-01-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200172', 'tblTempVendorCDR_20' ) end [2025-01-08 05:43:18] Production.INFO: ProcessCDR(1,14200172,1,1,2) [2025-01-08 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200172', 'tblTempUsageDetail_20' ) start [2025-01-08 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200172', 'tblTempUsageDetail_20' ) end [2025-01-08 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:43:21] Production.INFO: ==32469== Releasing lock... [2025-01-08 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:44:04 [end_date_ymd] => 2025-01-08 05:44:04 [RateCDR] => 1 ) [2025-01-08 05:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:44:04' and `end` < '2025-01-08 05:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:44:17] Production.INFO: count ==58 [2025-01-08 05:44:17] Production.ERROR: pbx CDR StartTime 2025-01-08 02:44:04 - End Time 2025-01-08 05:44:04 [2025-01-08 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200175', 'tblTempUsageDetail_20' ) start [2025-01-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200175', 'tblTempUsageDetail_20' ) end [2025-01-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200175', 'tblTempVendorCDR_20' ) start [2025-01-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200175', 'tblTempVendorCDR_20' ) end [2025-01-08 05:44:17] Production.INFO: ProcessCDR(1,14200175,1,1,2) [2025-01-08 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200175', 'tblTempUsageDetail_20' ) start [2025-01-08 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200175', 'tblTempUsageDetail_20' ) end [2025-01-08 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:44:20] Production.INFO: ==32559== Releasing lock... [2025-01-08 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:44:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:45:05 [end_date_ymd] => 2025-01-08 05:45:05 [RateCDR] => 1 ) [2025-01-08 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:45:05' and `end` < '2025-01-08 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:45:18] Production.INFO: count ==58 [2025-01-08 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:45:05 - End Time 2025-01-08 05:45:05 [2025-01-08 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200182', 'tblTempUsageDetail_20' ) start [2025-01-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200182', 'tblTempUsageDetail_20' ) end [2025-01-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200182', 'tblTempVendorCDR_20' ) start [2025-01-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200182', 'tblTempVendorCDR_20' ) end [2025-01-08 05:45:18] Production.INFO: ProcessCDR(1,14200182,1,1,2) [2025-01-08 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200182', 'tblTempUsageDetail_20' ) start [2025-01-08 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200182', 'tblTempUsageDetail_20' ) end [2025-01-08 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:45:21] Production.INFO: ==32646== Releasing lock... [2025-01-08 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:46:04 [end_date_ymd] => 2025-01-08 05:46:04 [RateCDR] => 1 ) [2025-01-08 05:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:46:04' and `end` < '2025-01-08 05:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:46:17] Production.INFO: count ==58 [2025-01-08 05:46:17] Production.ERROR: pbx CDR StartTime 2025-01-08 02:46:04 - End Time 2025-01-08 05:46:04 [2025-01-08 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200187', 'tblTempUsageDetail_20' ) start [2025-01-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200187', 'tblTempUsageDetail_20' ) end [2025-01-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200187', 'tblTempVendorCDR_20' ) start [2025-01-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200187', 'tblTempVendorCDR_20' ) end [2025-01-08 05:46:17] Production.INFO: ProcessCDR(1,14200187,1,1,2) [2025-01-08 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200187', 'tblTempUsageDetail_20' ) start [2025-01-08 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200187', 'tblTempUsageDetail_20' ) end [2025-01-08 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:46:20] Production.INFO: ==32732== Releasing lock... [2025-01-08 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:46:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:47:05 [end_date_ymd] => 2025-01-08 05:47:05 [RateCDR] => 1 ) [2025-01-08 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:47:05' and `end` < '2025-01-08 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:47:17] Production.INFO: count ==58 [2025-01-08 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-08 02:47:05 - End Time 2025-01-08 05:47:05 [2025-01-08 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200192', 'tblTempUsageDetail_20' ) start [2025-01-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200192', 'tblTempUsageDetail_20' ) end [2025-01-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200192', 'tblTempVendorCDR_20' ) start [2025-01-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200192', 'tblTempVendorCDR_20' ) end [2025-01-08 05:47:17] Production.INFO: ProcessCDR(1,14200192,1,1,2) [2025-01-08 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200192', 'tblTempUsageDetail_20' ) start [2025-01-08 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200192', 'tblTempUsageDetail_20' ) end [2025-01-08 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:47:20] Production.INFO: ==372== Releasing lock... [2025-01-08 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:47:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:48:06 [end_date_ymd] => 2025-01-08 05:48:06 [RateCDR] => 1 ) [2025-01-08 05:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:48:06' and `end` < '2025-01-08 05:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:48:20] Production.INFO: count ==58 [2025-01-08 05:48:20] Production.ERROR: pbx CDR StartTime 2025-01-08 02:48:06 - End Time 2025-01-08 05:48:06 [2025-01-08 05:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200197', 'tblTempUsageDetail_20' ) start [2025-01-08 05:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200197', 'tblTempUsageDetail_20' ) end [2025-01-08 05:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200197', 'tblTempVendorCDR_20' ) start [2025-01-08 05:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200197', 'tblTempVendorCDR_20' ) end [2025-01-08 05:48:20] Production.INFO: ProcessCDR(1,14200197,1,1,2) [2025-01-08 05:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200197', 'tblTempUsageDetail_20' ) start [2025-01-08 05:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200197', 'tblTempUsageDetail_20' ) end [2025-01-08 05:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:48:23] Production.INFO: ==459== Releasing lock... [2025-01-08 05:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:48:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:49:05 [end_date_ymd] => 2025-01-08 05:49:05 [RateCDR] => 1 ) [2025-01-08 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:49:05' and `end` < '2025-01-08 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:49:18] Production.INFO: count ==58 [2025-01-08 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:49:05 - End Time 2025-01-08 05:49:05 [2025-01-08 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200202', 'tblTempUsageDetail_20' ) start [2025-01-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200202', 'tblTempUsageDetail_20' ) end [2025-01-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200202', 'tblTempVendorCDR_20' ) start [2025-01-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200202', 'tblTempVendorCDR_20' ) end [2025-01-08 05:49:18] Production.INFO: ProcessCDR(1,14200202,1,1,2) [2025-01-08 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200202', 'tblTempUsageDetail_20' ) start [2025-01-08 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200202', 'tblTempUsageDetail_20' ) end [2025-01-08 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:49:21] Production.INFO: ==598== Releasing lock... [2025-01-08 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:49:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:50:06 [end_date_ymd] => 2025-01-08 05:50:06 [RateCDR] => 1 ) [2025-01-08 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:50:06' and `end` < '2025-01-08 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:50:19] Production.INFO: count ==56 [2025-01-08 05:50:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:50:06 - End Time 2025-01-08 05:50:06 [2025-01-08 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200208', 'tblTempUsageDetail_20' ) start [2025-01-08 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200208', 'tblTempUsageDetail_20' ) end [2025-01-08 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200208', 'tblTempVendorCDR_20' ) start [2025-01-08 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200208', 'tblTempVendorCDR_20' ) end [2025-01-08 05:50:19] Production.INFO: ProcessCDR(1,14200208,1,1,2) [2025-01-08 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200208', 'tblTempUsageDetail_20' ) start [2025-01-08 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200208', 'tblTempUsageDetail_20' ) end [2025-01-08 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:50:22] Production.INFO: ==716== Releasing lock... [2025-01-08 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:51:05 [end_date_ymd] => 2025-01-08 05:51:05 [RateCDR] => 1 ) [2025-01-08 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:51:05' and `end` < '2025-01-08 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:51:19] Production.INFO: count ==56 [2025-01-08 05:51:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:51:05 - End Time 2025-01-08 05:51:05 [2025-01-08 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200213', 'tblTempUsageDetail_20' ) start [2025-01-08 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200213', 'tblTempUsageDetail_20' ) end [2025-01-08 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200213', 'tblTempVendorCDR_20' ) start [2025-01-08 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200213', 'tblTempVendorCDR_20' ) end [2025-01-08 05:51:19] Production.INFO: ProcessCDR(1,14200213,1,1,2) [2025-01-08 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200213', 'tblTempUsageDetail_20' ) start [2025-01-08 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200213', 'tblTempUsageDetail_20' ) end [2025-01-08 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:51:23] Production.INFO: ==816== Releasing lock... [2025-01-08 05:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:51:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:52:05 [end_date_ymd] => 2025-01-08 05:52:05 [RateCDR] => 1 ) [2025-01-08 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:52:05' and `end` < '2025-01-08 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:52:19] Production.INFO: count ==56 [2025-01-08 05:52:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:52:05 - End Time 2025-01-08 05:52:05 [2025-01-08 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200218', 'tblTempUsageDetail_20' ) start [2025-01-08 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200218', 'tblTempUsageDetail_20' ) end [2025-01-08 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200218', 'tblTempVendorCDR_20' ) start [2025-01-08 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200218', 'tblTempVendorCDR_20' ) end [2025-01-08 05:52:19] Production.INFO: ProcessCDR(1,14200218,1,1,2) [2025-01-08 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200218', 'tblTempUsageDetail_20' ) start [2025-01-08 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200218', 'tblTempUsageDetail_20' ) end [2025-01-08 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:52:22] Production.INFO: ==904== Releasing lock... [2025-01-08 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:52:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:53:04 [end_date_ymd] => 2025-01-08 05:53:04 [RateCDR] => 1 ) [2025-01-08 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:53:04' and `end` < '2025-01-08 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:53:19] Production.INFO: count ==56 [2025-01-08 05:53:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:53:04 - End Time 2025-01-08 05:53:04 [2025-01-08 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200223', 'tblTempUsageDetail_20' ) start [2025-01-08 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200223', 'tblTempUsageDetail_20' ) end [2025-01-08 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200223', 'tblTempVendorCDR_20' ) start [2025-01-08 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200223', 'tblTempVendorCDR_20' ) end [2025-01-08 05:53:19] Production.INFO: ProcessCDR(1,14200223,1,1,2) [2025-01-08 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200223', 'tblTempUsageDetail_20' ) start [2025-01-08 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200223', 'tblTempUsageDetail_20' ) end [2025-01-08 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:53:22] Production.INFO: ==992== Releasing lock... [2025-01-08 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:53:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:54:05 [end_date_ymd] => 2025-01-08 05:54:05 [RateCDR] => 1 ) [2025-01-08 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:54:05' and `end` < '2025-01-08 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:54:19] Production.INFO: count ==56 [2025-01-08 05:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 02:54:05 - End Time 2025-01-08 05:54:05 [2025-01-08 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200228', 'tblTempUsageDetail_20' ) start [2025-01-08 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200228', 'tblTempUsageDetail_20' ) end [2025-01-08 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200228', 'tblTempVendorCDR_20' ) start [2025-01-08 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200228', 'tblTempVendorCDR_20' ) end [2025-01-08 05:54:19] Production.INFO: ProcessCDR(1,14200228,1,1,2) [2025-01-08 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200228', 'tblTempUsageDetail_20' ) start [2025-01-08 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200228', 'tblTempUsageDetail_20' ) end [2025-01-08 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:54:22] Production.INFO: ==1081== Releasing lock... [2025-01-08 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:54:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:55:05 [end_date_ymd] => 2025-01-08 05:55:05 [RateCDR] => 1 ) [2025-01-08 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:55:05' and `end` < '2025-01-08 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:55:17] Production.INFO: count ==55 [2025-01-08 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:55:05 - End Time 2025-01-08 05:55:05 [2025-01-08 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200233', 'tblTempUsageDetail_20' ) start [2025-01-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200233', 'tblTempUsageDetail_20' ) end [2025-01-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200233', 'tblTempVendorCDR_20' ) start [2025-01-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200233', 'tblTempVendorCDR_20' ) end [2025-01-08 05:55:18] Production.INFO: ProcessCDR(1,14200233,1,1,2) [2025-01-08 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200233', 'tblTempUsageDetail_20' ) start [2025-01-08 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200233', 'tblTempUsageDetail_20' ) end [2025-01-08 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:55:21] Production.INFO: ==1177== Releasing lock... [2025-01-08 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:56:05 [end_date_ymd] => 2025-01-08 05:56:05 [RateCDR] => 1 ) [2025-01-08 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:56:05' and `end` < '2025-01-08 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:56:18] Production.INFO: count ==54 [2025-01-08 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:56:05 - End Time 2025-01-08 05:56:05 [2025-01-08 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200238', 'tblTempUsageDetail_20' ) start [2025-01-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200238', 'tblTempUsageDetail_20' ) end [2025-01-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200238', 'tblTempVendorCDR_20' ) start [2025-01-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200238', 'tblTempVendorCDR_20' ) end [2025-01-08 05:56:18] Production.INFO: ProcessCDR(1,14200238,1,1,2) [2025-01-08 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200238', 'tblTempUsageDetail_20' ) start [2025-01-08 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200238', 'tblTempUsageDetail_20' ) end [2025-01-08 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:56:21] Production.INFO: ==1287== Releasing lock... [2025-01-08 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:57:04 [end_date_ymd] => 2025-01-08 05:57:04 [RateCDR] => 1 ) [2025-01-08 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:57:04' and `end` < '2025-01-08 05:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:57:17] Production.INFO: count ==54 [2025-01-08 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-08 02:57:04 - End Time 2025-01-08 05:57:04 [2025-01-08 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200243', 'tblTempUsageDetail_20' ) start [2025-01-08 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200243', 'tblTempUsageDetail_20' ) end [2025-01-08 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200243', 'tblTempVendorCDR_20' ) start [2025-01-08 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200243', 'tblTempVendorCDR_20' ) end [2025-01-08 05:57:17] Production.INFO: ProcessCDR(1,14200243,1,1,2) [2025-01-08 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200243', 'tblTempUsageDetail_20' ) start [2025-01-08 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200243', 'tblTempUsageDetail_20' ) end [2025-01-08 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:57:20] Production.INFO: ==1382== Releasing lock... [2025-01-08 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:57:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:58:05 [end_date_ymd] => 2025-01-08 05:58:05 [RateCDR] => 1 ) [2025-01-08 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:58:05' and `end` < '2025-01-08 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:58:18] Production.INFO: count ==54 [2025-01-08 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-08 02:58:05 - End Time 2025-01-08 05:58:05 [2025-01-08 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200248', 'tblTempUsageDetail_20' ) start [2025-01-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200248', 'tblTempUsageDetail_20' ) end [2025-01-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200248', 'tblTempVendorCDR_20' ) start [2025-01-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200248', 'tblTempVendorCDR_20' ) end [2025-01-08 05:58:18] Production.INFO: ProcessCDR(1,14200248,1,1,2) [2025-01-08 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200248', 'tblTempUsageDetail_20' ) start [2025-01-08 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200248', 'tblTempUsageDetail_20' ) end [2025-01-08 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:58:21] Production.INFO: ==1487== Releasing lock... [2025-01-08 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 02:59:04 [end_date_ymd] => 2025-01-08 05:59:04 [RateCDR] => 1 ) [2025-01-08 05:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 02:59:04' and `end` < '2025-01-08 05:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 05:59:17] Production.INFO: count ==54 [2025-01-08 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-08 02:59:04 - End Time 2025-01-08 05:59:04 [2025-01-08 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200253', 'tblTempUsageDetail_20' ) start [2025-01-08 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200253', 'tblTempUsageDetail_20' ) end [2025-01-08 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200253', 'tblTempVendorCDR_20' ) start [2025-01-08 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200253', 'tblTempVendorCDR_20' ) end [2025-01-08 05:59:17] Production.INFO: ProcessCDR(1,14200253,1,1,2) [2025-01-08 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200253', 'tblTempUsageDetail_20' ) start [2025-01-08 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200253', 'tblTempUsageDetail_20' ) end [2025-01-08 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 05:59:20] Production.INFO: ==1626== Releasing lock... [2025-01-08 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 05:59:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:00:05 [end_date_ymd] => 2025-01-08 06:00:05 [RateCDR] => 1 ) [2025-01-08 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:00:05' and `end` < '2025-01-08 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:00:18] Production.INFO: count ==52 [2025-01-08 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:00:05 - End Time 2025-01-08 06:00:05 [2025-01-08 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200259', 'tblTempUsageDetail_20' ) start [2025-01-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200259', 'tblTempUsageDetail_20' ) end [2025-01-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200259', 'tblTempVendorCDR_20' ) start [2025-01-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200259', 'tblTempVendorCDR_20' ) end [2025-01-08 06:00:18] Production.INFO: ProcessCDR(1,14200259,1,1,2) [2025-01-08 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200259', 'tblTempUsageDetail_20' ) start [2025-01-08 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200259', 'tblTempUsageDetail_20' ) end [2025-01-08 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:00:21] Production.INFO: ==1729== Releasing lock... [2025-01-08 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:01:04 [end_date_ymd] => 2025-01-08 06:01:04 [RateCDR] => 1 ) [2025-01-08 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:01:04' and `end` < '2025-01-08 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:01:17] Production.INFO: count ==52 [2025-01-08 06:01:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:01:04 - End Time 2025-01-08 06:01:04 [2025-01-08 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200264', 'tblTempUsageDetail_20' ) start [2025-01-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200264', 'tblTempUsageDetail_20' ) end [2025-01-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200264', 'tblTempVendorCDR_20' ) start [2025-01-08 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200264', 'tblTempVendorCDR_20' ) end [2025-01-08 06:01:17] Production.INFO: ProcessCDR(1,14200264,1,1,2) [2025-01-08 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200264', 'tblTempUsageDetail_20' ) start [2025-01-08 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200264', 'tblTempUsageDetail_20' ) end [2025-01-08 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:01:20] Production.INFO: ==1844== Releasing lock... [2025-01-08 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:01:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:02:05 [end_date_ymd] => 2025-01-08 06:02:05 [RateCDR] => 1 ) [2025-01-08 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:02:05' and `end` < '2025-01-08 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:02:19] Production.INFO: count ==52 [2025-01-08 06:02:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:02:05 - End Time 2025-01-08 06:02:05 [2025-01-08 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200269', 'tblTempUsageDetail_20' ) start [2025-01-08 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200269', 'tblTempUsageDetail_20' ) end [2025-01-08 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200269', 'tblTempVendorCDR_20' ) start [2025-01-08 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200269', 'tblTempVendorCDR_20' ) end [2025-01-08 06:02:19] Production.INFO: ProcessCDR(1,14200269,1,1,2) [2025-01-08 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200269', 'tblTempUsageDetail_20' ) start [2025-01-08 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200269', 'tblTempUsageDetail_20' ) end [2025-01-08 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:02:22] Production.INFO: ==1933== Releasing lock... [2025-01-08 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:03:05 [end_date_ymd] => 2025-01-08 06:03:05 [RateCDR] => 1 ) [2025-01-08 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:03:05' and `end` < '2025-01-08 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:03:19] Production.INFO: count ==52 [2025-01-08 06:03:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:03:05 - End Time 2025-01-08 06:03:05 [2025-01-08 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200274', 'tblTempUsageDetail_20' ) start [2025-01-08 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200274', 'tblTempUsageDetail_20' ) end [2025-01-08 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200274', 'tblTempVendorCDR_20' ) start [2025-01-08 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200274', 'tblTempVendorCDR_20' ) end [2025-01-08 06:03:19] Production.INFO: ProcessCDR(1,14200274,1,1,2) [2025-01-08 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200274', 'tblTempUsageDetail_20' ) start [2025-01-08 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200274', 'tblTempUsageDetail_20' ) end [2025-01-08 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:03:22] Production.INFO: ==2018== Releasing lock... [2025-01-08 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:04:05 [end_date_ymd] => 2025-01-08 06:04:05 [RateCDR] => 1 ) [2025-01-08 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:04:05' and `end` < '2025-01-08 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:04:18] Production.INFO: count ==52 [2025-01-08 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:04:05 - End Time 2025-01-08 06:04:05 [2025-01-08 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200279', 'tblTempUsageDetail_20' ) start [2025-01-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200279', 'tblTempUsageDetail_20' ) end [2025-01-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200279', 'tblTempVendorCDR_20' ) start [2025-01-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200279', 'tblTempVendorCDR_20' ) end [2025-01-08 06:04:18] Production.INFO: ProcessCDR(1,14200279,1,1,2) [2025-01-08 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200279', 'tblTempUsageDetail_20' ) start [2025-01-08 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200279', 'tblTempUsageDetail_20' ) end [2025-01-08 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:04:21] Production.INFO: ==2105== Releasing lock... [2025-01-08 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:05:05 [end_date_ymd] => 2025-01-08 06:05:05 [RateCDR] => 1 ) [2025-01-08 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:05:05' and `end` < '2025-01-08 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:05:18] Production.INFO: count ==52 [2025-01-08 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:05:05 - End Time 2025-01-08 06:05:05 [2025-01-08 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200284', 'tblTempUsageDetail_20' ) start [2025-01-08 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200284', 'tblTempUsageDetail_20' ) end [2025-01-08 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200284', 'tblTempVendorCDR_20' ) start [2025-01-08 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200284', 'tblTempVendorCDR_20' ) end [2025-01-08 06:05:18] Production.INFO: ProcessCDR(1,14200284,1,1,2) [2025-01-08 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200284', 'tblTempUsageDetail_20' ) start [2025-01-08 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200284', 'tblTempUsageDetail_20' ) end [2025-01-08 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:05:21] Production.INFO: ==2226== Releasing lock... [2025-01-08 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:06:05 [end_date_ymd] => 2025-01-08 06:06:05 [RateCDR] => 1 ) [2025-01-08 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:06:05' and `end` < '2025-01-08 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:06:17] Production.INFO: count ==52 [2025-01-08 06:06:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:06:05 - End Time 2025-01-08 06:06:05 [2025-01-08 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200289', 'tblTempUsageDetail_20' ) start [2025-01-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200289', 'tblTempUsageDetail_20' ) end [2025-01-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200289', 'tblTempVendorCDR_20' ) start [2025-01-08 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200289', 'tblTempVendorCDR_20' ) end [2025-01-08 06:06:17] Production.INFO: ProcessCDR(1,14200289,1,1,2) [2025-01-08 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200289', 'tblTempUsageDetail_20' ) start [2025-01-08 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200289', 'tblTempUsageDetail_20' ) end [2025-01-08 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:06:21] Production.INFO: ==2311== Releasing lock... [2025-01-08 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:07:05 [end_date_ymd] => 2025-01-08 06:07:05 [RateCDR] => 1 ) [2025-01-08 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:07:05' and `end` < '2025-01-08 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:07:18] Production.INFO: count ==52 [2025-01-08 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:07:05 - End Time 2025-01-08 06:07:05 [2025-01-08 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200294', 'tblTempUsageDetail_20' ) start [2025-01-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200294', 'tblTempUsageDetail_20' ) end [2025-01-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200294', 'tblTempVendorCDR_20' ) start [2025-01-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200294', 'tblTempVendorCDR_20' ) end [2025-01-08 06:07:18] Production.INFO: ProcessCDR(1,14200294,1,1,2) [2025-01-08 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200294', 'tblTempUsageDetail_20' ) start [2025-01-08 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200294', 'tblTempUsageDetail_20' ) end [2025-01-08 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:07:21] Production.INFO: ==2396== Releasing lock... [2025-01-08 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:08:05 [end_date_ymd] => 2025-01-08 06:08:05 [RateCDR] => 1 ) [2025-01-08 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:08:05' and `end` < '2025-01-08 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:08:19] Production.INFO: count ==52 [2025-01-08 06:08:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:08:05 - End Time 2025-01-08 06:08:05 [2025-01-08 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200299', 'tblTempUsageDetail_20' ) start [2025-01-08 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200299', 'tblTempUsageDetail_20' ) end [2025-01-08 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200299', 'tblTempVendorCDR_20' ) start [2025-01-08 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200299', 'tblTempVendorCDR_20' ) end [2025-01-08 06:08:19] Production.INFO: ProcessCDR(1,14200299,1,1,2) [2025-01-08 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200299', 'tblTempUsageDetail_20' ) start [2025-01-08 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200299', 'tblTempUsageDetail_20' ) end [2025-01-08 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:08:22] Production.INFO: ==2475== Releasing lock... [2025-01-08 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:08:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:09:05 [end_date_ymd] => 2025-01-08 06:09:05 [RateCDR] => 1 ) [2025-01-08 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:09:05' and `end` < '2025-01-08 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:09:18] Production.INFO: count ==52 [2025-01-08 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:09:05 - End Time 2025-01-08 06:09:05 [2025-01-08 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200304', 'tblTempUsageDetail_20' ) start [2025-01-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200304', 'tblTempUsageDetail_20' ) end [2025-01-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200304', 'tblTempVendorCDR_20' ) start [2025-01-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200304', 'tblTempVendorCDR_20' ) end [2025-01-08 06:09:18] Production.INFO: ProcessCDR(1,14200304,1,1,2) [2025-01-08 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200304', 'tblTempUsageDetail_20' ) start [2025-01-08 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200304', 'tblTempUsageDetail_20' ) end [2025-01-08 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:09:21] Production.INFO: ==2561== Releasing lock... [2025-01-08 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:10:05 [end_date_ymd] => 2025-01-08 06:10:05 [RateCDR] => 1 ) [2025-01-08 06:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:10:05' and `end` < '2025-01-08 06:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:10:18] Production.INFO: count ==52 [2025-01-08 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:10:05 - End Time 2025-01-08 06:10:05 [2025-01-08 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200310', 'tblTempUsageDetail_20' ) start [2025-01-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200310', 'tblTempUsageDetail_20' ) end [2025-01-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200310', 'tblTempVendorCDR_20' ) start [2025-01-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200310', 'tblTempVendorCDR_20' ) end [2025-01-08 06:10:18] Production.INFO: ProcessCDR(1,14200310,1,1,2) [2025-01-08 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200310', 'tblTempUsageDetail_20' ) start [2025-01-08 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200310', 'tblTempUsageDetail_20' ) end [2025-01-08 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:10:21] Production.INFO: ==2646== Releasing lock... [2025-01-08 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:11:05 [end_date_ymd] => 2025-01-08 06:11:05 [RateCDR] => 1 ) [2025-01-08 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:11:05' and `end` < '2025-01-08 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:11:19] Production.INFO: count ==52 [2025-01-08 06:11:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:11:05 - End Time 2025-01-08 06:11:05 [2025-01-08 06:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200315', 'tblTempUsageDetail_20' ) start [2025-01-08 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200315', 'tblTempUsageDetail_20' ) end [2025-01-08 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200315', 'tblTempVendorCDR_20' ) start [2025-01-08 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200315', 'tblTempVendorCDR_20' ) end [2025-01-08 06:11:19] Production.INFO: ProcessCDR(1,14200315,1,1,2) [2025-01-08 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200315', 'tblTempUsageDetail_20' ) start [2025-01-08 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200315', 'tblTempUsageDetail_20' ) end [2025-01-08 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:11:22] Production.INFO: ==2734== Releasing lock... [2025-01-08 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:11:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:12:04 [end_date_ymd] => 2025-01-08 06:12:04 [RateCDR] => 1 ) [2025-01-08 06:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:12:04' and `end` < '2025-01-08 06:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:12:19] Production.INFO: count ==52 [2025-01-08 06:12:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:12:04 - End Time 2025-01-08 06:12:04 [2025-01-08 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200320', 'tblTempUsageDetail_20' ) start [2025-01-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200320', 'tblTempUsageDetail_20' ) end [2025-01-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200320', 'tblTempVendorCDR_20' ) start [2025-01-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200320', 'tblTempVendorCDR_20' ) end [2025-01-08 06:12:19] Production.INFO: ProcessCDR(1,14200320,1,1,2) [2025-01-08 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200320', 'tblTempUsageDetail_20' ) start [2025-01-08 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200320', 'tblTempUsageDetail_20' ) end [2025-01-08 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:12:22] Production.INFO: ==2819== Releasing lock... [2025-01-08 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:13:05 [end_date_ymd] => 2025-01-08 06:13:05 [RateCDR] => 1 ) [2025-01-08 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:13:05' and `end` < '2025-01-08 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:13:18] Production.INFO: count ==52 [2025-01-08 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:13:05 - End Time 2025-01-08 06:13:05 [2025-01-08 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200325', 'tblTempUsageDetail_20' ) start [2025-01-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200325', 'tblTempUsageDetail_20' ) end [2025-01-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200325', 'tblTempVendorCDR_20' ) start [2025-01-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200325', 'tblTempVendorCDR_20' ) end [2025-01-08 06:13:18] Production.INFO: ProcessCDR(1,14200325,1,1,2) [2025-01-08 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200325', 'tblTempUsageDetail_20' ) start [2025-01-08 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200325', 'tblTempUsageDetail_20' ) end [2025-01-08 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:13:21] Production.INFO: ==2903== Releasing lock... [2025-01-08 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:14:05 [end_date_ymd] => 2025-01-08 06:14:05 [RateCDR] => 1 ) [2025-01-08 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:14:05' and `end` < '2025-01-08 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:14:18] Production.INFO: count ==52 [2025-01-08 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:14:05 - End Time 2025-01-08 06:14:05 [2025-01-08 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200330', 'tblTempUsageDetail_20' ) start [2025-01-08 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200330', 'tblTempUsageDetail_20' ) end [2025-01-08 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200330', 'tblTempVendorCDR_20' ) start [2025-01-08 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200330', 'tblTempVendorCDR_20' ) end [2025-01-08 06:14:18] Production.INFO: ProcessCDR(1,14200330,1,1,2) [2025-01-08 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200330', 'tblTempUsageDetail_20' ) start [2025-01-08 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200330', 'tblTempUsageDetail_20' ) end [2025-01-08 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:14:22] Production.INFO: ==2991== Releasing lock... [2025-01-08 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:15:05 [end_date_ymd] => 2025-01-08 06:15:05 [RateCDR] => 1 ) [2025-01-08 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:15:05' and `end` < '2025-01-08 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:15:18] Production.INFO: count ==52 [2025-01-08 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:15:05 - End Time 2025-01-08 06:15:05 [2025-01-08 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200335', 'tblTempUsageDetail_20' ) start [2025-01-08 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200335', 'tblTempUsageDetail_20' ) end [2025-01-08 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200335', 'tblTempVendorCDR_20' ) start [2025-01-08 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200335', 'tblTempVendorCDR_20' ) end [2025-01-08 06:15:18] Production.INFO: ProcessCDR(1,14200335,1,1,2) [2025-01-08 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200335', 'tblTempUsageDetail_20' ) start [2025-01-08 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200335', 'tblTempUsageDetail_20' ) end [2025-01-08 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:15:22] Production.INFO: ==3096== Releasing lock... [2025-01-08 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:16:05 [end_date_ymd] => 2025-01-08 06:16:05 [RateCDR] => 1 ) [2025-01-08 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:16:05' and `end` < '2025-01-08 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:16:18] Production.INFO: count ==52 [2025-01-08 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:16:05 - End Time 2025-01-08 06:16:05 [2025-01-08 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200340', 'tblTempUsageDetail_20' ) start [2025-01-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200340', 'tblTempUsageDetail_20' ) end [2025-01-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200340', 'tblTempVendorCDR_20' ) start [2025-01-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200340', 'tblTempVendorCDR_20' ) end [2025-01-08 06:16:18] Production.INFO: ProcessCDR(1,14200340,1,1,2) [2025-01-08 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200340', 'tblTempUsageDetail_20' ) start [2025-01-08 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200340', 'tblTempUsageDetail_20' ) end [2025-01-08 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:16:21] Production.INFO: ==3196== Releasing lock... [2025-01-08 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:17:05 [end_date_ymd] => 2025-01-08 06:17:05 [RateCDR] => 1 ) [2025-01-08 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:17:05' and `end` < '2025-01-08 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:17:18] Production.INFO: count ==52 [2025-01-08 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:17:05 - End Time 2025-01-08 06:17:05 [2025-01-08 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200345', 'tblTempUsageDetail_20' ) start [2025-01-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200345', 'tblTempUsageDetail_20' ) end [2025-01-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200345', 'tblTempVendorCDR_20' ) start [2025-01-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200345', 'tblTempVendorCDR_20' ) end [2025-01-08 06:17:18] Production.INFO: ProcessCDR(1,14200345,1,1,2) [2025-01-08 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200345', 'tblTempUsageDetail_20' ) start [2025-01-08 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200345', 'tblTempUsageDetail_20' ) end [2025-01-08 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:17:21] Production.INFO: ==3289== Releasing lock... [2025-01-08 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:18:05 [end_date_ymd] => 2025-01-08 06:18:05 [RateCDR] => 1 ) [2025-01-08 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:18:05' and `end` < '2025-01-08 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:18:19] Production.INFO: count ==52 [2025-01-08 06:18:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:18:05 - End Time 2025-01-08 06:18:05 [2025-01-08 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200349', 'tblTempUsageDetail_20' ) start [2025-01-08 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200349', 'tblTempUsageDetail_20' ) end [2025-01-08 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200349', 'tblTempVendorCDR_20' ) start [2025-01-08 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200349', 'tblTempVendorCDR_20' ) end [2025-01-08 06:18:19] Production.INFO: ProcessCDR(1,14200349,1,1,2) [2025-01-08 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200349', 'tblTempUsageDetail_20' ) start [2025-01-08 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200349', 'tblTempUsageDetail_20' ) end [2025-01-08 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:18:22] Production.INFO: ==3387== Releasing lock... [2025-01-08 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:19:05 [end_date_ymd] => 2025-01-08 06:19:05 [RateCDR] => 1 ) [2025-01-08 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:19:05' and `end` < '2025-01-08 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:19:18] Production.INFO: count ==52 [2025-01-08 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:19:05 - End Time 2025-01-08 06:19:05 [2025-01-08 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200355', 'tblTempUsageDetail_20' ) start [2025-01-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200355', 'tblTempUsageDetail_20' ) end [2025-01-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200355', 'tblTempVendorCDR_20' ) start [2025-01-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200355', 'tblTempVendorCDR_20' ) end [2025-01-08 06:19:18] Production.INFO: ProcessCDR(1,14200355,1,1,2) [2025-01-08 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200355', 'tblTempUsageDetail_20' ) start [2025-01-08 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200355', 'tblTempUsageDetail_20' ) end [2025-01-08 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:19:21] Production.INFO: ==3491== Releasing lock... [2025-01-08 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:20:06 [end_date_ymd] => 2025-01-08 06:20:06 [RateCDR] => 1 ) [2025-01-08 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:20:06' and `end` < '2025-01-08 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:20:19] Production.INFO: count ==50 [2025-01-08 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:20:06 - End Time 2025-01-08 06:20:06 [2025-01-08 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200361', 'tblTempUsageDetail_20' ) start [2025-01-08 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200361', 'tblTempUsageDetail_20' ) end [2025-01-08 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200361', 'tblTempVendorCDR_20' ) start [2025-01-08 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200361', 'tblTempVendorCDR_20' ) end [2025-01-08 06:20:19] Production.INFO: ProcessCDR(1,14200361,1,1,2) [2025-01-08 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200361', 'tblTempUsageDetail_20' ) start [2025-01-08 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200361', 'tblTempUsageDetail_20' ) end [2025-01-08 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:20:22] Production.INFO: ==3640== Releasing lock... [2025-01-08 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:21:05 [end_date_ymd] => 2025-01-08 06:21:05 [RateCDR] => 1 ) [2025-01-08 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:21:05' and `end` < '2025-01-08 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:21:19] Production.INFO: count ==50 [2025-01-08 06:21:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:21:05 - End Time 2025-01-08 06:21:05 [2025-01-08 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200366', 'tblTempUsageDetail_20' ) start [2025-01-08 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200366', 'tblTempUsageDetail_20' ) end [2025-01-08 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200366', 'tblTempVendorCDR_20' ) start [2025-01-08 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200366', 'tblTempVendorCDR_20' ) end [2025-01-08 06:21:19] Production.INFO: ProcessCDR(1,14200366,1,1,2) [2025-01-08 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200366', 'tblTempUsageDetail_20' ) start [2025-01-08 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200366', 'tblTempUsageDetail_20' ) end [2025-01-08 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:21:22] Production.INFO: ==3748== Releasing lock... [2025-01-08 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:22:05 [end_date_ymd] => 2025-01-08 06:22:05 [RateCDR] => 1 ) [2025-01-08 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:22:05' and `end` < '2025-01-08 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:22:17] Production.INFO: count ==50 [2025-01-08 06:22:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:22:05 - End Time 2025-01-08 06:22:05 [2025-01-08 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200371', 'tblTempUsageDetail_20' ) start [2025-01-08 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200371', 'tblTempUsageDetail_20' ) end [2025-01-08 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200371', 'tblTempVendorCDR_20' ) start [2025-01-08 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200371', 'tblTempVendorCDR_20' ) end [2025-01-08 06:22:17] Production.INFO: ProcessCDR(1,14200371,1,1,2) [2025-01-08 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200371', 'tblTempUsageDetail_20' ) start [2025-01-08 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200371', 'tblTempUsageDetail_20' ) end [2025-01-08 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:22:21] Production.INFO: ==3854== Releasing lock... [2025-01-08 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:23:05 [end_date_ymd] => 2025-01-08 06:23:05 [RateCDR] => 1 ) [2025-01-08 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:23:05' and `end` < '2025-01-08 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:23:18] Production.INFO: count ==50 [2025-01-08 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:23:05 - End Time 2025-01-08 06:23:05 [2025-01-08 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200376', 'tblTempUsageDetail_20' ) start [2025-01-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200376', 'tblTempUsageDetail_20' ) end [2025-01-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200376', 'tblTempVendorCDR_20' ) start [2025-01-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200376', 'tblTempVendorCDR_20' ) end [2025-01-08 06:23:18] Production.INFO: ProcessCDR(1,14200376,1,1,2) [2025-01-08 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200376', 'tblTempUsageDetail_20' ) start [2025-01-08 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200376', 'tblTempUsageDetail_20' ) end [2025-01-08 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:23:22] Production.INFO: ==3965== Releasing lock... [2025-01-08 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:24:05 [end_date_ymd] => 2025-01-08 06:24:05 [RateCDR] => 1 ) [2025-01-08 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:24:05' and `end` < '2025-01-08 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:24:18] Production.INFO: count ==50 [2025-01-08 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:24:05 - End Time 2025-01-08 06:24:05 [2025-01-08 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200381', 'tblTempUsageDetail_20' ) start [2025-01-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200381', 'tblTempUsageDetail_20' ) end [2025-01-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200381', 'tblTempVendorCDR_20' ) start [2025-01-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200381', 'tblTempVendorCDR_20' ) end [2025-01-08 06:24:18] Production.INFO: ProcessCDR(1,14200381,1,1,2) [2025-01-08 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200381', 'tblTempUsageDetail_20' ) start [2025-01-08 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200381', 'tblTempUsageDetail_20' ) end [2025-01-08 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:24:21] Production.INFO: ==4076== Releasing lock... [2025-01-08 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:25:05 [end_date_ymd] => 2025-01-08 06:25:05 [RateCDR] => 1 ) [2025-01-08 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:25:05' and `end` < '2025-01-08 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:25:18] Production.INFO: count ==50 [2025-01-08 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:25:05 - End Time 2025-01-08 06:25:05 [2025-01-08 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200386', 'tblTempUsageDetail_20' ) start [2025-01-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200386', 'tblTempUsageDetail_20' ) end [2025-01-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200386', 'tblTempVendorCDR_20' ) start [2025-01-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200386', 'tblTempVendorCDR_20' ) end [2025-01-08 06:25:18] Production.INFO: ProcessCDR(1,14200386,1,1,2) [2025-01-08 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200386', 'tblTempUsageDetail_20' ) start [2025-01-08 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200386', 'tblTempUsageDetail_20' ) end [2025-01-08 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:25:21] Production.INFO: ==4195== Releasing lock... [2025-01-08 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:26:04 [end_date_ymd] => 2025-01-08 06:26:04 [RateCDR] => 1 ) [2025-01-08 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:26:04' and `end` < '2025-01-08 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:26:17] Production.INFO: count ==50 [2025-01-08 06:26:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:26:04 - End Time 2025-01-08 06:26:04 [2025-01-08 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200391', 'tblTempUsageDetail_20' ) start [2025-01-08 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200391', 'tblTempUsageDetail_20' ) end [2025-01-08 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200391', 'tblTempVendorCDR_20' ) start [2025-01-08 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200391', 'tblTempVendorCDR_20' ) end [2025-01-08 06:26:17] Production.INFO: ProcessCDR(1,14200391,1,1,2) [2025-01-08 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200391', 'tblTempUsageDetail_20' ) start [2025-01-08 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200391', 'tblTempUsageDetail_20' ) end [2025-01-08 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:26:21] Production.INFO: ==4306== Releasing lock... [2025-01-08 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:27:05 [end_date_ymd] => 2025-01-08 06:27:05 [RateCDR] => 1 ) [2025-01-08 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:27:05' and `end` < '2025-01-08 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:27:18] Production.INFO: count ==50 [2025-01-08 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:27:05 - End Time 2025-01-08 06:27:05 [2025-01-08 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200396', 'tblTempUsageDetail_20' ) start [2025-01-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200396', 'tblTempUsageDetail_20' ) end [2025-01-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200396', 'tblTempVendorCDR_20' ) start [2025-01-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200396', 'tblTempVendorCDR_20' ) end [2025-01-08 06:27:18] Production.INFO: ProcessCDR(1,14200396,1,1,2) [2025-01-08 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200396', 'tblTempUsageDetail_20' ) start [2025-01-08 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200396', 'tblTempUsageDetail_20' ) end [2025-01-08 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:27:22] Production.INFO: ==4429== Releasing lock... [2025-01-08 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:28:05 [end_date_ymd] => 2025-01-08 06:28:05 [RateCDR] => 1 ) [2025-01-08 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:28:05' and `end` < '2025-01-08 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:28:18] Production.INFO: count ==50 [2025-01-08 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:28:05 - End Time 2025-01-08 06:28:05 [2025-01-08 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200401', 'tblTempUsageDetail_20' ) start [2025-01-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200401', 'tblTempUsageDetail_20' ) end [2025-01-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200401', 'tblTempVendorCDR_20' ) start [2025-01-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200401', 'tblTempVendorCDR_20' ) end [2025-01-08 06:28:18] Production.INFO: ProcessCDR(1,14200401,1,1,2) [2025-01-08 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200401', 'tblTempUsageDetail_20' ) start [2025-01-08 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200401', 'tblTempUsageDetail_20' ) end [2025-01-08 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:28:22] Production.INFO: ==4541== Releasing lock... [2025-01-08 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:29:05 [end_date_ymd] => 2025-01-08 06:29:05 [RateCDR] => 1 ) [2025-01-08 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:29:05' and `end` < '2025-01-08 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:29:17] Production.INFO: count ==50 [2025-01-08 06:29:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:29:05 - End Time 2025-01-08 06:29:05 [2025-01-08 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200406', 'tblTempUsageDetail_20' ) start [2025-01-08 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200406', 'tblTempUsageDetail_20' ) end [2025-01-08 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200406', 'tblTempVendorCDR_20' ) start [2025-01-08 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200406', 'tblTempVendorCDR_20' ) end [2025-01-08 06:29:17] Production.INFO: ProcessCDR(1,14200406,1,1,2) [2025-01-08 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200406', 'tblTempUsageDetail_20' ) start [2025-01-08 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200406', 'tblTempUsageDetail_20' ) end [2025-01-08 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:29:21] Production.INFO: ==4653== Releasing lock... [2025-01-08 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:30:05 [end_date_ymd] => 2025-01-08 06:30:05 [RateCDR] => 1 ) [2025-01-08 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:30:05' and `end` < '2025-01-08 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:30:18] Production.INFO: count ==52 [2025-01-08 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:30:05 - End Time 2025-01-08 06:30:05 [2025-01-08 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200412', 'tblTempUsageDetail_20' ) start [2025-01-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200412', 'tblTempUsageDetail_20' ) end [2025-01-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200412', 'tblTempVendorCDR_20' ) start [2025-01-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200412', 'tblTempVendorCDR_20' ) end [2025-01-08 06:30:18] Production.INFO: ProcessCDR(1,14200412,1,1,2) [2025-01-08 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200412', 'tblTempUsageDetail_20' ) start [2025-01-08 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200412', 'tblTempUsageDetail_20' ) end [2025-01-08 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:30:21] Production.INFO: ==4775== Releasing lock... [2025-01-08 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:31:04 [end_date_ymd] => 2025-01-08 06:31:04 [RateCDR] => 1 ) [2025-01-08 06:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:31:04' and `end` < '2025-01-08 06:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:31:17] Production.INFO: count ==52 [2025-01-08 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:31:04 - End Time 2025-01-08 06:31:04 [2025-01-08 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200417', 'tblTempUsageDetail_20' ) start [2025-01-08 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200417', 'tblTempUsageDetail_20' ) end [2025-01-08 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200417', 'tblTempVendorCDR_20' ) start [2025-01-08 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200417', 'tblTempVendorCDR_20' ) end [2025-01-08 06:31:17] Production.INFO: ProcessCDR(1,14200417,1,1,2) [2025-01-08 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200417', 'tblTempUsageDetail_20' ) start [2025-01-08 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200417', 'tblTempUsageDetail_20' ) end [2025-01-08 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:31:21] Production.INFO: ==4896== Releasing lock... [2025-01-08 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:32:05 [end_date_ymd] => 2025-01-08 06:32:05 [RateCDR] => 1 ) [2025-01-08 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:32:05' and `end` < '2025-01-08 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:32:19] Production.INFO: count ==52 [2025-01-08 06:32:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:32:05 - End Time 2025-01-08 06:32:05 [2025-01-08 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200422', 'tblTempUsageDetail_20' ) start [2025-01-08 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200422', 'tblTempUsageDetail_20' ) end [2025-01-08 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200422', 'tblTempVendorCDR_20' ) start [2025-01-08 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200422', 'tblTempVendorCDR_20' ) end [2025-01-08 06:32:19] Production.INFO: ProcessCDR(1,14200422,1,1,2) [2025-01-08 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200422', 'tblTempUsageDetail_20' ) start [2025-01-08 06:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200422', 'tblTempUsageDetail_20' ) end [2025-01-08 06:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:32:23] Production.INFO: ==5006== Releasing lock... [2025-01-08 06:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:32:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:33:04 [end_date_ymd] => 2025-01-08 06:33:04 [RateCDR] => 1 ) [2025-01-08 06:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:33:04' and `end` < '2025-01-08 06:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:33:18] Production.INFO: count ==52 [2025-01-08 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:33:04 - End Time 2025-01-08 06:33:04 [2025-01-08 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200427', 'tblTempUsageDetail_20' ) start [2025-01-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200427', 'tblTempUsageDetail_20' ) end [2025-01-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200427', 'tblTempVendorCDR_20' ) start [2025-01-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200427', 'tblTempVendorCDR_20' ) end [2025-01-08 06:33:18] Production.INFO: ProcessCDR(1,14200427,1,1,2) [2025-01-08 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200427', 'tblTempUsageDetail_20' ) start [2025-01-08 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200427', 'tblTempUsageDetail_20' ) end [2025-01-08 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:33:21] Production.INFO: ==5120== Releasing lock... [2025-01-08 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:34:06 [end_date_ymd] => 2025-01-08 06:34:06 [RateCDR] => 1 ) [2025-01-08 06:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:34:06' and `end` < '2025-01-08 06:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:34:18] Production.INFO: count ==52 [2025-01-08 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:34:06 - End Time 2025-01-08 06:34:06 [2025-01-08 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200432', 'tblTempUsageDetail_20' ) start [2025-01-08 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200432', 'tblTempUsageDetail_20' ) end [2025-01-08 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200432', 'tblTempVendorCDR_20' ) start [2025-01-08 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200432', 'tblTempVendorCDR_20' ) end [2025-01-08 06:34:18] Production.INFO: ProcessCDR(1,14200432,1,1,2) [2025-01-08 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200432', 'tblTempUsageDetail_20' ) start [2025-01-08 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200432', 'tblTempUsageDetail_20' ) end [2025-01-08 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:34:22] Production.INFO: ==5216== Releasing lock... [2025-01-08 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:35:05 [end_date_ymd] => 2025-01-08 06:35:05 [RateCDR] => 1 ) [2025-01-08 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:35:05' and `end` < '2025-01-08 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:35:18] Production.INFO: count ==52 [2025-01-08 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:35:05 - End Time 2025-01-08 06:35:05 [2025-01-08 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200437', 'tblTempUsageDetail_20' ) start [2025-01-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200437', 'tblTempUsageDetail_20' ) end [2025-01-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200437', 'tblTempVendorCDR_20' ) start [2025-01-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200437', 'tblTempVendorCDR_20' ) end [2025-01-08 06:35:18] Production.INFO: ProcessCDR(1,14200437,1,1,2) [2025-01-08 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200437', 'tblTempUsageDetail_20' ) start [2025-01-08 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200437', 'tblTempUsageDetail_20' ) end [2025-01-08 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:35:21] Production.INFO: ==5308== Releasing lock... [2025-01-08 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:36:05 [end_date_ymd] => 2025-01-08 06:36:05 [RateCDR] => 1 ) [2025-01-08 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:36:05' and `end` < '2025-01-08 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:36:19] Production.INFO: count ==52 [2025-01-08 06:36:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:36:05 - End Time 2025-01-08 06:36:05 [2025-01-08 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200442', 'tblTempUsageDetail_20' ) start [2025-01-08 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200442', 'tblTempUsageDetail_20' ) end [2025-01-08 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200442', 'tblTempVendorCDR_20' ) start [2025-01-08 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200442', 'tblTempVendorCDR_20' ) end [2025-01-08 06:36:19] Production.INFO: ProcessCDR(1,14200442,1,1,2) [2025-01-08 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200442', 'tblTempUsageDetail_20' ) start [2025-01-08 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200442', 'tblTempUsageDetail_20' ) end [2025-01-08 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:36:22] Production.INFO: ==5446== Releasing lock... [2025-01-08 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:36:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:37:04 [end_date_ymd] => 2025-01-08 06:37:04 [RateCDR] => 1 ) [2025-01-08 06:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:37:04' and `end` < '2025-01-08 06:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:37:17] Production.INFO: count ==52 [2025-01-08 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:37:04 - End Time 2025-01-08 06:37:04 [2025-01-08 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200447', 'tblTempUsageDetail_20' ) start [2025-01-08 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200447', 'tblTempUsageDetail_20' ) end [2025-01-08 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200447', 'tblTempVendorCDR_20' ) start [2025-01-08 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200447', 'tblTempVendorCDR_20' ) end [2025-01-08 06:37:17] Production.INFO: ProcessCDR(1,14200447,1,1,2) [2025-01-08 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200447', 'tblTempUsageDetail_20' ) start [2025-01-08 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200447', 'tblTempUsageDetail_20' ) end [2025-01-08 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:37:20] Production.INFO: ==5545== Releasing lock... [2025-01-08 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:37:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:38:05 [end_date_ymd] => 2025-01-08 06:38:05 [RateCDR] => 1 ) [2025-01-08 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:38:05' and `end` < '2025-01-08 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:38:19] Production.INFO: count ==54 [2025-01-08 06:38:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:38:05 - End Time 2025-01-08 06:38:05 [2025-01-08 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200452', 'tblTempUsageDetail_20' ) start [2025-01-08 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200452', 'tblTempUsageDetail_20' ) end [2025-01-08 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200452', 'tblTempVendorCDR_20' ) start [2025-01-08 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200452', 'tblTempVendorCDR_20' ) end [2025-01-08 06:38:19] Production.INFO: ProcessCDR(1,14200452,1,1,2) [2025-01-08 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200452', 'tblTempUsageDetail_20' ) start [2025-01-08 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200452', 'tblTempUsageDetail_20' ) end [2025-01-08 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:38:22] Production.INFO: ==5646== Releasing lock... [2025-01-08 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:38:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:39:04 [end_date_ymd] => 2025-01-08 06:39:04 [RateCDR] => 1 ) [2025-01-08 06:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:39:04' and `end` < '2025-01-08 06:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:39:17] Production.INFO: count ==54 [2025-01-08 06:39:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:39:04 - End Time 2025-01-08 06:39:04 [2025-01-08 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200457', 'tblTempUsageDetail_20' ) start [2025-01-08 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200457', 'tblTempUsageDetail_20' ) end [2025-01-08 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200457', 'tblTempVendorCDR_20' ) start [2025-01-08 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200457', 'tblTempVendorCDR_20' ) end [2025-01-08 06:39:17] Production.INFO: ProcessCDR(1,14200457,1,1,2) [2025-01-08 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200457', 'tblTempUsageDetail_20' ) start [2025-01-08 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200457', 'tblTempUsageDetail_20' ) end [2025-01-08 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:39:20] Production.INFO: ==5746== Releasing lock... [2025-01-08 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:39:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:40:06 [end_date_ymd] => 2025-01-08 06:40:06 [RateCDR] => 1 ) [2025-01-08 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:40:06' and `end` < '2025-01-08 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:40:19] Production.INFO: count ==56 [2025-01-08 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:40:06 - End Time 2025-01-08 06:40:06 [2025-01-08 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200463', 'tblTempUsageDetail_20' ) start [2025-01-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200463', 'tblTempUsageDetail_20' ) end [2025-01-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200463', 'tblTempVendorCDR_20' ) start [2025-01-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200463', 'tblTempVendorCDR_20' ) end [2025-01-08 06:40:19] Production.INFO: ProcessCDR(1,14200463,1,1,2) [2025-01-08 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200463', 'tblTempUsageDetail_20' ) start [2025-01-08 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200463', 'tblTempUsageDetail_20' ) end [2025-01-08 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:40:22] Production.INFO: ==5848== Releasing lock... [2025-01-08 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:41:04 [end_date_ymd] => 2025-01-08 06:41:04 [RateCDR] => 1 ) [2025-01-08 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:41:04' and `end` < '2025-01-08 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:41:18] Production.INFO: count ==56 [2025-01-08 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:41:04 - End Time 2025-01-08 06:41:04 [2025-01-08 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200468', 'tblTempUsageDetail_20' ) start [2025-01-08 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200468', 'tblTempUsageDetail_20' ) end [2025-01-08 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200468', 'tblTempVendorCDR_20' ) start [2025-01-08 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200468', 'tblTempVendorCDR_20' ) end [2025-01-08 06:41:18] Production.INFO: ProcessCDR(1,14200468,1,1,2) [2025-01-08 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200468', 'tblTempUsageDetail_20' ) start [2025-01-08 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200468', 'tblTempUsageDetail_20' ) end [2025-01-08 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:41:21] Production.INFO: ==5945== Releasing lock... [2025-01-08 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:42:05 [end_date_ymd] => 2025-01-08 06:42:05 [RateCDR] => 1 ) [2025-01-08 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:42:05' and `end` < '2025-01-08 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:42:19] Production.INFO: count ==56 [2025-01-08 06:42:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:42:05 - End Time 2025-01-08 06:42:05 [2025-01-08 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200473', 'tblTempUsageDetail_20' ) start [2025-01-08 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200473', 'tblTempUsageDetail_20' ) end [2025-01-08 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200473', 'tblTempVendorCDR_20' ) start [2025-01-08 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200473', 'tblTempVendorCDR_20' ) end [2025-01-08 06:42:19] Production.INFO: ProcessCDR(1,14200473,1,1,2) [2025-01-08 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200473', 'tblTempUsageDetail_20' ) start [2025-01-08 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200473', 'tblTempUsageDetail_20' ) end [2025-01-08 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:42:22] Production.INFO: ==6043== Releasing lock... [2025-01-08 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:43:04 [end_date_ymd] => 2025-01-08 06:43:04 [RateCDR] => 1 ) [2025-01-08 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:43:04' and `end` < '2025-01-08 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:43:17] Production.INFO: count ==56 [2025-01-08 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:43:04 - End Time 2025-01-08 06:43:04 [2025-01-08 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200478', 'tblTempUsageDetail_20' ) start [2025-01-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200478', 'tblTempUsageDetail_20' ) end [2025-01-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200478', 'tblTempVendorCDR_20' ) start [2025-01-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200478', 'tblTempVendorCDR_20' ) end [2025-01-08 06:43:17] Production.INFO: ProcessCDR(1,14200478,1,1,2) [2025-01-08 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200478', 'tblTempUsageDetail_20' ) start [2025-01-08 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200478', 'tblTempUsageDetail_20' ) end [2025-01-08 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:43:20] Production.INFO: ==6131== Releasing lock... [2025-01-08 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:44:05 [end_date_ymd] => 2025-01-08 06:44:05 [RateCDR] => 1 ) [2025-01-08 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:44:05' and `end` < '2025-01-08 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:44:18] Production.INFO: count ==56 [2025-01-08 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:44:05 - End Time 2025-01-08 06:44:05 [2025-01-08 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200483', 'tblTempUsageDetail_20' ) start [2025-01-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200483', 'tblTempUsageDetail_20' ) end [2025-01-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200483', 'tblTempVendorCDR_20' ) start [2025-01-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200483', 'tblTempVendorCDR_20' ) end [2025-01-08 06:44:18] Production.INFO: ProcessCDR(1,14200483,1,1,2) [2025-01-08 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200483', 'tblTempUsageDetail_20' ) start [2025-01-08 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200483', 'tblTempUsageDetail_20' ) end [2025-01-08 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:44:22] Production.INFO: ==6219== Releasing lock... [2025-01-08 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:45:05 [end_date_ymd] => 2025-01-08 06:45:05 [RateCDR] => 1 ) [2025-01-08 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:45:05' and `end` < '2025-01-08 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:45:19] Production.INFO: count ==56 [2025-01-08 06:45:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:45:05 - End Time 2025-01-08 06:45:05 [2025-01-08 06:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200488', 'tblTempUsageDetail_20' ) start [2025-01-08 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200488', 'tblTempUsageDetail_20' ) end [2025-01-08 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200488', 'tblTempVendorCDR_20' ) start [2025-01-08 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200488', 'tblTempVendorCDR_20' ) end [2025-01-08 06:45:19] Production.INFO: ProcessCDR(1,14200488,1,1,2) [2025-01-08 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200488', 'tblTempUsageDetail_20' ) start [2025-01-08 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200488', 'tblTempUsageDetail_20' ) end [2025-01-08 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:45:22] Production.INFO: ==6308== Releasing lock... [2025-01-08 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:45:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:46:05 [end_date_ymd] => 2025-01-08 06:46:05 [RateCDR] => 1 ) [2025-01-08 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:46:05' and `end` < '2025-01-08 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:46:17] Production.INFO: count ==56 [2025-01-08 06:46:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:46:05 - End Time 2025-01-08 06:46:05 [2025-01-08 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200493', 'tblTempUsageDetail_20' ) start [2025-01-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200493', 'tblTempUsageDetail_20' ) end [2025-01-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200493', 'tblTempVendorCDR_20' ) start [2025-01-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200493', 'tblTempVendorCDR_20' ) end [2025-01-08 06:46:17] Production.INFO: ProcessCDR(1,14200493,1,1,2) [2025-01-08 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200493', 'tblTempUsageDetail_20' ) start [2025-01-08 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200493', 'tblTempUsageDetail_20' ) end [2025-01-08 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:46:21] Production.INFO: ==6395== Releasing lock... [2025-01-08 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:47:05 [end_date_ymd] => 2025-01-08 06:47:05 [RateCDR] => 1 ) [2025-01-08 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:47:05' and `end` < '2025-01-08 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:47:19] Production.INFO: count ==56 [2025-01-08 06:47:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:47:05 - End Time 2025-01-08 06:47:05 [2025-01-08 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200498', 'tblTempUsageDetail_20' ) start [2025-01-08 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200498', 'tblTempUsageDetail_20' ) end [2025-01-08 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200498', 'tblTempVendorCDR_20' ) start [2025-01-08 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200498', 'tblTempVendorCDR_20' ) end [2025-01-08 06:47:19] Production.INFO: ProcessCDR(1,14200498,1,1,2) [2025-01-08 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200498', 'tblTempUsageDetail_20' ) start [2025-01-08 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200498', 'tblTempUsageDetail_20' ) end [2025-01-08 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:47:22] Production.INFO: ==6482== Releasing lock... [2025-01-08 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:48:04 [end_date_ymd] => 2025-01-08 06:48:04 [RateCDR] => 1 ) [2025-01-08 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:48:04' and `end` < '2025-01-08 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:48:18] Production.INFO: count ==56 [2025-01-08 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:48:04 - End Time 2025-01-08 06:48:04 [2025-01-08 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200503', 'tblTempUsageDetail_20' ) start [2025-01-08 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200503', 'tblTempUsageDetail_20' ) end [2025-01-08 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200503', 'tblTempVendorCDR_20' ) start [2025-01-08 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200503', 'tblTempVendorCDR_20' ) end [2025-01-08 06:48:18] Production.INFO: ProcessCDR(1,14200503,1,1,2) [2025-01-08 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200503', 'tblTempUsageDetail_20' ) start [2025-01-08 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200503', 'tblTempUsageDetail_20' ) end [2025-01-08 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:48:21] Production.INFO: ==6563== Releasing lock... [2025-01-08 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:49:05 [end_date_ymd] => 2025-01-08 06:49:05 [RateCDR] => 1 ) [2025-01-08 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:49:05' and `end` < '2025-01-08 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:49:17] Production.INFO: count ==56 [2025-01-08 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:49:05 - End Time 2025-01-08 06:49:05 [2025-01-08 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200508', 'tblTempUsageDetail_20' ) start [2025-01-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200508', 'tblTempUsageDetail_20' ) end [2025-01-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200508', 'tblTempVendorCDR_20' ) start [2025-01-08 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200508', 'tblTempVendorCDR_20' ) end [2025-01-08 06:49:17] Production.INFO: ProcessCDR(1,14200508,1,1,2) [2025-01-08 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200508', 'tblTempUsageDetail_20' ) start [2025-01-08 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200508', 'tblTempUsageDetail_20' ) end [2025-01-08 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:49:20] Production.INFO: ==6645== Releasing lock... [2025-01-08 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:49:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:50:05 [end_date_ymd] => 2025-01-08 06:50:05 [RateCDR] => 1 ) [2025-01-08 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:50:05' and `end` < '2025-01-08 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:50:18] Production.INFO: count ==56 [2025-01-08 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:50:05 - End Time 2025-01-08 06:50:05 [2025-01-08 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200514', 'tblTempUsageDetail_20' ) start [2025-01-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200514', 'tblTempUsageDetail_20' ) end [2025-01-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200514', 'tblTempVendorCDR_20' ) start [2025-01-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200514', 'tblTempVendorCDR_20' ) end [2025-01-08 06:50:18] Production.INFO: ProcessCDR(1,14200514,1,1,2) [2025-01-08 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200514', 'tblTempUsageDetail_20' ) start [2025-01-08 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200514', 'tblTempUsageDetail_20' ) end [2025-01-08 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:50:21] Production.INFO: ==6724== Releasing lock... [2025-01-08 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:51:05 [end_date_ymd] => 2025-01-08 06:51:05 [RateCDR] => 1 ) [2025-01-08 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:51:05' and `end` < '2025-01-08 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:51:19] Production.INFO: count ==56 [2025-01-08 06:51:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:51:05 - End Time 2025-01-08 06:51:05 [2025-01-08 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200519', 'tblTempUsageDetail_20' ) start [2025-01-08 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200519', 'tblTempUsageDetail_20' ) end [2025-01-08 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200519', 'tblTempVendorCDR_20' ) start [2025-01-08 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200519', 'tblTempVendorCDR_20' ) end [2025-01-08 06:51:19] Production.INFO: ProcessCDR(1,14200519,1,1,2) [2025-01-08 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200519', 'tblTempUsageDetail_20' ) start [2025-01-08 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200519', 'tblTempUsageDetail_20' ) end [2025-01-08 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:51:22] Production.INFO: ==6849== Releasing lock... [2025-01-08 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:52:05 [end_date_ymd] => 2025-01-08 06:52:05 [RateCDR] => 1 ) [2025-01-08 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:52:05' and `end` < '2025-01-08 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:52:19] Production.INFO: count ==56 [2025-01-08 06:52:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:52:05 - End Time 2025-01-08 06:52:05 [2025-01-08 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200524', 'tblTempUsageDetail_20' ) start [2025-01-08 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200524', 'tblTempUsageDetail_20' ) end [2025-01-08 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200524', 'tblTempVendorCDR_20' ) start [2025-01-08 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200524', 'tblTempVendorCDR_20' ) end [2025-01-08 06:52:19] Production.INFO: ProcessCDR(1,14200524,1,1,2) [2025-01-08 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200524', 'tblTempUsageDetail_20' ) start [2025-01-08 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200524', 'tblTempUsageDetail_20' ) end [2025-01-08 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:52:22] Production.INFO: ==6937== Releasing lock... [2025-01-08 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:52:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:53:05 [end_date_ymd] => 2025-01-08 06:53:05 [RateCDR] => 1 ) [2025-01-08 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:53:05' and `end` < '2025-01-08 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:53:18] Production.INFO: count ==56 [2025-01-08 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:53:05 - End Time 2025-01-08 06:53:05 [2025-01-08 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200529', 'tblTempUsageDetail_20' ) start [2025-01-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200529', 'tblTempUsageDetail_20' ) end [2025-01-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200529', 'tblTempVendorCDR_20' ) start [2025-01-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200529', 'tblTempVendorCDR_20' ) end [2025-01-08 06:53:18] Production.INFO: ProcessCDR(1,14200529,1,1,2) [2025-01-08 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200529', 'tblTempUsageDetail_20' ) start [2025-01-08 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200529', 'tblTempUsageDetail_20' ) end [2025-01-08 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:53:21] Production.INFO: ==7023== Releasing lock... [2025-01-08 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:54:04 [end_date_ymd] => 2025-01-08 06:54:04 [RateCDR] => 1 ) [2025-01-08 06:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:54:04' and `end` < '2025-01-08 06:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:54:19] Production.INFO: count ==56 [2025-01-08 06:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:54:04 - End Time 2025-01-08 06:54:04 [2025-01-08 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200532', 'tblTempUsageDetail_20' ) start [2025-01-08 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200532', 'tblTempUsageDetail_20' ) end [2025-01-08 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200532', 'tblTempVendorCDR_20' ) start [2025-01-08 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200532', 'tblTempVendorCDR_20' ) end [2025-01-08 06:54:19] Production.INFO: ProcessCDR(1,14200532,1,1,2) [2025-01-08 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200532', 'tblTempUsageDetail_20' ) start [2025-01-08 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200532', 'tblTempUsageDetail_20' ) end [2025-01-08 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:54:22] Production.INFO: ==7112== Releasing lock... [2025-01-08 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:54:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:55:04 [end_date_ymd] => 2025-01-08 06:55:04 [RateCDR] => 1 ) [2025-01-08 06:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:55:04' and `end` < '2025-01-08 06:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:55:17] Production.INFO: count ==56 [2025-01-08 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:55:04 - End Time 2025-01-08 06:55:04 [2025-01-08 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200539', 'tblTempUsageDetail_20' ) start [2025-01-08 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200539', 'tblTempUsageDetail_20' ) end [2025-01-08 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200539', 'tblTempVendorCDR_20' ) start [2025-01-08 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200539', 'tblTempVendorCDR_20' ) end [2025-01-08 06:55:17] Production.INFO: ProcessCDR(1,14200539,1,1,2) [2025-01-08 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200539', 'tblTempUsageDetail_20' ) start [2025-01-08 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200539', 'tblTempUsageDetail_20' ) end [2025-01-08 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:55:21] Production.INFO: ==7198== Releasing lock... [2025-01-08 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:56:05 [end_date_ymd] => 2025-01-08 06:56:05 [RateCDR] => 1 ) [2025-01-08 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:56:05' and `end` < '2025-01-08 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:56:20] Production.INFO: count ==56 [2025-01-08 06:56:20] Production.ERROR: pbx CDR StartTime 2025-01-08 03:56:05 - End Time 2025-01-08 06:56:05 [2025-01-08 06:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200544', 'tblTempUsageDetail_20' ) start [2025-01-08 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200544', 'tblTempUsageDetail_20' ) end [2025-01-08 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200544', 'tblTempVendorCDR_20' ) start [2025-01-08 06:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200544', 'tblTempVendorCDR_20' ) end [2025-01-08 06:56:20] Production.INFO: ProcessCDR(1,14200544,1,1,2) [2025-01-08 06:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200544', 'tblTempUsageDetail_20' ) start [2025-01-08 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200544', 'tblTempUsageDetail_20' ) end [2025-01-08 06:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:56:23] Production.INFO: ==7283== Releasing lock... [2025-01-08 06:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:56:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:57:05 [end_date_ymd] => 2025-01-08 06:57:05 [RateCDR] => 1 ) [2025-01-08 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:57:05' and `end` < '2025-01-08 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:57:18] Production.INFO: count ==56 [2025-01-08 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-08 03:57:05 - End Time 2025-01-08 06:57:05 [2025-01-08 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200549', 'tblTempUsageDetail_20' ) start [2025-01-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200549', 'tblTempUsageDetail_20' ) end [2025-01-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200549', 'tblTempVendorCDR_20' ) start [2025-01-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200549', 'tblTempVendorCDR_20' ) end [2025-01-08 06:57:18] Production.INFO: ProcessCDR(1,14200549,1,1,2) [2025-01-08 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200549', 'tblTempUsageDetail_20' ) start [2025-01-08 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200549', 'tblTempUsageDetail_20' ) end [2025-01-08 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:57:21] Production.INFO: ==7357== Releasing lock... [2025-01-08 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:58:04 [end_date_ymd] => 2025-01-08 06:58:04 [RateCDR] => 1 ) [2025-01-08 06:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:58:04' and `end` < '2025-01-08 06:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:58:17] Production.INFO: count ==56 [2025-01-08 06:58:17] Production.ERROR: pbx CDR StartTime 2025-01-08 03:58:04 - End Time 2025-01-08 06:58:04 [2025-01-08 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200554', 'tblTempUsageDetail_20' ) start [2025-01-08 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200554', 'tblTempUsageDetail_20' ) end [2025-01-08 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200554', 'tblTempVendorCDR_20' ) start [2025-01-08 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200554', 'tblTempVendorCDR_20' ) end [2025-01-08 06:58:17] Production.INFO: ProcessCDR(1,14200554,1,1,2) [2025-01-08 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200554', 'tblTempUsageDetail_20' ) start [2025-01-08 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200554', 'tblTempUsageDetail_20' ) end [2025-01-08 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:58:20] Production.INFO: ==7440== Releasing lock... [2025-01-08 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:58:20] Production.INFO: 28 MB #Memory Used# [2025-01-08 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 03:59:05 [end_date_ymd] => 2025-01-08 06:59:05 [RateCDR] => 1 ) [2025-01-08 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 03:59:05' and `end` < '2025-01-08 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 06:59:19] Production.INFO: count ==56 [2025-01-08 06:59:19] Production.ERROR: pbx CDR StartTime 2025-01-08 03:59:05 - End Time 2025-01-08 06:59:05 [2025-01-08 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200559', 'tblTempUsageDetail_20' ) start [2025-01-08 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200559', 'tblTempUsageDetail_20' ) end [2025-01-08 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200559', 'tblTempVendorCDR_20' ) start [2025-01-08 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200559', 'tblTempVendorCDR_20' ) end [2025-01-08 06:59:19] Production.INFO: ProcessCDR(1,14200559,1,1,2) [2025-01-08 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200559', 'tblTempUsageDetail_20' ) start [2025-01-08 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200559', 'tblTempUsageDetail_20' ) end [2025-01-08 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 06:59:22] Production.INFO: ==7525== Releasing lock... [2025-01-08 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 06:59:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:00:05 [end_date_ymd] => 2025-01-08 07:00:05 [RateCDR] => 1 ) [2025-01-08 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:00:05' and `end` < '2025-01-08 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:00:19] Production.INFO: count ==60 [2025-01-08 07:00:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:00:05 - End Time 2025-01-08 07:00:05 [2025-01-08 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200565', 'tblTempUsageDetail_20' ) start [2025-01-08 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200565', 'tblTempUsageDetail_20' ) end [2025-01-08 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200565', 'tblTempVendorCDR_20' ) start [2025-01-08 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200565', 'tblTempVendorCDR_20' ) end [2025-01-08 07:00:19] Production.INFO: ProcessCDR(1,14200565,1,1,2) [2025-01-08 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200565', 'tblTempUsageDetail_20' ) start [2025-01-08 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200565', 'tblTempUsageDetail_20' ) end [2025-01-08 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:00:23] Production.INFO: ==7616== Releasing lock... [2025-01-08 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:00:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:01:05 [end_date_ymd] => 2025-01-08 07:01:05 [RateCDR] => 1 ) [2025-01-08 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:01:05' and `end` < '2025-01-08 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:01:21] Production.INFO: count ==64 [2025-01-08 07:01:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:01:05 - End Time 2025-01-08 07:01:05 [2025-01-08 07:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200570', 'tblTempUsageDetail_20' ) start [2025-01-08 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200570', 'tblTempUsageDetail_20' ) end [2025-01-08 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200570', 'tblTempVendorCDR_20' ) start [2025-01-08 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200570', 'tblTempVendorCDR_20' ) end [2025-01-08 07:01:21] Production.INFO: ProcessCDR(1,14200570,1,1,2) [2025-01-08 07:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200570', 'tblTempUsageDetail_20' ) start [2025-01-08 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200570', 'tblTempUsageDetail_20' ) end [2025-01-08 07:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:01:24] Production.INFO: ==7757== Releasing lock... [2025-01-08 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:01:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:02:05 [end_date_ymd] => 2025-01-08 07:02:05 [RateCDR] => 1 ) [2025-01-08 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:02:05' and `end` < '2025-01-08 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:02:22] Production.INFO: count ==64 [2025-01-08 07:02:22] Production.ERROR: pbx CDR StartTime 2025-01-08 04:02:05 - End Time 2025-01-08 07:02:05 [2025-01-08 07:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200575', 'tblTempUsageDetail_20' ) start [2025-01-08 07:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200575', 'tblTempUsageDetail_20' ) end [2025-01-08 07:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200575', 'tblTempVendorCDR_20' ) start [2025-01-08 07:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200575', 'tblTempVendorCDR_20' ) end [2025-01-08 07:02:22] Production.INFO: ProcessCDR(1,14200575,1,1,2) [2025-01-08 07:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200575', 'tblTempUsageDetail_20' ) start [2025-01-08 07:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200575', 'tblTempUsageDetail_20' ) end [2025-01-08 07:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:02:25] Production.INFO: ==7880== Releasing lock... [2025-01-08 07:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:02:25] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:03:06 [end_date_ymd] => 2025-01-08 07:03:06 [RateCDR] => 1 ) [2025-01-08 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:03:06' and `end` < '2025-01-08 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:03:21] Production.INFO: count ==64 [2025-01-08 07:03:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:03:06 - End Time 2025-01-08 07:03:06 [2025-01-08 07:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200580', 'tblTempUsageDetail_20' ) start [2025-01-08 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200580', 'tblTempUsageDetail_20' ) end [2025-01-08 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200580', 'tblTempVendorCDR_20' ) start [2025-01-08 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200580', 'tblTempVendorCDR_20' ) end [2025-01-08 07:03:21] Production.INFO: ProcessCDR(1,14200580,1,1,2) [2025-01-08 07:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200580', 'tblTempUsageDetail_20' ) start [2025-01-08 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200580', 'tblTempUsageDetail_20' ) end [2025-01-08 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:03:24] Production.INFO: ==7967== Releasing lock... [2025-01-08 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:03:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:04:05 [end_date_ymd] => 2025-01-08 07:04:05 [RateCDR] => 1 ) [2025-01-08 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:04:05' and `end` < '2025-01-08 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:04:21] Production.INFO: count ==66 [2025-01-08 07:04:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:04:05 - End Time 2025-01-08 07:04:05 [2025-01-08 07:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200585', 'tblTempUsageDetail_20' ) start [2025-01-08 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200585', 'tblTempUsageDetail_20' ) end [2025-01-08 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200585', 'tblTempVendorCDR_20' ) start [2025-01-08 07:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200585', 'tblTempVendorCDR_20' ) end [2025-01-08 07:04:21] Production.INFO: ProcessCDR(1,14200585,1,1,2) [2025-01-08 07:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200585', 'tblTempUsageDetail_20' ) start [2025-01-08 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200585', 'tblTempUsageDetail_20' ) end [2025-01-08 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:04:24] Production.INFO: ==8051== Releasing lock... [2025-01-08 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:04:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:05:05 [end_date_ymd] => 2025-01-08 07:05:05 [RateCDR] => 1 ) [2025-01-08 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:05:05' and `end` < '2025-01-08 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:05:21] Production.INFO: count ==66 [2025-01-08 07:05:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:05:05 - End Time 2025-01-08 07:05:05 [2025-01-08 07:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200590', 'tblTempUsageDetail_20' ) start [2025-01-08 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200590', 'tblTempUsageDetail_20' ) end [2025-01-08 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200590', 'tblTempVendorCDR_20' ) start [2025-01-08 07:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200590', 'tblTempVendorCDR_20' ) end [2025-01-08 07:05:21] Production.INFO: ProcessCDR(1,14200590,1,1,2) [2025-01-08 07:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200590', 'tblTempUsageDetail_20' ) start [2025-01-08 07:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200590', 'tblTempUsageDetail_20' ) end [2025-01-08 07:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:05:24] Production.INFO: ==8216== Releasing lock... [2025-01-08 07:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:05:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:06:04 [end_date_ymd] => 2025-01-08 07:06:04 [RateCDR] => 1 ) [2025-01-08 07:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:06:04' and `end` < '2025-01-08 07:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:06:19] Production.INFO: count ==66 [2025-01-08 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:06:04 - End Time 2025-01-08 07:06:04 [2025-01-08 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200595', 'tblTempUsageDetail_20' ) start [2025-01-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200595', 'tblTempUsageDetail_20' ) end [2025-01-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200595', 'tblTempVendorCDR_20' ) start [2025-01-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200595', 'tblTempVendorCDR_20' ) end [2025-01-08 07:06:19] Production.INFO: ProcessCDR(1,14200595,1,1,2) [2025-01-08 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200595', 'tblTempUsageDetail_20' ) start [2025-01-08 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200595', 'tblTempUsageDetail_20' ) end [2025-01-08 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:06:22] Production.INFO: ==8303== Releasing lock... [2025-01-08 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:07:05 [end_date_ymd] => 2025-01-08 07:07:05 [RateCDR] => 1 ) [2025-01-08 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:07:05' and `end` < '2025-01-08 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:07:21] Production.INFO: count ==66 [2025-01-08 07:07:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:07:05 - End Time 2025-01-08 07:07:05 [2025-01-08 07:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200600', 'tblTempUsageDetail_20' ) start [2025-01-08 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200600', 'tblTempUsageDetail_20' ) end [2025-01-08 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200600', 'tblTempVendorCDR_20' ) start [2025-01-08 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200600', 'tblTempVendorCDR_20' ) end [2025-01-08 07:07:21] Production.INFO: ProcessCDR(1,14200600,1,1,2) [2025-01-08 07:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200600', 'tblTempUsageDetail_20' ) start [2025-01-08 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200600', 'tblTempUsageDetail_20' ) end [2025-01-08 07:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:07:24] Production.INFO: ==8424== Releasing lock... [2025-01-08 07:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:07:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:08:05 [end_date_ymd] => 2025-01-08 07:08:05 [RateCDR] => 1 ) [2025-01-08 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:08:05' and `end` < '2025-01-08 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:08:21] Production.INFO: count ==66 [2025-01-08 07:08:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:08:05 - End Time 2025-01-08 07:08:05 [2025-01-08 07:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200605', 'tblTempUsageDetail_20' ) start [2025-01-08 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200605', 'tblTempUsageDetail_20' ) end [2025-01-08 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200605', 'tblTempVendorCDR_20' ) start [2025-01-08 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200605', 'tblTempVendorCDR_20' ) end [2025-01-08 07:08:21] Production.INFO: ProcessCDR(1,14200605,1,1,2) [2025-01-08 07:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200605', 'tblTempUsageDetail_20' ) start [2025-01-08 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200605', 'tblTempUsageDetail_20' ) end [2025-01-08 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:08:24] Production.INFO: ==8586== Releasing lock... [2025-01-08 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:08:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:09:05 [end_date_ymd] => 2025-01-08 07:09:05 [RateCDR] => 1 ) [2025-01-08 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:09:05' and `end` < '2025-01-08 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:09:21] Production.INFO: count ==66 [2025-01-08 07:09:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:09:05 - End Time 2025-01-08 07:09:05 [2025-01-08 07:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200610', 'tblTempUsageDetail_20' ) start [2025-01-08 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200610', 'tblTempUsageDetail_20' ) end [2025-01-08 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200610', 'tblTempVendorCDR_20' ) start [2025-01-08 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200610', 'tblTempVendorCDR_20' ) end [2025-01-08 07:09:21] Production.INFO: ProcessCDR(1,14200610,1,1,2) [2025-01-08 07:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200610', 'tblTempUsageDetail_20' ) start [2025-01-08 07:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200610', 'tblTempUsageDetail_20' ) end [2025-01-08 07:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:09:24] Production.INFO: ==8671== Releasing lock... [2025-01-08 07:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:09:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:10:06 [end_date_ymd] => 2025-01-08 07:10:06 [RateCDR] => 1 ) [2025-01-08 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:10:06' and `end` < '2025-01-08 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:10:21] Production.INFO: count ==74 [2025-01-08 07:10:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:10:06 - End Time 2025-01-08 07:10:06 [2025-01-08 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200616', 'tblTempUsageDetail_20' ) start [2025-01-08 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200616', 'tblTempUsageDetail_20' ) end [2025-01-08 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200616', 'tblTempVendorCDR_20' ) start [2025-01-08 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200616', 'tblTempVendorCDR_20' ) end [2025-01-08 07:10:21] Production.INFO: ProcessCDR(1,14200616,1,1,2) [2025-01-08 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200616', 'tblTempUsageDetail_20' ) start [2025-01-08 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200616', 'tblTempUsageDetail_20' ) end [2025-01-08 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:10:24] Production.INFO: ==8761== Releasing lock... [2025-01-08 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:10:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:11:04 [end_date_ymd] => 2025-01-08 07:11:04 [RateCDR] => 1 ) [2025-01-08 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:11:04' and `end` < '2025-01-08 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:11:19] Production.INFO: count ==75 [2025-01-08 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:11:04 - End Time 2025-01-08 07:11:04 [2025-01-08 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200621', 'tblTempUsageDetail_20' ) start [2025-01-08 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200621', 'tblTempUsageDetail_20' ) end [2025-01-08 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200621', 'tblTempVendorCDR_20' ) start [2025-01-08 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200621', 'tblTempVendorCDR_20' ) end [2025-01-08 07:11:19] Production.INFO: ProcessCDR(1,14200621,1,1,2) [2025-01-08 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200621', 'tblTempUsageDetail_20' ) start [2025-01-08 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200621', 'tblTempUsageDetail_20' ) end [2025-01-08 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:11:23] Production.INFO: ==8846== Releasing lock... [2025-01-08 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:12:05 [end_date_ymd] => 2025-01-08 07:12:05 [RateCDR] => 1 ) [2025-01-08 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:12:05' and `end` < '2025-01-08 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:12:21] Production.INFO: count ==75 [2025-01-08 07:12:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:12:05 - End Time 2025-01-08 07:12:05 [2025-01-08 07:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200626', 'tblTempUsageDetail_20' ) start [2025-01-08 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200626', 'tblTempUsageDetail_20' ) end [2025-01-08 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200626', 'tblTempVendorCDR_20' ) start [2025-01-08 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200626', 'tblTempVendorCDR_20' ) end [2025-01-08 07:12:21] Production.INFO: ProcessCDR(1,14200626,1,1,2) [2025-01-08 07:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200626', 'tblTempUsageDetail_20' ) start [2025-01-08 07:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200626', 'tblTempUsageDetail_20' ) end [2025-01-08 07:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:12:24] Production.INFO: ==9003== Releasing lock... [2025-01-08 07:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:12:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:13:05 [end_date_ymd] => 2025-01-08 07:13:05 [RateCDR] => 1 ) [2025-01-08 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:13:05' and `end` < '2025-01-08 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:13:19] Production.INFO: count ==75 [2025-01-08 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:13:05 - End Time 2025-01-08 07:13:05 [2025-01-08 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200631', 'tblTempUsageDetail_20' ) start [2025-01-08 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200631', 'tblTempUsageDetail_20' ) end [2025-01-08 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200631', 'tblTempVendorCDR_20' ) start [2025-01-08 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200631', 'tblTempVendorCDR_20' ) end [2025-01-08 07:13:19] Production.INFO: ProcessCDR(1,14200631,1,1,2) [2025-01-08 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200631', 'tblTempUsageDetail_20' ) start [2025-01-08 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200631', 'tblTempUsageDetail_20' ) end [2025-01-08 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:13:23] Production.INFO: ==9089== Releasing lock... [2025-01-08 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:14:05 [end_date_ymd] => 2025-01-08 07:14:05 [RateCDR] => 1 ) [2025-01-08 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:14:05' and `end` < '2025-01-08 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:14:20] Production.INFO: count ==75 [2025-01-08 07:14:20] Production.ERROR: pbx CDR StartTime 2025-01-08 04:14:05 - End Time 2025-01-08 07:14:05 [2025-01-08 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200636', 'tblTempUsageDetail_20' ) start [2025-01-08 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200636', 'tblTempUsageDetail_20' ) end [2025-01-08 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200636', 'tblTempVendorCDR_20' ) start [2025-01-08 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200636', 'tblTempVendorCDR_20' ) end [2025-01-08 07:14:20] Production.INFO: ProcessCDR(1,14200636,1,1,2) [2025-01-08 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200636', 'tblTempUsageDetail_20' ) start [2025-01-08 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200636', 'tblTempUsageDetail_20' ) end [2025-01-08 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:14:23] Production.INFO: ==9175== Releasing lock... [2025-01-08 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:15:05 [end_date_ymd] => 2025-01-08 07:15:05 [RateCDR] => 1 ) [2025-01-08 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:15:05' and `end` < '2025-01-08 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:15:20] Production.INFO: count ==75 [2025-01-08 07:15:20] Production.ERROR: pbx CDR StartTime 2025-01-08 04:15:05 - End Time 2025-01-08 07:15:05 [2025-01-08 07:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200641', 'tblTempUsageDetail_20' ) start [2025-01-08 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200641', 'tblTempUsageDetail_20' ) end [2025-01-08 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200641', 'tblTempVendorCDR_20' ) start [2025-01-08 07:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200641', 'tblTempVendorCDR_20' ) end [2025-01-08 07:15:20] Production.INFO: ProcessCDR(1,14200641,1,1,2) [2025-01-08 07:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200641', 'tblTempUsageDetail_20' ) start [2025-01-08 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200641', 'tblTempUsageDetail_20' ) end [2025-01-08 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:15:23] Production.INFO: ==9332== Releasing lock... [2025-01-08 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:15:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:16:05 [end_date_ymd] => 2025-01-08 07:16:05 [RateCDR] => 1 ) [2025-01-08 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:16:05' and `end` < '2025-01-08 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:16:21] Production.INFO: count ==76 [2025-01-08 07:16:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:16:05 - End Time 2025-01-08 07:16:05 [2025-01-08 07:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200646', 'tblTempUsageDetail_20' ) start [2025-01-08 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200646', 'tblTempUsageDetail_20' ) end [2025-01-08 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200646', 'tblTempVendorCDR_20' ) start [2025-01-08 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200646', 'tblTempVendorCDR_20' ) end [2025-01-08 07:16:21] Production.INFO: ProcessCDR(1,14200646,1,1,2) [2025-01-08 07:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200646', 'tblTempUsageDetail_20' ) start [2025-01-08 07:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200646', 'tblTempUsageDetail_20' ) end [2025-01-08 07:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:16:25] Production.INFO: ==9415== Releasing lock... [2025-01-08 07:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:16:25] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:17:05 [end_date_ymd] => 2025-01-08 07:17:05 [RateCDR] => 1 ) [2025-01-08 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:17:05' and `end` < '2025-01-08 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:17:20] Production.INFO: count ==76 [2025-01-08 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-08 04:17:05 - End Time 2025-01-08 07:17:05 [2025-01-08 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200651', 'tblTempUsageDetail_20' ) start [2025-01-08 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200651', 'tblTempUsageDetail_20' ) end [2025-01-08 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200651', 'tblTempVendorCDR_20' ) start [2025-01-08 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200651', 'tblTempVendorCDR_20' ) end [2025-01-08 07:17:20] Production.INFO: ProcessCDR(1,14200651,1,1,2) [2025-01-08 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200651', 'tblTempUsageDetail_20' ) start [2025-01-08 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200651', 'tblTempUsageDetail_20' ) end [2025-01-08 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:17:23] Production.INFO: ==9501== Releasing lock... [2025-01-08 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:17:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:18:05 [end_date_ymd] => 2025-01-08 07:18:05 [RateCDR] => 1 ) [2025-01-08 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:18:05' and `end` < '2025-01-08 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:18:23] Production.INFO: count ==77 [2025-01-08 07:18:23] Production.ERROR: pbx CDR StartTime 2025-01-08 04:18:05 - End Time 2025-01-08 07:18:05 [2025-01-08 07:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200656', 'tblTempUsageDetail_20' ) start [2025-01-08 07:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200656', 'tblTempUsageDetail_20' ) end [2025-01-08 07:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200656', 'tblTempVendorCDR_20' ) start [2025-01-08 07:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200656', 'tblTempVendorCDR_20' ) end [2025-01-08 07:18:23] Production.INFO: ProcessCDR(1,14200656,1,1,2) [2025-01-08 07:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200656', 'tblTempUsageDetail_20' ) start [2025-01-08 07:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200656', 'tblTempUsageDetail_20' ) end [2025-01-08 07:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:18:27] Production.INFO: ==9585== Releasing lock... [2025-01-08 07:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:18:27] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:19:05 [end_date_ymd] => 2025-01-08 07:19:05 [RateCDR] => 1 ) [2025-01-08 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:19:05' and `end` < '2025-01-08 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:19:18] Production.INFO: count ==77 [2025-01-08 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:19:05 - End Time 2025-01-08 07:19:05 [2025-01-08 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200661', 'tblTempUsageDetail_20' ) start [2025-01-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200661', 'tblTempUsageDetail_20' ) end [2025-01-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200661', 'tblTempVendorCDR_20' ) start [2025-01-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200661', 'tblTempVendorCDR_20' ) end [2025-01-08 07:19:18] Production.INFO: ProcessCDR(1,14200661,1,1,2) [2025-01-08 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200661', 'tblTempUsageDetail_20' ) start [2025-01-08 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200661', 'tblTempUsageDetail_20' ) end [2025-01-08 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:19:21] Production.INFO: ==9671== Releasing lock... [2025-01-08 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:20:06 [end_date_ymd] => 2025-01-08 07:20:06 [RateCDR] => 1 ) [2025-01-08 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:20:06' and `end` < '2025-01-08 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:20:19] Production.INFO: count ==75 [2025-01-08 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:20:06 - End Time 2025-01-08 07:20:06 [2025-01-08 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200667', 'tblTempUsageDetail_20' ) start [2025-01-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200667', 'tblTempUsageDetail_20' ) end [2025-01-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200667', 'tblTempVendorCDR_20' ) start [2025-01-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200667', 'tblTempVendorCDR_20' ) end [2025-01-08 07:20:19] Production.INFO: ProcessCDR(1,14200667,1,1,2) [2025-01-08 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200667', 'tblTempUsageDetail_20' ) start [2025-01-08 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200667', 'tblTempUsageDetail_20' ) end [2025-01-08 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:20:22] Production.INFO: ==9756== Releasing lock... [2025-01-08 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:21:05 [end_date_ymd] => 2025-01-08 07:21:05 [RateCDR] => 1 ) [2025-01-08 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:21:05' and `end` < '2025-01-08 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:21:21] Production.INFO: count ==75 [2025-01-08 07:21:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:21:05 - End Time 2025-01-08 07:21:05 [2025-01-08 07:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200672', 'tblTempUsageDetail_20' ) start [2025-01-08 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200672', 'tblTempUsageDetail_20' ) end [2025-01-08 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200672', 'tblTempVendorCDR_20' ) start [2025-01-08 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200672', 'tblTempVendorCDR_20' ) end [2025-01-08 07:21:21] Production.INFO: ProcessCDR(1,14200672,1,1,2) [2025-01-08 07:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200672', 'tblTempUsageDetail_20' ) start [2025-01-08 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200672', 'tblTempUsageDetail_20' ) end [2025-01-08 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:21:24] Production.INFO: ==9842== Releasing lock... [2025-01-08 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:21:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:22:04 [end_date_ymd] => 2025-01-08 07:22:04 [RateCDR] => 1 ) [2025-01-08 07:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:22:04' and `end` < '2025-01-08 07:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:22:21] Production.INFO: count ==75 [2025-01-08 07:22:21] Production.ERROR: pbx CDR StartTime 2025-01-08 04:22:04 - End Time 2025-01-08 07:22:04 [2025-01-08 07:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200677', 'tblTempUsageDetail_20' ) start [2025-01-08 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200677', 'tblTempUsageDetail_20' ) end [2025-01-08 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200677', 'tblTempVendorCDR_20' ) start [2025-01-08 07:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200677', 'tblTempVendorCDR_20' ) end [2025-01-08 07:22:21] Production.INFO: ProcessCDR(1,14200677,1,1,2) [2025-01-08 07:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200677', 'tblTempUsageDetail_20' ) start [2025-01-08 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200677', 'tblTempUsageDetail_20' ) end [2025-01-08 07:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:22:24] Production.INFO: ==9926== Releasing lock... [2025-01-08 07:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:22:24] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:23:05 [end_date_ymd] => 2025-01-08 07:23:05 [RateCDR] => 1 ) [2025-01-08 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:23:05' and `end` < '2025-01-08 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:23:19] Production.INFO: count ==75 [2025-01-08 07:23:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:23:05 - End Time 2025-01-08 07:23:05 [2025-01-08 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200682', 'tblTempUsageDetail_20' ) start [2025-01-08 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200682', 'tblTempUsageDetail_20' ) end [2025-01-08 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200682', 'tblTempVendorCDR_20' ) start [2025-01-08 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200682', 'tblTempVendorCDR_20' ) end [2025-01-08 07:23:19] Production.INFO: ProcessCDR(1,14200682,1,1,2) [2025-01-08 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200682', 'tblTempUsageDetail_20' ) start [2025-01-08 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200682', 'tblTempUsageDetail_20' ) end [2025-01-08 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:23:22] Production.INFO: ==10051== Releasing lock... [2025-01-08 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:24:05 [end_date_ymd] => 2025-01-08 07:24:05 [RateCDR] => 1 ) [2025-01-08 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:24:05' and `end` < '2025-01-08 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:24:18] Production.INFO: count ==76 [2025-01-08 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:24:05 - End Time 2025-01-08 07:24:05 [2025-01-08 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200687', 'tblTempUsageDetail_20' ) start [2025-01-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200687', 'tblTempUsageDetail_20' ) end [2025-01-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200687', 'tblTempVendorCDR_20' ) start [2025-01-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200687', 'tblTempVendorCDR_20' ) end [2025-01-08 07:24:18] Production.INFO: ProcessCDR(1,14200687,1,1,2) [2025-01-08 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200687', 'tblTempUsageDetail_20' ) start [2025-01-08 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200687', 'tblTempUsageDetail_20' ) end [2025-01-08 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:24:23] Production.INFO: ==10138== Releasing lock... [2025-01-08 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:24:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:25:05 [end_date_ymd] => 2025-01-08 07:25:05 [RateCDR] => 1 ) [2025-01-08 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:25:05' and `end` < '2025-01-08 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:25:18] Production.INFO: count ==76 [2025-01-08 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:25:05 - End Time 2025-01-08 07:25:05 [2025-01-08 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200692', 'tblTempUsageDetail_20' ) start [2025-01-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200692', 'tblTempUsageDetail_20' ) end [2025-01-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200692', 'tblTempVendorCDR_20' ) start [2025-01-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200692', 'tblTempVendorCDR_20' ) end [2025-01-08 07:25:18] Production.INFO: ProcessCDR(1,14200692,1,1,2) [2025-01-08 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200692', 'tblTempUsageDetail_20' ) start [2025-01-08 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200692', 'tblTempUsageDetail_20' ) end [2025-01-08 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:25:21] Production.INFO: ==10217== Releasing lock... [2025-01-08 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:26:05 [end_date_ymd] => 2025-01-08 07:26:05 [RateCDR] => 1 ) [2025-01-08 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:26:05' and `end` < '2025-01-08 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:26:18] Production.INFO: count ==76 [2025-01-08 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:26:05 - End Time 2025-01-08 07:26:05 [2025-01-08 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200697', 'tblTempUsageDetail_20' ) start [2025-01-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200697', 'tblTempUsageDetail_20' ) end [2025-01-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200697', 'tblTempVendorCDR_20' ) start [2025-01-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200697', 'tblTempVendorCDR_20' ) end [2025-01-08 07:26:18] Production.INFO: ProcessCDR(1,14200697,1,1,2) [2025-01-08 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200697', 'tblTempUsageDetail_20' ) start [2025-01-08 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200697', 'tblTempUsageDetail_20' ) end [2025-01-08 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:26:21] Production.INFO: ==10302== Releasing lock... [2025-01-08 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:27:05 [end_date_ymd] => 2025-01-08 07:27:05 [RateCDR] => 1 ) [2025-01-08 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:27:05' and `end` < '2025-01-08 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:27:19] Production.INFO: count ==76 [2025-01-08 07:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:27:05 - End Time 2025-01-08 07:27:05 [2025-01-08 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200702', 'tblTempUsageDetail_20' ) start [2025-01-08 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200702', 'tblTempUsageDetail_20' ) end [2025-01-08 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200702', 'tblTempVendorCDR_20' ) start [2025-01-08 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200702', 'tblTempVendorCDR_20' ) end [2025-01-08 07:27:19] Production.INFO: ProcessCDR(1,14200702,1,1,2) [2025-01-08 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200702', 'tblTempUsageDetail_20' ) start [2025-01-08 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200702', 'tblTempUsageDetail_20' ) end [2025-01-08 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:27:22] Production.INFO: ==10390== Releasing lock... [2025-01-08 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:28:04 [end_date_ymd] => 2025-01-08 07:28:04 [RateCDR] => 1 ) [2025-01-08 07:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:28:04' and `end` < '2025-01-08 07:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:28:18] Production.INFO: count ==77 [2025-01-08 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:28:04 - End Time 2025-01-08 07:28:04 [2025-01-08 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200707', 'tblTempUsageDetail_20' ) start [2025-01-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200707', 'tblTempUsageDetail_20' ) end [2025-01-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200707', 'tblTempVendorCDR_20' ) start [2025-01-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200707', 'tblTempVendorCDR_20' ) end [2025-01-08 07:28:18] Production.INFO: ProcessCDR(1,14200707,1,1,2) [2025-01-08 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200707', 'tblTempUsageDetail_20' ) start [2025-01-08 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200707', 'tblTempUsageDetail_20' ) end [2025-01-08 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:28:23] Production.INFO: ==10475== Releasing lock... [2025-01-08 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:28:23] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:29:05 [end_date_ymd] => 2025-01-08 07:29:05 [RateCDR] => 1 ) [2025-01-08 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:29:05' and `end` < '2025-01-08 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:29:18] Production.INFO: count ==77 [2025-01-08 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:29:05 - End Time 2025-01-08 07:29:05 [2025-01-08 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200712', 'tblTempUsageDetail_20' ) start [2025-01-08 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200712', 'tblTempUsageDetail_20' ) end [2025-01-08 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200712', 'tblTempVendorCDR_20' ) start [2025-01-08 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200712', 'tblTempVendorCDR_20' ) end [2025-01-08 07:29:18] Production.INFO: ProcessCDR(1,14200712,1,1,2) [2025-01-08 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200712', 'tblTempUsageDetail_20' ) start [2025-01-08 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200712', 'tblTempUsageDetail_20' ) end [2025-01-08 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:29:21] Production.INFO: ==10560== Releasing lock... [2025-01-08 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-08 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:30:06 [end_date_ymd] => 2025-01-08 07:30:06 [RateCDR] => 1 ) [2025-01-08 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:30:06' and `end` < '2025-01-08 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:30:18] Production.INFO: count ==88 [2025-01-08 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:30:06 - End Time 2025-01-08 07:30:06 [2025-01-08 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200718', 'tblTempUsageDetail_20' ) start [2025-01-08 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200718', 'tblTempUsageDetail_20' ) end [2025-01-08 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200718', 'tblTempVendorCDR_20' ) start [2025-01-08 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200718', 'tblTempVendorCDR_20' ) end [2025-01-08 07:30:18] Production.INFO: ProcessCDR(1,14200718,1,1,2) [2025-01-08 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200718', 'tblTempUsageDetail_20' ) start [2025-01-08 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200718', 'tblTempUsageDetail_20' ) end [2025-01-08 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:30:22] Production.INFO: ==10640== Releasing lock... [2025-01-08 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:31:05 [end_date_ymd] => 2025-01-08 07:31:05 [RateCDR] => 1 ) [2025-01-08 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:31:05' and `end` < '2025-01-08 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:31:18] Production.INFO: count ==108 [2025-01-08 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:31:05 - End Time 2025-01-08 07:31:05 [2025-01-08 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200723', 'tblTempUsageDetail_20' ) start [2025-01-08 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200723', 'tblTempUsageDetail_20' ) end [2025-01-08 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200723', 'tblTempVendorCDR_20' ) start [2025-01-08 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200723', 'tblTempVendorCDR_20' ) end [2025-01-08 07:31:18] Production.INFO: ProcessCDR(1,14200723,1,1,2) [2025-01-08 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200723', 'tblTempUsageDetail_20' ) start [2025-01-08 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200723', 'tblTempUsageDetail_20' ) end [2025-01-08 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:31:22] Production.INFO: ==10727== Releasing lock... [2025-01-08 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:32:06 [end_date_ymd] => 2025-01-08 07:32:06 [RateCDR] => 1 ) [2025-01-08 07:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:32:06' and `end` < '2025-01-08 07:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:32:19] Production.INFO: count ==109 [2025-01-08 07:32:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:32:06 - End Time 2025-01-08 07:32:06 [2025-01-08 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200728', 'tblTempUsageDetail_20' ) start [2025-01-08 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200728', 'tblTempUsageDetail_20' ) end [2025-01-08 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200728', 'tblTempVendorCDR_20' ) start [2025-01-08 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200728', 'tblTempVendorCDR_20' ) end [2025-01-08 07:32:19] Production.INFO: ProcessCDR(1,14200728,1,1,2) [2025-01-08 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200728', 'tblTempUsageDetail_20' ) start [2025-01-08 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200728', 'tblTempUsageDetail_20' ) end [2025-01-08 07:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:32:23] Production.INFO: ==10812== Releasing lock... [2025-01-08 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:32:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:33:05 [end_date_ymd] => 2025-01-08 07:33:05 [RateCDR] => 1 ) [2025-01-08 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:33:05' and `end` < '2025-01-08 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:33:19] Production.INFO: count ==109 [2025-01-08 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:33:05 - End Time 2025-01-08 07:33:05 [2025-01-08 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200733', 'tblTempUsageDetail_20' ) start [2025-01-08 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200733', 'tblTempUsageDetail_20' ) end [2025-01-08 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200733', 'tblTempVendorCDR_20' ) start [2025-01-08 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200733', 'tblTempVendorCDR_20' ) end [2025-01-08 07:33:19] Production.INFO: ProcessCDR(1,14200733,1,1,2) [2025-01-08 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200733', 'tblTempUsageDetail_20' ) start [2025-01-08 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200733', 'tblTempUsageDetail_20' ) end [2025-01-08 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:33:22] Production.INFO: ==10893== Releasing lock... [2025-01-08 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:34:05 [end_date_ymd] => 2025-01-08 07:34:05 [RateCDR] => 1 ) [2025-01-08 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:34:05' and `end` < '2025-01-08 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:34:18] Production.INFO: count ==109 [2025-01-08 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:34:05 - End Time 2025-01-08 07:34:05 [2025-01-08 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200738', 'tblTempUsageDetail_20' ) start [2025-01-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200738', 'tblTempUsageDetail_20' ) end [2025-01-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200738', 'tblTempVendorCDR_20' ) start [2025-01-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200738', 'tblTempVendorCDR_20' ) end [2025-01-08 07:34:18] Production.INFO: ProcessCDR(1,14200738,1,1,2) [2025-01-08 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200738', 'tblTempUsageDetail_20' ) start [2025-01-08 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200738', 'tblTempUsageDetail_20' ) end [2025-01-08 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:34:21] Production.INFO: ==10990== Releasing lock... [2025-01-08 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:35:04 [end_date_ymd] => 2025-01-08 07:35:04 [RateCDR] => 1 ) [2025-01-08 07:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:35:04' and `end` < '2025-01-08 07:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:35:17] Production.INFO: count ==109 [2025-01-08 07:35:17] Production.ERROR: pbx CDR StartTime 2025-01-08 04:35:04 - End Time 2025-01-08 07:35:04 [2025-01-08 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200741', 'tblTempUsageDetail_20' ) start [2025-01-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200741', 'tblTempUsageDetail_20' ) end [2025-01-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200741', 'tblTempVendorCDR_20' ) start [2025-01-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200741', 'tblTempVendorCDR_20' ) end [2025-01-08 07:35:17] Production.INFO: ProcessCDR(1,14200741,1,1,2) [2025-01-08 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200741', 'tblTempUsageDetail_20' ) start [2025-01-08 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200741', 'tblTempUsageDetail_20' ) end [2025-01-08 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:35:21] Production.INFO: ==11078== Releasing lock... [2025-01-08 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:36:05 [end_date_ymd] => 2025-01-08 07:36:05 [RateCDR] => 1 ) [2025-01-08 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:36:05' and `end` < '2025-01-08 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:36:18] Production.INFO: count ==109 [2025-01-08 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:36:05 - End Time 2025-01-08 07:36:05 [2025-01-08 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200748', 'tblTempUsageDetail_20' ) start [2025-01-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200748', 'tblTempUsageDetail_20' ) end [2025-01-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200748', 'tblTempVendorCDR_20' ) start [2025-01-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200748', 'tblTempVendorCDR_20' ) end [2025-01-08 07:36:18] Production.INFO: ProcessCDR(1,14200748,1,1,2) [2025-01-08 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200748', 'tblTempUsageDetail_20' ) start [2025-01-08 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200748', 'tblTempUsageDetail_20' ) end [2025-01-08 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:36:21] Production.INFO: ==11163== Releasing lock... [2025-01-08 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:37:05 [end_date_ymd] => 2025-01-08 07:37:05 [RateCDR] => 1 ) [2025-01-08 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:37:05' and `end` < '2025-01-08 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:37:18] Production.INFO: count ==109 [2025-01-08 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:37:05 - End Time 2025-01-08 07:37:05 [2025-01-08 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200753', 'tblTempUsageDetail_20' ) start [2025-01-08 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200753', 'tblTempUsageDetail_20' ) end [2025-01-08 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200753', 'tblTempVendorCDR_20' ) start [2025-01-08 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200753', 'tblTempVendorCDR_20' ) end [2025-01-08 07:37:18] Production.INFO: ProcessCDR(1,14200753,1,1,2) [2025-01-08 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200753', 'tblTempUsageDetail_20' ) start [2025-01-08 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200753', 'tblTempUsageDetail_20' ) end [2025-01-08 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:37:21] Production.INFO: ==11255== Releasing lock... [2025-01-08 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:38:05 [end_date_ymd] => 2025-01-08 07:38:05 [RateCDR] => 1 ) [2025-01-08 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:38:05' and `end` < '2025-01-08 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:38:17] Production.INFO: count ==110 [2025-01-08 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:38:05 - End Time 2025-01-08 07:38:05 [2025-01-08 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200758', 'tblTempUsageDetail_20' ) start [2025-01-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200758', 'tblTempUsageDetail_20' ) end [2025-01-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200758', 'tblTempVendorCDR_20' ) start [2025-01-08 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200758', 'tblTempVendorCDR_20' ) end [2025-01-08 07:38:18] Production.INFO: ProcessCDR(1,14200758,1,1,2) [2025-01-08 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200758', 'tblTempUsageDetail_20' ) start [2025-01-08 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200758', 'tblTempUsageDetail_20' ) end [2025-01-08 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:38:21] Production.INFO: ==11411== Releasing lock... [2025-01-08 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:39:04 [end_date_ymd] => 2025-01-08 07:39:04 [RateCDR] => 1 ) [2025-01-08 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:39:04' and `end` < '2025-01-08 07:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:39:18] Production.INFO: count ==110 [2025-01-08 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:39:04 - End Time 2025-01-08 07:39:04 [2025-01-08 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200763', 'tblTempUsageDetail_20' ) start [2025-01-08 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200763', 'tblTempUsageDetail_20' ) end [2025-01-08 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200763', 'tblTempVendorCDR_20' ) start [2025-01-08 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200763', 'tblTempVendorCDR_20' ) end [2025-01-08 07:39:18] Production.INFO: ProcessCDR(1,14200763,1,1,2) [2025-01-08 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200763', 'tblTempUsageDetail_20' ) start [2025-01-08 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200763', 'tblTempUsageDetail_20' ) end [2025-01-08 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:39:21] Production.INFO: ==11528== Releasing lock... [2025-01-08 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:40:05 [end_date_ymd] => 2025-01-08 07:40:05 [RateCDR] => 1 ) [2025-01-08 07:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:40:05' and `end` < '2025-01-08 07:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:40:19] Production.INFO: count ==110 [2025-01-08 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:40:05 - End Time 2025-01-08 07:40:05 [2025-01-08 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200769', 'tblTempUsageDetail_20' ) start [2025-01-08 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200769', 'tblTempUsageDetail_20' ) end [2025-01-08 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200769', 'tblTempVendorCDR_20' ) start [2025-01-08 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200769', 'tblTempVendorCDR_20' ) end [2025-01-08 07:40:19] Production.INFO: ProcessCDR(1,14200769,1,1,2) [2025-01-08 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200769', 'tblTempUsageDetail_20' ) start [2025-01-08 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200769', 'tblTempUsageDetail_20' ) end [2025-01-08 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:40:22] Production.INFO: ==11646== Releasing lock... [2025-01-08 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:41:05 [end_date_ymd] => 2025-01-08 07:41:05 [RateCDR] => 1 ) [2025-01-08 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:41:05' and `end` < '2025-01-08 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:41:18] Production.INFO: count ==110 [2025-01-08 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:41:05 - End Time 2025-01-08 07:41:05 [2025-01-08 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200774', 'tblTempUsageDetail_20' ) start [2025-01-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200774', 'tblTempUsageDetail_20' ) end [2025-01-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200774', 'tblTempVendorCDR_20' ) start [2025-01-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200774', 'tblTempVendorCDR_20' ) end [2025-01-08 07:41:18] Production.INFO: ProcessCDR(1,14200774,1,1,2) [2025-01-08 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200774', 'tblTempUsageDetail_20' ) start [2025-01-08 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200774', 'tblTempUsageDetail_20' ) end [2025-01-08 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:41:21] Production.INFO: ==11773== Releasing lock... [2025-01-08 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:42:05 [end_date_ymd] => 2025-01-08 07:42:05 [RateCDR] => 1 ) [2025-01-08 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:42:05' and `end` < '2025-01-08 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:42:17] Production.INFO: count ==110 [2025-01-08 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-08 04:42:05 - End Time 2025-01-08 07:42:05 [2025-01-08 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200779', 'tblTempUsageDetail_20' ) start [2025-01-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200779', 'tblTempUsageDetail_20' ) end [2025-01-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200779', 'tblTempVendorCDR_20' ) start [2025-01-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200779', 'tblTempVendorCDR_20' ) end [2025-01-08 07:42:17] Production.INFO: ProcessCDR(1,14200779,1,1,2) [2025-01-08 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200779', 'tblTempUsageDetail_20' ) start [2025-01-08 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200779', 'tblTempUsageDetail_20' ) end [2025-01-08 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:42:21] Production.INFO: ==11905== Releasing lock... [2025-01-08 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:43:06 [end_date_ymd] => 2025-01-08 07:43:06 [RateCDR] => 1 ) [2025-01-08 07:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:43:06' and `end` < '2025-01-08 07:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:43:19] Production.INFO: count ==110 [2025-01-08 07:43:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:43:06 - End Time 2025-01-08 07:43:06 [2025-01-08 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200784', 'tblTempUsageDetail_20' ) start [2025-01-08 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200784', 'tblTempUsageDetail_20' ) end [2025-01-08 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200784', 'tblTempVendorCDR_20' ) start [2025-01-08 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200784', 'tblTempVendorCDR_20' ) end [2025-01-08 07:43:19] Production.INFO: ProcessCDR(1,14200784,1,1,2) [2025-01-08 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200784', 'tblTempUsageDetail_20' ) start [2025-01-08 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200784', 'tblTempUsageDetail_20' ) end [2025-01-08 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:43:22] Production.INFO: ==12039== Releasing lock... [2025-01-08 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:44:05 [end_date_ymd] => 2025-01-08 07:44:05 [RateCDR] => 1 ) [2025-01-08 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:44:05' and `end` < '2025-01-08 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:44:18] Production.INFO: count ==110 [2025-01-08 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:44:05 - End Time 2025-01-08 07:44:05 [2025-01-08 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200789', 'tblTempUsageDetail_20' ) start [2025-01-08 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200789', 'tblTempUsageDetail_20' ) end [2025-01-08 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200789', 'tblTempVendorCDR_20' ) start [2025-01-08 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200789', 'tblTempVendorCDR_20' ) end [2025-01-08 07:44:18] Production.INFO: ProcessCDR(1,14200789,1,1,2) [2025-01-08 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200789', 'tblTempUsageDetail_20' ) start [2025-01-08 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200789', 'tblTempUsageDetail_20' ) end [2025-01-08 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:44:21] Production.INFO: ==12167== Releasing lock... [2025-01-08 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:45:04 [end_date_ymd] => 2025-01-08 07:45:04 [RateCDR] => 1 ) [2025-01-08 07:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:45:04' and `end` < '2025-01-08 07:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:45:18] Production.INFO: count ==111 [2025-01-08 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:45:04 - End Time 2025-01-08 07:45:04 [2025-01-08 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200794', 'tblTempUsageDetail_20' ) start [2025-01-08 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200794', 'tblTempUsageDetail_20' ) end [2025-01-08 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200794', 'tblTempVendorCDR_20' ) start [2025-01-08 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200794', 'tblTempVendorCDR_20' ) end [2025-01-08 07:45:18] Production.INFO: ProcessCDR(1,14200794,1,1,2) [2025-01-08 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200794', 'tblTempUsageDetail_20' ) start [2025-01-08 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200794', 'tblTempUsageDetail_20' ) end [2025-01-08 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:45:21] Production.INFO: ==12297== Releasing lock... [2025-01-08 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-08 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:46:05 [end_date_ymd] => 2025-01-08 07:46:05 [RateCDR] => 1 ) [2025-01-08 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:46:05' and `end` < '2025-01-08 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:46:19] Production.INFO: count ==116 [2025-01-08 07:46:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:46:05 - End Time 2025-01-08 07:46:05 [2025-01-08 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200799', 'tblTempUsageDetail_20' ) start [2025-01-08 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200799', 'tblTempUsageDetail_20' ) end [2025-01-08 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200799', 'tblTempVendorCDR_20' ) start [2025-01-08 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200799', 'tblTempVendorCDR_20' ) end [2025-01-08 07:46:19] Production.INFO: ProcessCDR(1,14200799,1,1,2) [2025-01-08 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200799', 'tblTempUsageDetail_20' ) start [2025-01-08 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200799', 'tblTempUsageDetail_20' ) end [2025-01-08 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:46:22] Production.INFO: ==12424== Releasing lock... [2025-01-08 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:47:05 [end_date_ymd] => 2025-01-08 07:47:05 [RateCDR] => 1 ) [2025-01-08 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:47:05' and `end` < '2025-01-08 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:47:18] Production.INFO: count ==116 [2025-01-08 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:47:05 - End Time 2025-01-08 07:47:05 [2025-01-08 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200804', 'tblTempUsageDetail_20' ) start [2025-01-08 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200804', 'tblTempUsageDetail_20' ) end [2025-01-08 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200804', 'tblTempVendorCDR_20' ) start [2025-01-08 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200804', 'tblTempVendorCDR_20' ) end [2025-01-08 07:47:18] Production.INFO: ProcessCDR(1,14200804,1,1,2) [2025-01-08 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200804', 'tblTempUsageDetail_20' ) start [2025-01-08 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200804', 'tblTempUsageDetail_20' ) end [2025-01-08 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:47:21] Production.INFO: ==12550== Releasing lock... [2025-01-08 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:48:05 [end_date_ymd] => 2025-01-08 07:48:05 [RateCDR] => 1 ) [2025-01-08 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:48:05' and `end` < '2025-01-08 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:48:19] Production.INFO: count ==116 [2025-01-08 07:48:20] Production.ERROR: pbx CDR StartTime 2025-01-08 04:48:05 - End Time 2025-01-08 07:48:05 [2025-01-08 07:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200809', 'tblTempUsageDetail_20' ) start [2025-01-08 07:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200809', 'tblTempUsageDetail_20' ) end [2025-01-08 07:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200809', 'tblTempVendorCDR_20' ) start [2025-01-08 07:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200809', 'tblTempVendorCDR_20' ) end [2025-01-08 07:48:20] Production.INFO: ProcessCDR(1,14200809,1,1,2) [2025-01-08 07:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200809', 'tblTempUsageDetail_20' ) start [2025-01-08 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200809', 'tblTempUsageDetail_20' ) end [2025-01-08 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:48:23] Production.INFO: ==12675== Releasing lock... [2025-01-08 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:48:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:49:05 [end_date_ymd] => 2025-01-08 07:49:05 [RateCDR] => 1 ) [2025-01-08 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:49:05' and `end` < '2025-01-08 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:49:18] Production.INFO: count ==117 [2025-01-08 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:49:05 - End Time 2025-01-08 07:49:05 [2025-01-08 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200814', 'tblTempUsageDetail_20' ) start [2025-01-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200814', 'tblTempUsageDetail_20' ) end [2025-01-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200814', 'tblTempVendorCDR_20' ) start [2025-01-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200814', 'tblTempVendorCDR_20' ) end [2025-01-08 07:49:18] Production.INFO: ProcessCDR(1,14200814,1,1,2) [2025-01-08 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200814', 'tblTempUsageDetail_20' ) start [2025-01-08 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200814', 'tblTempUsageDetail_20' ) end [2025-01-08 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:49:21] Production.INFO: ==12800== Releasing lock... [2025-01-08 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:50:05 [end_date_ymd] => 2025-01-08 07:50:05 [RateCDR] => 1 ) [2025-01-08 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:50:05' and `end` < '2025-01-08 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:50:18] Production.INFO: count ==121 [2025-01-08 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:50:05 - End Time 2025-01-08 07:50:05 [2025-01-08 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200819', 'tblTempUsageDetail_20' ) start [2025-01-08 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200819', 'tblTempUsageDetail_20' ) end [2025-01-08 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200819', 'tblTempVendorCDR_20' ) start [2025-01-08 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200819', 'tblTempVendorCDR_20' ) end [2025-01-08 07:50:18] Production.INFO: ProcessCDR(1,14200819,1,1,2) [2025-01-08 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200819', 'tblTempUsageDetail_20' ) start [2025-01-08 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200819', 'tblTempUsageDetail_20' ) end [2025-01-08 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:50:21] Production.INFO: ==12926== Releasing lock... [2025-01-08 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:51:05 [end_date_ymd] => 2025-01-08 07:51:05 [RateCDR] => 1 ) [2025-01-08 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:51:05' and `end` < '2025-01-08 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:51:18] Production.INFO: count ==130 [2025-01-08 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:51:05 - End Time 2025-01-08 07:51:05 [2025-01-08 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200825', 'tblTempUsageDetail_20' ) start [2025-01-08 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200825', 'tblTempUsageDetail_20' ) end [2025-01-08 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200825', 'tblTempVendorCDR_20' ) start [2025-01-08 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200825', 'tblTempVendorCDR_20' ) end [2025-01-08 07:51:18] Production.INFO: ProcessCDR(1,14200825,1,1,2) [2025-01-08 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200825', 'tblTempUsageDetail_20' ) start [2025-01-08 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200825', 'tblTempUsageDetail_20' ) end [2025-01-08 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:51:21] Production.INFO: ==13059== Releasing lock... [2025-01-08 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:52:05 [end_date_ymd] => 2025-01-08 07:52:05 [RateCDR] => 1 ) [2025-01-08 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:52:05' and `end` < '2025-01-08 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:52:19] Production.INFO: count ==130 [2025-01-08 07:52:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:52:05 - End Time 2025-01-08 07:52:05 [2025-01-08 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200830', 'tblTempUsageDetail_20' ) start [2025-01-08 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200830', 'tblTempUsageDetail_20' ) end [2025-01-08 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200830', 'tblTempVendorCDR_20' ) start [2025-01-08 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200830', 'tblTempVendorCDR_20' ) end [2025-01-08 07:52:19] Production.INFO: ProcessCDR(1,14200830,1,1,2) [2025-01-08 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200830', 'tblTempUsageDetail_20' ) start [2025-01-08 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200830', 'tblTempUsageDetail_20' ) end [2025-01-08 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:52:23] Production.INFO: ==13188== Releasing lock... [2025-01-08 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:52:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:53:04 [end_date_ymd] => 2025-01-08 07:53:04 [RateCDR] => 1 ) [2025-01-08 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:53:04' and `end` < '2025-01-08 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:53:17] Production.INFO: count ==130 [2025-01-08 07:53:17] Production.ERROR: pbx CDR StartTime 2025-01-08 04:53:04 - End Time 2025-01-08 07:53:04 [2025-01-08 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200835', 'tblTempUsageDetail_20' ) start [2025-01-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200835', 'tblTempUsageDetail_20' ) end [2025-01-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200835', 'tblTempVendorCDR_20' ) start [2025-01-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200835', 'tblTempVendorCDR_20' ) end [2025-01-08 07:53:17] Production.INFO: ProcessCDR(1,14200835,1,1,2) [2025-01-08 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200835', 'tblTempUsageDetail_20' ) start [2025-01-08 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200835', 'tblTempUsageDetail_20' ) end [2025-01-08 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:53:20] Production.INFO: ==13318== Releasing lock... [2025-01-08 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:53:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:54:05 [end_date_ymd] => 2025-01-08 07:54:05 [RateCDR] => 1 ) [2025-01-08 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:54:05' and `end` < '2025-01-08 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:54:19] Production.INFO: count ==130 [2025-01-08 07:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:54:05 - End Time 2025-01-08 07:54:05 [2025-01-08 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200840', 'tblTempUsageDetail_20' ) start [2025-01-08 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200840', 'tblTempUsageDetail_20' ) end [2025-01-08 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200840', 'tblTempVendorCDR_20' ) start [2025-01-08 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200840', 'tblTempVendorCDR_20' ) end [2025-01-08 07:54:19] Production.INFO: ProcessCDR(1,14200840,1,1,2) [2025-01-08 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200840', 'tblTempUsageDetail_20' ) start [2025-01-08 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200840', 'tblTempUsageDetail_20' ) end [2025-01-08 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:54:22] Production.INFO: ==13456== Releasing lock... [2025-01-08 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:55:05 [end_date_ymd] => 2025-01-08 07:55:05 [RateCDR] => 1 ) [2025-01-08 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:55:05' and `end` < '2025-01-08 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:55:19] Production.INFO: count ==130 [2025-01-08 07:55:19] Production.ERROR: pbx CDR StartTime 2025-01-08 04:55:05 - End Time 2025-01-08 07:55:05 [2025-01-08 07:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200845', 'tblTempUsageDetail_20' ) start [2025-01-08 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200845', 'tblTempUsageDetail_20' ) end [2025-01-08 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200845', 'tblTempVendorCDR_20' ) start [2025-01-08 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200845', 'tblTempVendorCDR_20' ) end [2025-01-08 07:55:19] Production.INFO: ProcessCDR(1,14200845,1,1,2) [2025-01-08 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200845', 'tblTempUsageDetail_20' ) start [2025-01-08 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200845', 'tblTempUsageDetail_20' ) end [2025-01-08 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:55:22] Production.INFO: ==13556== Releasing lock... [2025-01-08 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:56:05 [end_date_ymd] => 2025-01-08 07:56:05 [RateCDR] => 1 ) [2025-01-08 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:56:05' and `end` < '2025-01-08 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:56:18] Production.INFO: count ==130 [2025-01-08 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:56:05 - End Time 2025-01-08 07:56:05 [2025-01-08 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200850', 'tblTempUsageDetail_20' ) start [2025-01-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200850', 'tblTempUsageDetail_20' ) end [2025-01-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200850', 'tblTempVendorCDR_20' ) start [2025-01-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200850', 'tblTempVendorCDR_20' ) end [2025-01-08 07:56:18] Production.INFO: ProcessCDR(1,14200850,1,1,2) [2025-01-08 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200850', 'tblTempUsageDetail_20' ) start [2025-01-08 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200850', 'tblTempUsageDetail_20' ) end [2025-01-08 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:56:21] Production.INFO: ==13650== Releasing lock... [2025-01-08 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:57:04 [end_date_ymd] => 2025-01-08 07:57:04 [RateCDR] => 1 ) [2025-01-08 07:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:57:04' and `end` < '2025-01-08 07:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:57:17] Production.INFO: count ==130 [2025-01-08 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-08 04:57:04 - End Time 2025-01-08 07:57:04 [2025-01-08 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200855', 'tblTempUsageDetail_20' ) start [2025-01-08 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200855', 'tblTempUsageDetail_20' ) end [2025-01-08 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200855', 'tblTempVendorCDR_20' ) start [2025-01-08 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200855', 'tblTempVendorCDR_20' ) end [2025-01-08 07:57:17] Production.INFO: ProcessCDR(1,14200855,1,1,2) [2025-01-08 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200855', 'tblTempUsageDetail_20' ) start [2025-01-08 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200855', 'tblTempUsageDetail_20' ) end [2025-01-08 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:57:20] Production.INFO: ==13742== Releasing lock... [2025-01-08 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:58:05 [end_date_ymd] => 2025-01-08 07:58:05 [RateCDR] => 1 ) [2025-01-08 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:58:05' and `end` < '2025-01-08 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:58:18] Production.INFO: count ==130 [2025-01-08 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:58:05 - End Time 2025-01-08 07:58:05 [2025-01-08 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200860', 'tblTempUsageDetail_20' ) start [2025-01-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200860', 'tblTempUsageDetail_20' ) end [2025-01-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200860', 'tblTempVendorCDR_20' ) start [2025-01-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200860', 'tblTempVendorCDR_20' ) end [2025-01-08 07:58:18] Production.INFO: ProcessCDR(1,14200860,1,1,2) [2025-01-08 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200860', 'tblTempUsageDetail_20' ) start [2025-01-08 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200860', 'tblTempUsageDetail_20' ) end [2025-01-08 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:58:21] Production.INFO: ==13835== Releasing lock... [2025-01-08 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-08 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 04:59:05 [end_date_ymd] => 2025-01-08 07:59:05 [RateCDR] => 1 ) [2025-01-08 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 04:59:05' and `end` < '2025-01-08 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 07:59:18] Production.INFO: count ==144 [2025-01-08 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-08 04:59:05 - End Time 2025-01-08 07:59:05 [2025-01-08 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200865', 'tblTempUsageDetail_20' ) start [2025-01-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200865', 'tblTempUsageDetail_20' ) end [2025-01-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200865', 'tblTempVendorCDR_20' ) start [2025-01-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200865', 'tblTempVendorCDR_20' ) end [2025-01-08 07:59:18] Production.INFO: ProcessCDR(1,14200865,1,1,2) [2025-01-08 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200865', 'tblTempUsageDetail_20' ) start [2025-01-08 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200865', 'tblTempUsageDetail_20' ) end [2025-01-08 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 07:59:21] Production.INFO: ==13934== Releasing lock... [2025-01-08 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 07:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:00:05 [end_date_ymd] => 2025-01-08 08:00:05 [RateCDR] => 1 ) [2025-01-08 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:00:05' and `end` < '2025-01-08 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:00:18] Production.INFO: count ==148 [2025-01-08 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:00:05 - End Time 2025-01-08 08:00:05 [2025-01-08 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200870', 'tblTempUsageDetail_20' ) start [2025-01-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200870', 'tblTempUsageDetail_20' ) end [2025-01-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200870', 'tblTempVendorCDR_20' ) start [2025-01-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200870', 'tblTempVendorCDR_20' ) end [2025-01-08 08:00:18] Production.INFO: ProcessCDR(1,14200870,1,1,2) [2025-01-08 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200870', 'tblTempUsageDetail_20' ) start [2025-01-08 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200870', 'tblTempUsageDetail_20' ) end [2025-01-08 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:00:21] Production.INFO: ==14036== Releasing lock... [2025-01-08 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:01:04 [end_date_ymd] => 2025-01-08 08:01:04 [RateCDR] => 1 ) [2025-01-08 08:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:01:04' and `end` < '2025-01-08 08:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:01:17] Production.INFO: count ==160 [2025-01-08 08:01:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:01:04 - End Time 2025-01-08 08:01:04 [2025-01-08 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200876', 'tblTempUsageDetail_20' ) start [2025-01-08 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200876', 'tblTempUsageDetail_20' ) end [2025-01-08 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200876', 'tblTempVendorCDR_20' ) start [2025-01-08 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200876', 'tblTempVendorCDR_20' ) end [2025-01-08 08:01:17] Production.INFO: ProcessCDR(1,14200876,1,1,2) [2025-01-08 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200876', 'tblTempUsageDetail_20' ) start [2025-01-08 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200876', 'tblTempUsageDetail_20' ) end [2025-01-08 08:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:01:21] Production.INFO: ==14149== Releasing lock... [2025-01-08 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-08 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:02:04 [end_date_ymd] => 2025-01-08 08:02:04 [RateCDR] => 1 ) [2025-01-08 08:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:02:04' and `end` < '2025-01-08 08:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:02:17] Production.INFO: count ==168 [2025-01-08 08:02:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:02:04 - End Time 2025-01-08 08:02:04 [2025-01-08 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200881', 'tblTempUsageDetail_20' ) start [2025-01-08 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200881', 'tblTempUsageDetail_20' ) end [2025-01-08 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200881', 'tblTempVendorCDR_20' ) start [2025-01-08 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200881', 'tblTempVendorCDR_20' ) end [2025-01-08 08:02:17] Production.INFO: ProcessCDR(1,14200881,1,1,2) [2025-01-08 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200881', 'tblTempUsageDetail_20' ) start [2025-01-08 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200881', 'tblTempUsageDetail_20' ) end [2025-01-08 08:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:02:20] Production.INFO: ==14247== Releasing lock... [2025-01-08 08:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:02:20] Production.INFO: 29 MB #Memory Used# [2025-01-08 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:03:05 [end_date_ymd] => 2025-01-08 08:03:05 [RateCDR] => 1 ) [2025-01-08 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:03:05' and `end` < '2025-01-08 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:03:18] Production.INFO: count ==168 [2025-01-08 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:03:05 - End Time 2025-01-08 08:03:05 [2025-01-08 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200886', 'tblTempUsageDetail_20' ) start [2025-01-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200886', 'tblTempUsageDetail_20' ) end [2025-01-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200886', 'tblTempVendorCDR_20' ) start [2025-01-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200886', 'tblTempVendorCDR_20' ) end [2025-01-08 08:03:18] Production.INFO: ProcessCDR(1,14200886,1,1,2) [2025-01-08 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200886', 'tblTempUsageDetail_20' ) start [2025-01-08 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200886', 'tblTempUsageDetail_20' ) end [2025-01-08 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:03:21] Production.INFO: ==14348== Releasing lock... [2025-01-08 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-08 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:04:04 [end_date_ymd] => 2025-01-08 08:04:04 [RateCDR] => 1 ) [2025-01-08 08:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:04:04' and `end` < '2025-01-08 08:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:04:17] Production.INFO: count ==182 [2025-01-08 08:04:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:04:04 - End Time 2025-01-08 08:04:04 [2025-01-08 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200891', 'tblTempUsageDetail_20' ) start [2025-01-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200891', 'tblTempUsageDetail_20' ) end [2025-01-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200891', 'tblTempVendorCDR_20' ) start [2025-01-08 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200891', 'tblTempVendorCDR_20' ) end [2025-01-08 08:04:17] Production.INFO: ProcessCDR(1,14200891,1,1,2) [2025-01-08 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200891', 'tblTempUsageDetail_20' ) start [2025-01-08 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200891', 'tblTempUsageDetail_20' ) end [2025-01-08 08:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:04:20] Production.INFO: ==14447== Releasing lock... [2025-01-08 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:04:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-08 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:05:04 [end_date_ymd] => 2025-01-08 08:05:04 [RateCDR] => 1 ) [2025-01-08 08:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:05:04' and `end` < '2025-01-08 08:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:05:17] Production.INFO: count ==190 [2025-01-08 08:05:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:05:04 - End Time 2025-01-08 08:05:04 [2025-01-08 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200896', 'tblTempUsageDetail_20' ) start [2025-01-08 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200896', 'tblTempUsageDetail_20' ) end [2025-01-08 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200896', 'tblTempVendorCDR_20' ) start [2025-01-08 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200896', 'tblTempVendorCDR_20' ) end [2025-01-08 08:05:17] Production.INFO: ProcessCDR(1,14200896,1,1,2) [2025-01-08 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200896', 'tblTempUsageDetail_20' ) start [2025-01-08 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200896', 'tblTempUsageDetail_20' ) end [2025-01-08 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:05:22] Production.INFO: ==14548== Releasing lock... [2025-01-08 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-08 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:06:05 [end_date_ymd] => 2025-01-08 08:06:05 [RateCDR] => 1 ) [2025-01-08 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:06:05' and `end` < '2025-01-08 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:06:18] Production.INFO: count ==196 [2025-01-08 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:06:05 - End Time 2025-01-08 08:06:05 [2025-01-08 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200901', 'tblTempUsageDetail_20' ) start [2025-01-08 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200901', 'tblTempUsageDetail_20' ) end [2025-01-08 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200901', 'tblTempVendorCDR_20' ) start [2025-01-08 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200901', 'tblTempVendorCDR_20' ) end [2025-01-08 08:06:18] Production.INFO: ProcessCDR(1,14200901,1,1,2) [2025-01-08 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200901', 'tblTempUsageDetail_20' ) start [2025-01-08 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200901', 'tblTempUsageDetail_20' ) end [2025-01-08 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:06:22] Production.INFO: ==14652== Releasing lock... [2025-01-08 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:06:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-08 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:07:05 [end_date_ymd] => 2025-01-08 08:07:05 [RateCDR] => 1 ) [2025-01-08 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:07:05' and `end` < '2025-01-08 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:07:19] Production.INFO: count ==201 [2025-01-08 08:07:19] Production.ERROR: pbx CDR StartTime 2025-01-08 05:07:05 - End Time 2025-01-08 08:07:05 [2025-01-08 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200906', 'tblTempUsageDetail_20' ) start [2025-01-08 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200906', 'tblTempUsageDetail_20' ) end [2025-01-08 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200906', 'tblTempVendorCDR_20' ) start [2025-01-08 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200906', 'tblTempVendorCDR_20' ) end [2025-01-08 08:07:19] Production.INFO: ProcessCDR(1,14200906,1,1,2) [2025-01-08 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200906', 'tblTempUsageDetail_20' ) start [2025-01-08 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200906', 'tblTempUsageDetail_20' ) end [2025-01-08 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:07:22] Production.INFO: ==14746== Releasing lock... [2025-01-08 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-08 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:08:05 [end_date_ymd] => 2025-01-08 08:08:05 [RateCDR] => 1 ) [2025-01-08 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:08:05' and `end` < '2025-01-08 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:08:19] Production.INFO: count ==202 [2025-01-08 08:08:19] Production.ERROR: pbx CDR StartTime 2025-01-08 05:08:05 - End Time 2025-01-08 08:08:05 [2025-01-08 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200911', 'tblTempUsageDetail_20' ) start [2025-01-08 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200911', 'tblTempUsageDetail_20' ) end [2025-01-08 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200911', 'tblTempVendorCDR_20' ) start [2025-01-08 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200911', 'tblTempVendorCDR_20' ) end [2025-01-08 08:08:19] Production.INFO: ProcessCDR(1,14200911,1,1,2) [2025-01-08 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200911', 'tblTempUsageDetail_20' ) start [2025-01-08 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200911', 'tblTempUsageDetail_20' ) end [2025-01-08 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:08:23] Production.INFO: ==14846== Releasing lock... [2025-01-08 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:08:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-08 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:09:04 [end_date_ymd] => 2025-01-08 08:09:04 [RateCDR] => 1 ) [2025-01-08 08:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:09:04' and `end` < '2025-01-08 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:09:17] Production.INFO: count ==202 [2025-01-08 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:09:04 - End Time 2025-01-08 08:09:04 [2025-01-08 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200916', 'tblTempUsageDetail_20' ) start [2025-01-08 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200916', 'tblTempUsageDetail_20' ) end [2025-01-08 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200916', 'tblTempVendorCDR_20' ) start [2025-01-08 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200916', 'tblTempVendorCDR_20' ) end [2025-01-08 08:09:17] Production.INFO: ProcessCDR(1,14200916,1,1,2) [2025-01-08 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200916', 'tblTempUsageDetail_20' ) start [2025-01-08 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200916', 'tblTempUsageDetail_20' ) end [2025-01-08 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:09:21] Production.INFO: ==14946== Releasing lock... [2025-01-08 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-08 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:10:05 [end_date_ymd] => 2025-01-08 08:10:05 [RateCDR] => 1 ) [2025-01-08 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:10:05' and `end` < '2025-01-08 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:10:19] Production.INFO: count ==209 [2025-01-08 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 05:10:05 - End Time 2025-01-08 08:10:05 [2025-01-08 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200920', 'tblTempUsageDetail_20' ) start [2025-01-08 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200920', 'tblTempUsageDetail_20' ) end [2025-01-08 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200920', 'tblTempVendorCDR_20' ) start [2025-01-08 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200920', 'tblTempVendorCDR_20' ) end [2025-01-08 08:10:19] Production.INFO: ProcessCDR(1,14200920,1,1,2) [2025-01-08 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200920', 'tblTempUsageDetail_20' ) start [2025-01-08 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200920', 'tblTempUsageDetail_20' ) end [2025-01-08 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:10:22] Production.INFO: ==15089== Releasing lock... [2025-01-08 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-08 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:11:04 [end_date_ymd] => 2025-01-08 08:11:04 [RateCDR] => 1 ) [2025-01-08 08:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:11:04' and `end` < '2025-01-08 08:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:11:17] Production.INFO: count ==229 [2025-01-08 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:11:04 - End Time 2025-01-08 08:11:04 [2025-01-08 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200927', 'tblTempUsageDetail_20' ) start [2025-01-08 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200927', 'tblTempUsageDetail_20' ) end [2025-01-08 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200927', 'tblTempVendorCDR_20' ) start [2025-01-08 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200927', 'tblTempVendorCDR_20' ) end [2025-01-08 08:11:17] Production.INFO: ProcessCDR(1,14200927,1,1,2) [2025-01-08 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200927', 'tblTempUsageDetail_20' ) start [2025-01-08 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200927', 'tblTempUsageDetail_20' ) end [2025-01-08 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:11:22] Production.INFO: ==15191== Releasing lock... [2025-01-08 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-08 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:12:05 [end_date_ymd] => 2025-01-08 08:12:05 [RateCDR] => 1 ) [2025-01-08 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:12:05' and `end` < '2025-01-08 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:12:18] Production.INFO: count ==229 [2025-01-08 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:12:05 - End Time 2025-01-08 08:12:05 [2025-01-08 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200932', 'tblTempUsageDetail_20' ) start [2025-01-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200932', 'tblTempUsageDetail_20' ) end [2025-01-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200932', 'tblTempVendorCDR_20' ) start [2025-01-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200932', 'tblTempVendorCDR_20' ) end [2025-01-08 08:12:18] Production.INFO: ProcessCDR(1,14200932,1,1,2) [2025-01-08 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200932', 'tblTempUsageDetail_20' ) start [2025-01-08 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200932', 'tblTempUsageDetail_20' ) end [2025-01-08 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:12:21] Production.INFO: ==15291== Releasing lock... [2025-01-08 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-08 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:13:04 [end_date_ymd] => 2025-01-08 08:13:04 [RateCDR] => 1 ) [2025-01-08 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:13:04' and `end` < '2025-01-08 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:13:17] Production.INFO: count ==236 [2025-01-08 08:13:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:13:04 - End Time 2025-01-08 08:13:04 [2025-01-08 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200937', 'tblTempUsageDetail_20' ) start [2025-01-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200937', 'tblTempUsageDetail_20' ) end [2025-01-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200937', 'tblTempVendorCDR_20' ) start [2025-01-08 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200937', 'tblTempVendorCDR_20' ) end [2025-01-08 08:13:17] Production.INFO: ProcessCDR(1,14200937,1,1,2) [2025-01-08 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200937', 'tblTempUsageDetail_20' ) start [2025-01-08 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200937', 'tblTempUsageDetail_20' ) end [2025-01-08 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:13:21] Production.INFO: ==15377== Releasing lock... [2025-01-08 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:13:21] Production.INFO: 30 MB #Memory Used# [2025-01-08 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:14:05 [end_date_ymd] => 2025-01-08 08:14:05 [RateCDR] => 1 ) [2025-01-08 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:14:05' and `end` < '2025-01-08 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:14:18] Production.INFO: count ==243 [2025-01-08 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:14:05 - End Time 2025-01-08 08:14:05 [2025-01-08 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200942', 'tblTempUsageDetail_20' ) start [2025-01-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200942', 'tblTempUsageDetail_20' ) end [2025-01-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200942', 'tblTempVendorCDR_20' ) start [2025-01-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200942', 'tblTempVendorCDR_20' ) end [2025-01-08 08:14:18] Production.INFO: ProcessCDR(1,14200942,1,1,2) [2025-01-08 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200942', 'tblTempUsageDetail_20' ) start [2025-01-08 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200942', 'tblTempUsageDetail_20' ) end [2025-01-08 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:14:21] Production.INFO: ==15462== Releasing lock... [2025-01-08 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-08 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:15:04 [end_date_ymd] => 2025-01-08 08:15:04 [RateCDR] => 1 ) [2025-01-08 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:15:04' and `end` < '2025-01-08 08:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:15:17] Production.INFO: count ==245 [2025-01-08 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:15:04 - End Time 2025-01-08 08:15:04 [2025-01-08 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200947', 'tblTempUsageDetail_20' ) start [2025-01-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200947', 'tblTempUsageDetail_20' ) end [2025-01-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200947', 'tblTempVendorCDR_20' ) start [2025-01-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200947', 'tblTempVendorCDR_20' ) end [2025-01-08 08:15:18] Production.INFO: ProcessCDR(1,14200947,1,1,2) [2025-01-08 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200947', 'tblTempUsageDetail_20' ) start [2025-01-08 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200947', 'tblTempUsageDetail_20' ) end [2025-01-08 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:15:21] Production.INFO: ==15546== Releasing lock... [2025-01-08 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-08 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:16:05 [end_date_ymd] => 2025-01-08 08:16:05 [RateCDR] => 1 ) [2025-01-08 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:16:05' and `end` < '2025-01-08 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:16:18] Production.INFO: count ==245 [2025-01-08 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:16:05 - End Time 2025-01-08 08:16:05 [2025-01-08 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200952', 'tblTempUsageDetail_20' ) start [2025-01-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200952', 'tblTempUsageDetail_20' ) end [2025-01-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200952', 'tblTempVendorCDR_20' ) start [2025-01-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200952', 'tblTempVendorCDR_20' ) end [2025-01-08 08:16:18] Production.INFO: ProcessCDR(1,14200952,1,1,2) [2025-01-08 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200952', 'tblTempUsageDetail_20' ) start [2025-01-08 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200952', 'tblTempUsageDetail_20' ) end [2025-01-08 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:16:21] Production.INFO: ==15632== Releasing lock... [2025-01-08 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:16:21] Production.INFO: 30 MB #Memory Used# [2025-01-08 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:17:04 [end_date_ymd] => 2025-01-08 08:17:04 [RateCDR] => 1 ) [2025-01-08 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:17:04' and `end` < '2025-01-08 08:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:17:17] Production.INFO: count ==253 [2025-01-08 08:17:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:17:04 - End Time 2025-01-08 08:17:04 [2025-01-08 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200957', 'tblTempUsageDetail_20' ) start [2025-01-08 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200957', 'tblTempUsageDetail_20' ) end [2025-01-08 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200957', 'tblTempVendorCDR_20' ) start [2025-01-08 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200957', 'tblTempVendorCDR_20' ) end [2025-01-08 08:17:17] Production.INFO: ProcessCDR(1,14200957,1,1,2) [2025-01-08 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200957', 'tblTempUsageDetail_20' ) start [2025-01-08 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200957', 'tblTempUsageDetail_20' ) end [2025-01-08 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:17:20] Production.INFO: ==15717== Releasing lock... [2025-01-08 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-08 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:18:05 [end_date_ymd] => 2025-01-08 08:18:05 [RateCDR] => 1 ) [2025-01-08 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:18:05' and `end` < '2025-01-08 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:18:18] Production.INFO: count ==254 [2025-01-08 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:18:05 - End Time 2025-01-08 08:18:05 [2025-01-08 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200962', 'tblTempUsageDetail_20' ) start [2025-01-08 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200962', 'tblTempUsageDetail_20' ) end [2025-01-08 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200962', 'tblTempVendorCDR_20' ) start [2025-01-08 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200962', 'tblTempVendorCDR_20' ) end [2025-01-08 08:18:18] Production.INFO: ProcessCDR(1,14200962,1,1,2) [2025-01-08 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200962', 'tblTempUsageDetail_20' ) start [2025-01-08 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200962', 'tblTempUsageDetail_20' ) end [2025-01-08 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:18:22] Production.INFO: ==15811== Releasing lock... [2025-01-08 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:18:22] Production.INFO: 30 MB #Memory Used# [2025-01-08 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:19:05 [end_date_ymd] => 2025-01-08 08:19:05 [RateCDR] => 1 ) [2025-01-08 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:19:05' and `end` < '2025-01-08 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:19:20] Production.INFO: count ==259 [2025-01-08 08:19:20] Production.ERROR: pbx CDR StartTime 2025-01-08 05:19:05 - End Time 2025-01-08 08:19:05 [2025-01-08 08:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200967', 'tblTempUsageDetail_20' ) start [2025-01-08 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200967', 'tblTempUsageDetail_20' ) end [2025-01-08 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200967', 'tblTempVendorCDR_20' ) start [2025-01-08 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200967', 'tblTempVendorCDR_20' ) end [2025-01-08 08:19:20] Production.INFO: ProcessCDR(1,14200967,1,1,2) [2025-01-08 08:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200967', 'tblTempUsageDetail_20' ) start [2025-01-08 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200967', 'tblTempUsageDetail_20' ) end [2025-01-08 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:19:23] Production.INFO: ==15896== Releasing lock... [2025-01-08 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:19:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-08 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:20:05 [end_date_ymd] => 2025-01-08 08:20:05 [RateCDR] => 1 ) [2025-01-08 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:20:05' and `end` < '2025-01-08 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:20:18] Production.INFO: count ==263 [2025-01-08 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:20:05 - End Time 2025-01-08 08:20:05 [2025-01-08 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200972', 'tblTempUsageDetail_20' ) start [2025-01-08 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200972', 'tblTempUsageDetail_20' ) end [2025-01-08 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200972', 'tblTempVendorCDR_20' ) start [2025-01-08 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200972', 'tblTempVendorCDR_20' ) end [2025-01-08 08:20:18] Production.INFO: ProcessCDR(1,14200972,1,1,2) [2025-01-08 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200972', 'tblTempUsageDetail_20' ) start [2025-01-08 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200972', 'tblTempUsageDetail_20' ) end [2025-01-08 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:20:21] Production.INFO: ==15981== Releasing lock... [2025-01-08 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-08 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:21:05 [end_date_ymd] => 2025-01-08 08:21:05 [RateCDR] => 1 ) [2025-01-08 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:21:05' and `end` < '2025-01-08 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:21:18] Production.INFO: count ==282 [2025-01-08 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:21:05 - End Time 2025-01-08 08:21:05 [2025-01-08 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200978', 'tblTempUsageDetail_20' ) start [2025-01-08 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200978', 'tblTempUsageDetail_20' ) end [2025-01-08 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200978', 'tblTempVendorCDR_20' ) start [2025-01-08 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200978', 'tblTempVendorCDR_20' ) end [2025-01-08 08:21:18] Production.INFO: ProcessCDR(1,14200978,1,1,2) [2025-01-08 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200978', 'tblTempUsageDetail_20' ) start [2025-01-08 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200978', 'tblTempUsageDetail_20' ) end [2025-01-08 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:21:21] Production.INFO: ==16070== Releasing lock... [2025-01-08 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-08 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:22:05 [end_date_ymd] => 2025-01-08 08:22:05 [RateCDR] => 1 ) [2025-01-08 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:22:05' and `end` < '2025-01-08 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:22:17] Production.INFO: count ==284 [2025-01-08 08:22:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:22:05 - End Time 2025-01-08 08:22:05 [2025-01-08 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200983', 'tblTempUsageDetail_20' ) start [2025-01-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200983', 'tblTempUsageDetail_20' ) end [2025-01-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200983', 'tblTempVendorCDR_20' ) start [2025-01-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200983', 'tblTempVendorCDR_20' ) end [2025-01-08 08:22:18] Production.INFO: ProcessCDR(1,14200983,1,1,2) [2025-01-08 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200983', 'tblTempUsageDetail_20' ) start [2025-01-08 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200983', 'tblTempUsageDetail_20' ) end [2025-01-08 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:22:22] Production.INFO: ==16157== Releasing lock... [2025-01-08 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:22:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-08 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:23:05 [end_date_ymd] => 2025-01-08 08:23:05 [RateCDR] => 1 ) [2025-01-08 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:23:05' and `end` < '2025-01-08 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:23:18] Production.INFO: count ==284 [2025-01-08 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:23:05 - End Time 2025-01-08 08:23:05 [2025-01-08 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200988', 'tblTempUsageDetail_20' ) start [2025-01-08 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200988', 'tblTempUsageDetail_20' ) end [2025-01-08 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200988', 'tblTempVendorCDR_20' ) start [2025-01-08 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200988', 'tblTempVendorCDR_20' ) end [2025-01-08 08:23:18] Production.INFO: ProcessCDR(1,14200988,1,1,2) [2025-01-08 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200988', 'tblTempUsageDetail_20' ) start [2025-01-08 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200988', 'tblTempUsageDetail_20' ) end [2025-01-08 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:23:21] Production.INFO: ==16245== Releasing lock... [2025-01-08 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-08 08:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:24:04 [end_date_ymd] => 2025-01-08 08:24:04 [RateCDR] => 1 ) [2025-01-08 08:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:24:04' and `end` < '2025-01-08 08:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:24:18] Production.INFO: count ==285 [2025-01-08 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:24:04 - End Time 2025-01-08 08:24:04 [2025-01-08 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200993', 'tblTempUsageDetail_20' ) start [2025-01-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200993', 'tblTempUsageDetail_20' ) end [2025-01-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200993', 'tblTempVendorCDR_20' ) start [2025-01-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200993', 'tblTempVendorCDR_20' ) end [2025-01-08 08:24:18] Production.INFO: ProcessCDR(1,14200993,1,1,2) [2025-01-08 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200993', 'tblTempUsageDetail_20' ) start [2025-01-08 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200993', 'tblTempUsageDetail_20' ) end [2025-01-08 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:24:21] Production.INFO: ==16328== Releasing lock... [2025-01-08 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-08 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:25:04 [end_date_ymd] => 2025-01-08 08:25:04 [RateCDR] => 1 ) [2025-01-08 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:25:04' and `end` < '2025-01-08 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:25:17] Production.INFO: count ==286 [2025-01-08 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:25:04 - End Time 2025-01-08 08:25:04 [2025-01-08 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200998', 'tblTempUsageDetail_20' ) start [2025-01-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14200998', 'tblTempUsageDetail_20' ) end [2025-01-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200998', 'tblTempVendorCDR_20' ) start [2025-01-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14200998', 'tblTempVendorCDR_20' ) end [2025-01-08 08:25:17] Production.INFO: ProcessCDR(1,14200998,1,1,2) [2025-01-08 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14200998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14200998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14200998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14200998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200998', 'tblTempUsageDetail_20' ) start [2025-01-08 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14200998', 'tblTempUsageDetail_20' ) end [2025-01-08 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:25:21] Production.INFO: ==16451== Releasing lock... [2025-01-08 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-08 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:26:05 [end_date_ymd] => 2025-01-08 08:26:05 [RateCDR] => 1 ) [2025-01-08 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:26:05' and `end` < '2025-01-08 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:26:18] Production.INFO: count ==307 [2025-01-08 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:26:05 - End Time 2025-01-08 08:26:05 [2025-01-08 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201003', 'tblTempUsageDetail_20' ) start [2025-01-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201003', 'tblTempUsageDetail_20' ) end [2025-01-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201003', 'tblTempVendorCDR_20' ) start [2025-01-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201003', 'tblTempVendorCDR_20' ) end [2025-01-08 08:26:18] Production.INFO: ProcessCDR(1,14201003,1,1,2) [2025-01-08 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201003', 'tblTempUsageDetail_20' ) start [2025-01-08 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201003', 'tblTempUsageDetail_20' ) end [2025-01-08 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:26:22] Production.INFO: ==16531== Releasing lock... [2025-01-08 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:26:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-08 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:27:04 [end_date_ymd] => 2025-01-08 08:27:04 [RateCDR] => 1 ) [2025-01-08 08:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:27:04' and `end` < '2025-01-08 08:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:27:17] Production.INFO: count ==307 [2025-01-08 08:27:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:27:04 - End Time 2025-01-08 08:27:04 [2025-01-08 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201008', 'tblTempUsageDetail_20' ) start [2025-01-08 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201008', 'tblTempUsageDetail_20' ) end [2025-01-08 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201008', 'tblTempVendorCDR_20' ) start [2025-01-08 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201008', 'tblTempVendorCDR_20' ) end [2025-01-08 08:27:17] Production.INFO: ProcessCDR(1,14201008,1,1,2) [2025-01-08 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201008', 'tblTempUsageDetail_20' ) start [2025-01-08 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201008', 'tblTempUsageDetail_20' ) end [2025-01-08 08:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:27:20] Production.INFO: ==16618== Releasing lock... [2025-01-08 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:27:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-08 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:28:05 [end_date_ymd] => 2025-01-08 08:28:05 [RateCDR] => 1 ) [2025-01-08 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:28:05' and `end` < '2025-01-08 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:28:18] Production.INFO: count ==309 [2025-01-08 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:28:05 - End Time 2025-01-08 08:28:05 [2025-01-08 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201013', 'tblTempUsageDetail_20' ) start [2025-01-08 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201013', 'tblTempUsageDetail_20' ) end [2025-01-08 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201013', 'tblTempVendorCDR_20' ) start [2025-01-08 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201013', 'tblTempVendorCDR_20' ) end [2025-01-08 08:28:18] Production.INFO: ProcessCDR(1,14201013,1,1,2) [2025-01-08 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201013', 'tblTempUsageDetail_20' ) start [2025-01-08 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201013', 'tblTempUsageDetail_20' ) end [2025-01-08 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:28:23] Production.INFO: ==16705== Releasing lock... [2025-01-08 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:28:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-08 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:29:04 [end_date_ymd] => 2025-01-08 08:29:04 [RateCDR] => 1 ) [2025-01-08 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:29:04' and `end` < '2025-01-08 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:29:17] Production.INFO: count ==312 [2025-01-08 08:29:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:29:04 - End Time 2025-01-08 08:29:04 [2025-01-08 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201018', 'tblTempUsageDetail_20' ) start [2025-01-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201018', 'tblTempUsageDetail_20' ) end [2025-01-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201018', 'tblTempVendorCDR_20' ) start [2025-01-08 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201018', 'tblTempVendorCDR_20' ) end [2025-01-08 08:29:17] Production.INFO: ProcessCDR(1,14201018,1,1,2) [2025-01-08 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201018', 'tblTempUsageDetail_20' ) start [2025-01-08 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201018', 'tblTempUsageDetail_20' ) end [2025-01-08 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:29:20] Production.INFO: ==16789== Releasing lock... [2025-01-08 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:29:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-08 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:30:05 [end_date_ymd] => 2025-01-08 08:30:05 [RateCDR] => 1 ) [2025-01-08 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:30:05' and `end` < '2025-01-08 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:30:19] Production.INFO: count ==318 [2025-01-08 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-08 05:30:05 - End Time 2025-01-08 08:30:05 [2025-01-08 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201022', 'tblTempUsageDetail_20' ) start [2025-01-08 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201022', 'tblTempUsageDetail_20' ) end [2025-01-08 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201022', 'tblTempVendorCDR_20' ) start [2025-01-08 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201022', 'tblTempVendorCDR_20' ) end [2025-01-08 08:30:19] Production.INFO: ProcessCDR(1,14201022,1,1,2) [2025-01-08 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201022', 'tblTempUsageDetail_20' ) start [2025-01-08 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201022', 'tblTempUsageDetail_20' ) end [2025-01-08 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:30:23] Production.INFO: ==16886== Releasing lock... [2025-01-08 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:30:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-08 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:31:05 [end_date_ymd] => 2025-01-08 08:31:05 [RateCDR] => 1 ) [2025-01-08 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:31:05' and `end` < '2025-01-08 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:31:19] Production.INFO: count ==349 [2025-01-08 08:31:19] Production.ERROR: pbx CDR StartTime 2025-01-08 05:31:05 - End Time 2025-01-08 08:31:05 [2025-01-08 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201029', 'tblTempUsageDetail_20' ) start [2025-01-08 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201029', 'tblTempUsageDetail_20' ) end [2025-01-08 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201029', 'tblTempVendorCDR_20' ) start [2025-01-08 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201029', 'tblTempVendorCDR_20' ) end [2025-01-08 08:31:19] Production.INFO: ProcessCDR(1,14201029,1,1,2) [2025-01-08 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201029', 'tblTempUsageDetail_20' ) start [2025-01-08 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201029', 'tblTempUsageDetail_20' ) end [2025-01-08 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:31:22] Production.INFO: ==16996== Releasing lock... [2025-01-08 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:31:22] Production.INFO: 31 MB #Memory Used# [2025-01-08 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:32:05 [end_date_ymd] => 2025-01-08 08:32:05 [RateCDR] => 1 ) [2025-01-08 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:32:05' and `end` < '2025-01-08 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:32:18] Production.INFO: count ==357 [2025-01-08 08:32:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:32:05 - End Time 2025-01-08 08:32:05 [2025-01-08 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201034', 'tblTempUsageDetail_20' ) start [2025-01-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201034', 'tblTempUsageDetail_20' ) end [2025-01-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201034', 'tblTempVendorCDR_20' ) start [2025-01-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201034', 'tblTempVendorCDR_20' ) end [2025-01-08 08:32:18] Production.INFO: ProcessCDR(1,14201034,1,1,2) [2025-01-08 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201034', 'tblTempUsageDetail_20' ) start [2025-01-08 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201034', 'tblTempUsageDetail_20' ) end [2025-01-08 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:32:21] Production.INFO: ==17089== Releasing lock... [2025-01-08 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:33:04 [end_date_ymd] => 2025-01-08 08:33:04 [RateCDR] => 1 ) [2025-01-08 08:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:33:04' and `end` < '2025-01-08 08:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:33:17] Production.INFO: count ==364 [2025-01-08 08:33:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:33:04 - End Time 2025-01-08 08:33:04 [2025-01-08 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201039', 'tblTempUsageDetail_20' ) start [2025-01-08 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201039', 'tblTempUsageDetail_20' ) end [2025-01-08 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201039', 'tblTempVendorCDR_20' ) start [2025-01-08 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201039', 'tblTempVendorCDR_20' ) end [2025-01-08 08:33:17] Production.INFO: ProcessCDR(1,14201039,1,1,2) [2025-01-08 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201039', 'tblTempUsageDetail_20' ) start [2025-01-08 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201039', 'tblTempUsageDetail_20' ) end [2025-01-08 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:33:20] Production.INFO: ==17201== Releasing lock... [2025-01-08 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:33:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-08 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:34:05 [end_date_ymd] => 2025-01-08 08:34:05 [RateCDR] => 1 ) [2025-01-08 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:34:05' and `end` < '2025-01-08 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:34:17] Production.INFO: count ==373 [2025-01-08 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:34:05 - End Time 2025-01-08 08:34:05 [2025-01-08 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201044', 'tblTempUsageDetail_20' ) start [2025-01-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201044', 'tblTempUsageDetail_20' ) end [2025-01-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201044', 'tblTempVendorCDR_20' ) start [2025-01-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201044', 'tblTempVendorCDR_20' ) end [2025-01-08 08:34:18] Production.INFO: ProcessCDR(1,14201044,1,1,2) [2025-01-08 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201044', 'tblTempUsageDetail_20' ) start [2025-01-08 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201044', 'tblTempUsageDetail_20' ) end [2025-01-08 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:34:22] Production.INFO: ==17291== Releasing lock... [2025-01-08 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:35:05 [end_date_ymd] => 2025-01-08 08:35:05 [RateCDR] => 1 ) [2025-01-08 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:35:05' and `end` < '2025-01-08 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:35:18] Production.INFO: count ==375 [2025-01-08 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:35:05 - End Time 2025-01-08 08:35:05 [2025-01-08 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201049', 'tblTempUsageDetail_20' ) start [2025-01-08 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201049', 'tblTempUsageDetail_20' ) end [2025-01-08 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201049', 'tblTempVendorCDR_20' ) start [2025-01-08 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201049', 'tblTempVendorCDR_20' ) end [2025-01-08 08:35:18] Production.INFO: ProcessCDR(1,14201049,1,1,2) [2025-01-08 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201049', 'tblTempUsageDetail_20' ) start [2025-01-08 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201049', 'tblTempUsageDetail_20' ) end [2025-01-08 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:35:22] Production.INFO: ==17405== Releasing lock... [2025-01-08 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:36:05 [end_date_ymd] => 2025-01-08 08:36:05 [RateCDR] => 1 ) [2025-01-08 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:36:05' and `end` < '2025-01-08 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:36:18] Production.INFO: count ==379 [2025-01-08 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:36:05 - End Time 2025-01-08 08:36:05 [2025-01-08 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201054', 'tblTempUsageDetail_20' ) start [2025-01-08 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201054', 'tblTempUsageDetail_20' ) end [2025-01-08 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201054', 'tblTempVendorCDR_20' ) start [2025-01-08 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201054', 'tblTempVendorCDR_20' ) end [2025-01-08 08:36:18] Production.INFO: ProcessCDR(1,14201054,1,1,2) [2025-01-08 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201054', 'tblTempUsageDetail_20' ) start [2025-01-08 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201054', 'tblTempUsageDetail_20' ) end [2025-01-08 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:36:22] Production.INFO: ==17501== Releasing lock... [2025-01-08 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:36:22] Production.INFO: 31 MB #Memory Used# [2025-01-08 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:37:05 [end_date_ymd] => 2025-01-08 08:37:05 [RateCDR] => 1 ) [2025-01-08 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:37:05' and `end` < '2025-01-08 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:37:18] Production.INFO: count ==384 [2025-01-08 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:37:05 - End Time 2025-01-08 08:37:05 [2025-01-08 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201059', 'tblTempUsageDetail_20' ) start [2025-01-08 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201059', 'tblTempUsageDetail_20' ) end [2025-01-08 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201059', 'tblTempVendorCDR_20' ) start [2025-01-08 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201059', 'tblTempVendorCDR_20' ) end [2025-01-08 08:37:18] Production.INFO: ProcessCDR(1,14201059,1,1,2) [2025-01-08 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201059', 'tblTempUsageDetail_20' ) start [2025-01-08 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201059', 'tblTempUsageDetail_20' ) end [2025-01-08 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:37:21] Production.INFO: ==17614== Releasing lock... [2025-01-08 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:38:04 [end_date_ymd] => 2025-01-08 08:38:04 [RateCDR] => 1 ) [2025-01-08 08:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:38:04' and `end` < '2025-01-08 08:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:38:18] Production.INFO: count ==390 [2025-01-08 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:38:04 - End Time 2025-01-08 08:38:04 [2025-01-08 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201064', 'tblTempUsageDetail_20' ) start [2025-01-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201064', 'tblTempUsageDetail_20' ) end [2025-01-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201064', 'tblTempVendorCDR_20' ) start [2025-01-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201064', 'tblTempVendorCDR_20' ) end [2025-01-08 08:38:18] Production.INFO: ProcessCDR(1,14201064,1,1,2) [2025-01-08 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201064', 'tblTempUsageDetail_20' ) start [2025-01-08 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201064', 'tblTempUsageDetail_20' ) end [2025-01-08 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:38:22] Production.INFO: ==17702== Releasing lock... [2025-01-08 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:39:05 [end_date_ymd] => 2025-01-08 08:39:05 [RateCDR] => 1 ) [2025-01-08 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:39:05' and `end` < '2025-01-08 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:39:18] Production.INFO: count ==392 [2025-01-08 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:39:05 - End Time 2025-01-08 08:39:05 [2025-01-08 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201069', 'tblTempUsageDetail_20' ) start [2025-01-08 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201069', 'tblTempUsageDetail_20' ) end [2025-01-08 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201069', 'tblTempVendorCDR_20' ) start [2025-01-08 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201069', 'tblTempVendorCDR_20' ) end [2025-01-08 08:39:18] Production.INFO: ProcessCDR(1,14201069,1,1,2) [2025-01-08 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201069', 'tblTempUsageDetail_20' ) start [2025-01-08 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201069', 'tblTempUsageDetail_20' ) end [2025-01-08 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:39:22] Production.INFO: ==17810== Releasing lock... [2025-01-08 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 08:40:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:40:04 [end_date_ymd] => 2025-01-08 08:40:04 [RateCDR] => 1 ) [2025-01-08 08:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:40:04' and `end` < '2025-01-08 08:40:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:40:17] Production.INFO: count ==392 [2025-01-08 08:40:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:40:04 - End Time 2025-01-08 08:40:04 [2025-01-08 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201074', 'tblTempUsageDetail_20' ) start [2025-01-08 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201074', 'tblTempUsageDetail_20' ) end [2025-01-08 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201074', 'tblTempVendorCDR_20' ) start [2025-01-08 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201074', 'tblTempVendorCDR_20' ) end [2025-01-08 08:40:17] Production.INFO: ProcessCDR(1,14201074,1,1,2) [2025-01-08 08:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201074', 'tblTempUsageDetail_20' ) start [2025-01-08 08:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201074', 'tblTempUsageDetail_20' ) end [2025-01-08 08:40:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:40:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:40:20] Production.INFO: ==17924== Releasing lock... [2025-01-08 08:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:40:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:41:05 [end_date_ymd] => 2025-01-08 08:41:05 [RateCDR] => 1 ) [2025-01-08 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:41:05' and `end` < '2025-01-08 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:41:18] Production.INFO: count ==408 [2025-01-08 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:41:05 - End Time 2025-01-08 08:41:05 [2025-01-08 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201080', 'tblTempUsageDetail_20' ) start [2025-01-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201080', 'tblTempUsageDetail_20' ) end [2025-01-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201080', 'tblTempVendorCDR_20' ) start [2025-01-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201080', 'tblTempVendorCDR_20' ) end [2025-01-08 08:41:18] Production.INFO: ProcessCDR(1,14201080,1,1,2) [2025-01-08 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201080', 'tblTempUsageDetail_20' ) start [2025-01-08 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201080', 'tblTempUsageDetail_20' ) end [2025-01-08 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:41:23] Production.INFO: ==18085== Releasing lock... [2025-01-08 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:41:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:42:05 [end_date_ymd] => 2025-01-08 08:42:05 [RateCDR] => 1 ) [2025-01-08 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:42:05' and `end` < '2025-01-08 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:42:18] Production.INFO: count ==415 [2025-01-08 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:42:05 - End Time 2025-01-08 08:42:05 [2025-01-08 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201085', 'tblTempUsageDetail_20' ) start [2025-01-08 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201085', 'tblTempUsageDetail_20' ) end [2025-01-08 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201085', 'tblTempVendorCDR_20' ) start [2025-01-08 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201085', 'tblTempVendorCDR_20' ) end [2025-01-08 08:42:18] Production.INFO: ProcessCDR(1,14201085,1,1,2) [2025-01-08 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201085', 'tblTempUsageDetail_20' ) start [2025-01-08 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201085', 'tblTempUsageDetail_20' ) end [2025-01-08 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:42:22] Production.INFO: ==18176== Releasing lock... [2025-01-08 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:42:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:43:04 [end_date_ymd] => 2025-01-08 08:43:04 [RateCDR] => 1 ) [2025-01-08 08:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:43:04' and `end` < '2025-01-08 08:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:43:17] Production.INFO: count ==425 [2025-01-08 08:43:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:43:04 - End Time 2025-01-08 08:43:04 [2025-01-08 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201090', 'tblTempUsageDetail_20' ) start [2025-01-08 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201090', 'tblTempUsageDetail_20' ) end [2025-01-08 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201090', 'tblTempVendorCDR_20' ) start [2025-01-08 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201090', 'tblTempVendorCDR_20' ) end [2025-01-08 08:43:17] Production.INFO: ProcessCDR(1,14201090,1,1,2) [2025-01-08 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201090', 'tblTempUsageDetail_20' ) start [2025-01-08 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201090', 'tblTempUsageDetail_20' ) end [2025-01-08 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:43:22] Production.INFO: ==18283== Releasing lock... [2025-01-08 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:43:22] Production.INFO: 32 MB #Memory Used# [2025-01-08 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:44:05 [end_date_ymd] => 2025-01-08 08:44:05 [RateCDR] => 1 ) [2025-01-08 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:44:05' and `end` < '2025-01-08 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:44:18] Production.INFO: count ==442 [2025-01-08 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:44:05 - End Time 2025-01-08 08:44:05 [2025-01-08 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201095', 'tblTempUsageDetail_20' ) start [2025-01-08 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201095', 'tblTempUsageDetail_20' ) end [2025-01-08 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201095', 'tblTempVendorCDR_20' ) start [2025-01-08 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201095', 'tblTempVendorCDR_20' ) end [2025-01-08 08:44:18] Production.INFO: ProcessCDR(1,14201095,1,1,2) [2025-01-08 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201095', 'tblTempUsageDetail_20' ) start [2025-01-08 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201095', 'tblTempUsageDetail_20' ) end [2025-01-08 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:44:21] Production.INFO: ==18377== Releasing lock... [2025-01-08 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:44:21] Production.INFO: 32 MB #Memory Used# [2025-01-08 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:45:04 [end_date_ymd] => 2025-01-08 08:45:04 [RateCDR] => 1 ) [2025-01-08 08:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:45:04' and `end` < '2025-01-08 08:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:45:17] Production.INFO: count ==449 [2025-01-08 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:45:04 - End Time 2025-01-08 08:45:04 [2025-01-08 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201100', 'tblTempUsageDetail_20' ) start [2025-01-08 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201100', 'tblTempUsageDetail_20' ) end [2025-01-08 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201100', 'tblTempVendorCDR_20' ) start [2025-01-08 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201100', 'tblTempVendorCDR_20' ) end [2025-01-08 08:45:17] Production.INFO: ProcessCDR(1,14201100,1,1,2) [2025-01-08 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201100', 'tblTempUsageDetail_20' ) start [2025-01-08 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201100', 'tblTempUsageDetail_20' ) end [2025-01-08 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:45:22] Production.INFO: ==18476== Releasing lock... [2025-01-08 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:46:05 [end_date_ymd] => 2025-01-08 08:46:05 [RateCDR] => 1 ) [2025-01-08 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:46:05' and `end` < '2025-01-08 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:46:18] Production.INFO: count ==451 [2025-01-08 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:46:05 - End Time 2025-01-08 08:46:05 [2025-01-08 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201105', 'tblTempUsageDetail_20' ) start [2025-01-08 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201105', 'tblTempUsageDetail_20' ) end [2025-01-08 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201105', 'tblTempVendorCDR_20' ) start [2025-01-08 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201105', 'tblTempVendorCDR_20' ) end [2025-01-08 08:46:18] Production.INFO: ProcessCDR(1,14201105,1,1,2) [2025-01-08 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201105', 'tblTempUsageDetail_20' ) start [2025-01-08 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201105', 'tblTempUsageDetail_20' ) end [2025-01-08 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:46:22] Production.INFO: ==18573== Releasing lock... [2025-01-08 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:46:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:47:05 [end_date_ymd] => 2025-01-08 08:47:05 [RateCDR] => 1 ) [2025-01-08 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:47:05' and `end` < '2025-01-08 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:47:18] Production.INFO: count ==454 [2025-01-08 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:47:05 - End Time 2025-01-08 08:47:05 [2025-01-08 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201110', 'tblTempUsageDetail_20' ) start [2025-01-08 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201110', 'tblTempUsageDetail_20' ) end [2025-01-08 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201110', 'tblTempVendorCDR_20' ) start [2025-01-08 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201110', 'tblTempVendorCDR_20' ) end [2025-01-08 08:47:18] Production.INFO: ProcessCDR(1,14201110,1,1,2) [2025-01-08 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201110', 'tblTempUsageDetail_20' ) start [2025-01-08 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201110', 'tblTempUsageDetail_20' ) end [2025-01-08 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:47:23] Production.INFO: ==18675== Releasing lock... [2025-01-08 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:47:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:48:04 [end_date_ymd] => 2025-01-08 08:48:04 [RateCDR] => 1 ) [2025-01-08 08:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:48:04' and `end` < '2025-01-08 08:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:48:17] Production.INFO: count ==477 [2025-01-08 08:48:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:48:04 - End Time 2025-01-08 08:48:04 [2025-01-08 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201115', 'tblTempUsageDetail_20' ) start [2025-01-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201115', 'tblTempUsageDetail_20' ) end [2025-01-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201115', 'tblTempVendorCDR_20' ) start [2025-01-08 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201115', 'tblTempVendorCDR_20' ) end [2025-01-08 08:48:17] Production.INFO: ProcessCDR(1,14201115,1,1,2) [2025-01-08 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201115', 'tblTempUsageDetail_20' ) start [2025-01-08 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201115', 'tblTempUsageDetail_20' ) end [2025-01-08 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:48:22] Production.INFO: ==18779== Releasing lock... [2025-01-08 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:48:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:49:05 [end_date_ymd] => 2025-01-08 08:49:05 [RateCDR] => 1 ) [2025-01-08 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:49:05' and `end` < '2025-01-08 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:49:18] Production.INFO: count ==483 [2025-01-08 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:49:05 - End Time 2025-01-08 08:49:05 [2025-01-08 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201120', 'tblTempUsageDetail_20' ) start [2025-01-08 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201120', 'tblTempUsageDetail_20' ) end [2025-01-08 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201120', 'tblTempVendorCDR_20' ) start [2025-01-08 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201120', 'tblTempVendorCDR_20' ) end [2025-01-08 08:49:18] Production.INFO: ProcessCDR(1,14201120,1,1,2) [2025-01-08 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201120', 'tblTempUsageDetail_20' ) start [2025-01-08 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201120', 'tblTempUsageDetail_20' ) end [2025-01-08 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:49:21] Production.INFO: ==18871== Releasing lock... [2025-01-08 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:50:05 [end_date_ymd] => 2025-01-08 08:50:05 [RateCDR] => 1 ) [2025-01-08 08:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:50:05' and `end` < '2025-01-08 08:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:50:18] Production.INFO: count ==488 [2025-01-08 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:50:05 - End Time 2025-01-08 08:50:05 [2025-01-08 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201126', 'tblTempUsageDetail_20' ) start [2025-01-08 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201126', 'tblTempUsageDetail_20' ) end [2025-01-08 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201126', 'tblTempVendorCDR_20' ) start [2025-01-08 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201126', 'tblTempVendorCDR_20' ) end [2025-01-08 08:50:18] Production.INFO: ProcessCDR(1,14201126,1,1,2) [2025-01-08 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201126', 'tblTempUsageDetail_20' ) start [2025-01-08 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201126', 'tblTempUsageDetail_20' ) end [2025-01-08 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:50:23] Production.INFO: ==18957== Releasing lock... [2025-01-08 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:50:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:51:05 [end_date_ymd] => 2025-01-08 08:51:05 [RateCDR] => 1 ) [2025-01-08 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:51:05' and `end` < '2025-01-08 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:51:18] Production.INFO: count ==517 [2025-01-08 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:51:05 - End Time 2025-01-08 08:51:05 [2025-01-08 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201131', 'tblTempUsageDetail_20' ) start [2025-01-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201131', 'tblTempUsageDetail_20' ) end [2025-01-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201131', 'tblTempVendorCDR_20' ) start [2025-01-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201131', 'tblTempVendorCDR_20' ) end [2025-01-08 08:51:18] Production.INFO: ProcessCDR(1,14201131,1,1,2) [2025-01-08 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201131', 'tblTempUsageDetail_20' ) start [2025-01-08 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201131', 'tblTempUsageDetail_20' ) end [2025-01-08 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:51:21] Production.INFO: ==19044== Releasing lock... [2025-01-08 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:52:05 [end_date_ymd] => 2025-01-08 08:52:05 [RateCDR] => 1 ) [2025-01-08 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:52:05' and `end` < '2025-01-08 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:52:18] Production.INFO: count ==518 [2025-01-08 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:52:05 - End Time 2025-01-08 08:52:05 [2025-01-08 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201136', 'tblTempUsageDetail_20' ) start [2025-01-08 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201136', 'tblTempUsageDetail_20' ) end [2025-01-08 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201136', 'tblTempVendorCDR_20' ) start [2025-01-08 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201136', 'tblTempVendorCDR_20' ) end [2025-01-08 08:52:18] Production.INFO: ProcessCDR(1,14201136,1,1,2) [2025-01-08 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201136', 'tblTempUsageDetail_20' ) start [2025-01-08 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201136', 'tblTempUsageDetail_20' ) end [2025-01-08 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:52:22] Production.INFO: ==19132== Releasing lock... [2025-01-08 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:53:05 [end_date_ymd] => 2025-01-08 08:53:05 [RateCDR] => 1 ) [2025-01-08 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:53:05' and `end` < '2025-01-08 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:53:18] Production.INFO: count ==525 [2025-01-08 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:53:05 - End Time 2025-01-08 08:53:05 [2025-01-08 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201141', 'tblTempUsageDetail_20' ) start [2025-01-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201141', 'tblTempUsageDetail_20' ) end [2025-01-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201141', 'tblTempVendorCDR_20' ) start [2025-01-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201141', 'tblTempVendorCDR_20' ) end [2025-01-08 08:53:18] Production.INFO: ProcessCDR(1,14201141,1,1,2) [2025-01-08 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201141', 'tblTempUsageDetail_20' ) start [2025-01-08 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201141', 'tblTempUsageDetail_20' ) end [2025-01-08 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:53:21] Production.INFO: ==19216== Releasing lock... [2025-01-08 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-08 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:54:04 [end_date_ymd] => 2025-01-08 08:54:04 [RateCDR] => 1 ) [2025-01-08 08:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:54:04' and `end` < '2025-01-08 08:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:54:17] Production.INFO: count ==536 [2025-01-08 08:54:17] Production.ERROR: pbx CDR StartTime 2025-01-08 05:54:04 - End Time 2025-01-08 08:54:04 [2025-01-08 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201146', 'tblTempUsageDetail_20' ) start [2025-01-08 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201146', 'tblTempUsageDetail_20' ) end [2025-01-08 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201146', 'tblTempVendorCDR_20' ) start [2025-01-08 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201146', 'tblTempVendorCDR_20' ) end [2025-01-08 08:54:17] Production.INFO: ProcessCDR(1,14201146,1,1,2) [2025-01-08 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201146', 'tblTempUsageDetail_20' ) start [2025-01-08 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201146', 'tblTempUsageDetail_20' ) end [2025-01-08 08:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:54:20] Production.INFO: ==19299== Releasing lock... [2025-01-08 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:54:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-08 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:55:05 [end_date_ymd] => 2025-01-08 08:55:05 [RateCDR] => 1 ) [2025-01-08 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:55:05' and `end` < '2025-01-08 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:55:18] Production.INFO: count ==545 [2025-01-08 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:55:05 - End Time 2025-01-08 08:55:05 [2025-01-08 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201151', 'tblTempUsageDetail_20' ) start [2025-01-08 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201151', 'tblTempUsageDetail_20' ) end [2025-01-08 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201151', 'tblTempVendorCDR_20' ) start [2025-01-08 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201151', 'tblTempVendorCDR_20' ) end [2025-01-08 08:55:18] Production.INFO: ProcessCDR(1,14201151,1,1,2) [2025-01-08 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201151', 'tblTempUsageDetail_20' ) start [2025-01-08 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201151', 'tblTempUsageDetail_20' ) end [2025-01-08 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:55:23] Production.INFO: ==19392== Releasing lock... [2025-01-08 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:55:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-08 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:56:05 [end_date_ymd] => 2025-01-08 08:56:05 [RateCDR] => 1 ) [2025-01-08 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:56:05' and `end` < '2025-01-08 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:56:19] Production.INFO: count ==553 [2025-01-08 08:56:19] Production.ERROR: pbx CDR StartTime 2025-01-08 05:56:05 - End Time 2025-01-08 08:56:05 [2025-01-08 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201156', 'tblTempUsageDetail_20' ) start [2025-01-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201156', 'tblTempUsageDetail_20' ) end [2025-01-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201156', 'tblTempVendorCDR_20' ) start [2025-01-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201156', 'tblTempVendorCDR_20' ) end [2025-01-08 08:56:19] Production.INFO: ProcessCDR(1,14201156,1,1,2) [2025-01-08 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201156', 'tblTempUsageDetail_20' ) start [2025-01-08 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201156', 'tblTempUsageDetail_20' ) end [2025-01-08 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:56:22] Production.INFO: ==19520== Releasing lock... [2025-01-08 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:56:22] Production.INFO: 33 MB #Memory Used# [2025-01-08 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:57:05 [end_date_ymd] => 2025-01-08 08:57:05 [RateCDR] => 1 ) [2025-01-08 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:57:05' and `end` < '2025-01-08 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:57:18] Production.INFO: count ==569 [2025-01-08 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:57:05 - End Time 2025-01-08 08:57:05 [2025-01-08 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201161', 'tblTempUsageDetail_20' ) start [2025-01-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201161', 'tblTempUsageDetail_20' ) end [2025-01-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201161', 'tblTempVendorCDR_20' ) start [2025-01-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201161', 'tblTempVendorCDR_20' ) end [2025-01-08 08:57:18] Production.INFO: ProcessCDR(1,14201161,1,1,2) [2025-01-08 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201161', 'tblTempUsageDetail_20' ) start [2025-01-08 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201161', 'tblTempUsageDetail_20' ) end [2025-01-08 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:57:21] Production.INFO: ==19632== Releasing lock... [2025-01-08 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-08 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:58:05 [end_date_ymd] => 2025-01-08 08:58:05 [RateCDR] => 1 ) [2025-01-08 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:58:05' and `end` < '2025-01-08 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:58:18] Production.INFO: count ==583 [2025-01-08 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:58:05 - End Time 2025-01-08 08:58:05 [2025-01-08 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201166', 'tblTempUsageDetail_20' ) start [2025-01-08 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201166', 'tblTempUsageDetail_20' ) end [2025-01-08 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201166', 'tblTempVendorCDR_20' ) start [2025-01-08 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201166', 'tblTempVendorCDR_20' ) end [2025-01-08 08:58:18] Production.INFO: ProcessCDR(1,14201166,1,1,2) [2025-01-08 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201166', 'tblTempUsageDetail_20' ) start [2025-01-08 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201166', 'tblTempUsageDetail_20' ) end [2025-01-08 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:58:22] Production.INFO: ==19752== Releasing lock... [2025-01-08 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:58:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 05:59:05 [end_date_ymd] => 2025-01-08 08:59:05 [RateCDR] => 1 ) [2025-01-08 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 05:59:05' and `end` < '2025-01-08 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 08:59:18] Production.INFO: count ==609 [2025-01-08 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-08 05:59:05 - End Time 2025-01-08 08:59:05 [2025-01-08 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201171', 'tblTempUsageDetail_20' ) start [2025-01-08 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201171', 'tblTempUsageDetail_20' ) end [2025-01-08 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201171', 'tblTempVendorCDR_20' ) start [2025-01-08 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201171', 'tblTempVendorCDR_20' ) end [2025-01-08 08:59:18] Production.INFO: ProcessCDR(1,14201171,1,1,2) [2025-01-08 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201171', 'tblTempUsageDetail_20' ) start [2025-01-08 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201171', 'tblTempUsageDetail_20' ) end [2025-01-08 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 08:59:21] Production.INFO: ==19878== Releasing lock... [2025-01-08 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 08:59:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:00:06 [end_date_ymd] => 2025-01-08 09:00:06 [RateCDR] => 1 ) [2025-01-08 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:00:06' and `end` < '2025-01-08 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:00:19] Production.INFO: count ==636 [2025-01-08 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:00:06 - End Time 2025-01-08 09:00:06 [2025-01-08 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201177', 'tblTempUsageDetail_20' ) start [2025-01-08 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201177', 'tblTempUsageDetail_20' ) end [2025-01-08 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201177', 'tblTempVendorCDR_20' ) start [2025-01-08 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201177', 'tblTempVendorCDR_20' ) end [2025-01-08 09:00:19] Production.INFO: ProcessCDR(1,14201177,1,1,2) [2025-01-08 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201177', 'tblTempUsageDetail_20' ) start [2025-01-08 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201177', 'tblTempUsageDetail_20' ) end [2025-01-08 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:00:24] Production.INFO: ==20004== Releasing lock... [2025-01-08 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:00:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-08 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:01:05 [end_date_ymd] => 2025-01-08 09:01:05 [RateCDR] => 1 ) [2025-01-08 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:01:05' and `end` < '2025-01-08 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:01:18] Production.INFO: count ==712 [2025-01-08 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:01:05 - End Time 2025-01-08 09:01:05 [2025-01-08 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201182', 'tblTempUsageDetail_20' ) start [2025-01-08 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201182', 'tblTempUsageDetail_20' ) end [2025-01-08 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201182', 'tblTempVendorCDR_20' ) start [2025-01-08 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201182', 'tblTempVendorCDR_20' ) end [2025-01-08 09:01:18] Production.INFO: ProcessCDR(1,14201182,1,1,2) [2025-01-08 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201182', 'tblTempUsageDetail_20' ) start [2025-01-08 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201182', 'tblTempUsageDetail_20' ) end [2025-01-08 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:01:23] Production.INFO: ==20145== Releasing lock... [2025-01-08 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:01:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:02:05 [end_date_ymd] => 2025-01-08 09:02:05 [RateCDR] => 1 ) [2025-01-08 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:02:05' and `end` < '2025-01-08 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:02:18] Production.INFO: count ==715 [2025-01-08 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:02:05 - End Time 2025-01-08 09:02:05 [2025-01-08 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201187', 'tblTempUsageDetail_20' ) start [2025-01-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201187', 'tblTempUsageDetail_20' ) end [2025-01-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201187', 'tblTempVendorCDR_20' ) start [2025-01-08 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201187', 'tblTempVendorCDR_20' ) end [2025-01-08 09:02:18] Production.INFO: ProcessCDR(1,14201187,1,1,2) [2025-01-08 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201187', 'tblTempUsageDetail_20' ) start [2025-01-08 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201187', 'tblTempUsageDetail_20' ) end [2025-01-08 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:02:21] Production.INFO: ==20276== Releasing lock... [2025-01-08 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:02:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:03:05 [end_date_ymd] => 2025-01-08 09:03:05 [RateCDR] => 1 ) [2025-01-08 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:03:05' and `end` < '2025-01-08 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:03:18] Production.INFO: count ==738 [2025-01-08 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:03:05 - End Time 2025-01-08 09:03:05 [2025-01-08 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201192', 'tblTempUsageDetail_20' ) start [2025-01-08 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201192', 'tblTempUsageDetail_20' ) end [2025-01-08 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201192', 'tblTempVendorCDR_20' ) start [2025-01-08 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201192', 'tblTempVendorCDR_20' ) end [2025-01-08 09:03:18] Production.INFO: ProcessCDR(1,14201192,1,1,2) [2025-01-08 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201192', 'tblTempUsageDetail_20' ) start [2025-01-08 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201192', 'tblTempUsageDetail_20' ) end [2025-01-08 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:03:21] Production.INFO: ==20406== Releasing lock... [2025-01-08 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:03:21] Production.INFO: 34 MB #Memory Used# [2025-01-08 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:04:04 [end_date_ymd] => 2025-01-08 09:04:04 [RateCDR] => 1 ) [2025-01-08 09:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:04:04' and `end` < '2025-01-08 09:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:04:18] Production.INFO: count ==781 [2025-01-08 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:04:04 - End Time 2025-01-08 09:04:04 [2025-01-08 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201197', 'tblTempUsageDetail_20' ) start [2025-01-08 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201197', 'tblTempUsageDetail_20' ) end [2025-01-08 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201197', 'tblTempVendorCDR_20' ) start [2025-01-08 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201197', 'tblTempVendorCDR_20' ) end [2025-01-08 09:04:18] Production.INFO: ProcessCDR(1,14201197,1,1,2) [2025-01-08 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201197', 'tblTempUsageDetail_20' ) start [2025-01-08 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201197', 'tblTempUsageDetail_20' ) end [2025-01-08 09:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:04:21] Production.INFO: ==20526== Releasing lock... [2025-01-08 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:04:21] Production.INFO: 34 MB #Memory Used# [2025-01-08 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:05:05 [end_date_ymd] => 2025-01-08 09:05:05 [RateCDR] => 1 ) [2025-01-08 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:05:05' and `end` < '2025-01-08 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:05:18] Production.INFO: count ==790 [2025-01-08 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:05:05 - End Time 2025-01-08 09:05:05 [2025-01-08 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201202', 'tblTempUsageDetail_20' ) start [2025-01-08 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201202', 'tblTempUsageDetail_20' ) end [2025-01-08 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201202', 'tblTempVendorCDR_20' ) start [2025-01-08 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201202', 'tblTempVendorCDR_20' ) end [2025-01-08 09:05:18] Production.INFO: ProcessCDR(1,14201202,1,1,2) [2025-01-08 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201202', 'tblTempUsageDetail_20' ) start [2025-01-08 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201202', 'tblTempUsageDetail_20' ) end [2025-01-08 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:05:23] Production.INFO: ==20652== Releasing lock... [2025-01-08 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:05:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-08 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:06:05 [end_date_ymd] => 2025-01-08 09:06:05 [RateCDR] => 1 ) [2025-01-08 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:06:05' and `end` < '2025-01-08 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:06:18] Production.INFO: count ==800 [2025-01-08 09:06:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:06:05 - End Time 2025-01-08 09:06:05 [2025-01-08 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201207', 'tblTempUsageDetail_20' ) start [2025-01-08 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201207', 'tblTempUsageDetail_20' ) end [2025-01-08 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201207', 'tblTempVendorCDR_20' ) start [2025-01-08 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201207', 'tblTempVendorCDR_20' ) end [2025-01-08 09:06:18] Production.INFO: ProcessCDR(1,14201207,1,1,2) [2025-01-08 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201207', 'tblTempUsageDetail_20' ) start [2025-01-08 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201207', 'tblTempUsageDetail_20' ) end [2025-01-08 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:06:23] Production.INFO: ==20772== Releasing lock... [2025-01-08 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:06:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-08 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:07:04 [end_date_ymd] => 2025-01-08 09:07:04 [RateCDR] => 1 ) [2025-01-08 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:07:04' and `end` < '2025-01-08 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:07:18] Production.INFO: count ==814 [2025-01-08 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:07:04 - End Time 2025-01-08 09:07:04 [2025-01-08 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201212', 'tblTempUsageDetail_20' ) start [2025-01-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201212', 'tblTempUsageDetail_20' ) end [2025-01-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201212', 'tblTempVendorCDR_20' ) start [2025-01-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201212', 'tblTempVendorCDR_20' ) end [2025-01-08 09:07:18] Production.INFO: ProcessCDR(1,14201212,1,1,2) [2025-01-08 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201212', 'tblTempUsageDetail_20' ) start [2025-01-08 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201212', 'tblTempUsageDetail_20' ) end [2025-01-08 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:07:23] Production.INFO: ==20898== Releasing lock... [2025-01-08 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:07:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-08 09:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:08:04 [end_date_ymd] => 2025-01-08 09:08:04 [RateCDR] => 1 ) [2025-01-08 09:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:08:04' and `end` < '2025-01-08 09:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:08:17] Production.INFO: count ==821 [2025-01-08 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:08:04 - End Time 2025-01-08 09:08:04 [2025-01-08 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201217', 'tblTempUsageDetail_20' ) start [2025-01-08 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201217', 'tblTempUsageDetail_20' ) end [2025-01-08 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201217', 'tblTempVendorCDR_20' ) start [2025-01-08 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201217', 'tblTempVendorCDR_20' ) end [2025-01-08 09:08:18] Production.INFO: ProcessCDR(1,14201217,1,1,2) [2025-01-08 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201217', 'tblTempUsageDetail_20' ) start [2025-01-08 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201217', 'tblTempUsageDetail_20' ) end [2025-01-08 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:08:22] Production.INFO: ==21025== Releasing lock... [2025-01-08 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:08:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-08 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:09:04 [end_date_ymd] => 2025-01-08 09:09:04 [RateCDR] => 1 ) [2025-01-08 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:09:04' and `end` < '2025-01-08 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:09:17] Production.INFO: count ==825 [2025-01-08 09:09:17] Production.ERROR: pbx CDR StartTime 2025-01-08 06:09:04 - End Time 2025-01-08 09:09:04 [2025-01-08 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201222', 'tblTempUsageDetail_20' ) start [2025-01-08 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201222', 'tblTempUsageDetail_20' ) end [2025-01-08 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201222', 'tblTempVendorCDR_20' ) start [2025-01-08 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201222', 'tblTempVendorCDR_20' ) end [2025-01-08 09:09:17] Production.INFO: ProcessCDR(1,14201222,1,1,2) [2025-01-08 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201222', 'tblTempUsageDetail_20' ) start [2025-01-08 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201222', 'tblTempUsageDetail_20' ) end [2025-01-08 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:09:22] Production.INFO: ==21147== Releasing lock... [2025-01-08 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-08 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:10:05 [end_date_ymd] => 2025-01-08 09:10:05 [RateCDR] => 1 ) [2025-01-08 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:10:05' and `end` < '2025-01-08 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:10:18] Production.INFO: count ==876 [2025-01-08 09:10:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:10:05 - End Time 2025-01-08 09:10:05 [2025-01-08 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201228', 'tblTempUsageDetail_20' ) start [2025-01-08 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201228', 'tblTempUsageDetail_20' ) end [2025-01-08 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201228', 'tblTempVendorCDR_20' ) start [2025-01-08 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201228', 'tblTempVendorCDR_20' ) end [2025-01-08 09:10:18] Production.INFO: ProcessCDR(1,14201228,1,1,2) [2025-01-08 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201228', 'tblTempUsageDetail_20' ) start [2025-01-08 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201228', 'tblTempUsageDetail_20' ) end [2025-01-08 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:10:23] Production.INFO: ==21274== Releasing lock... [2025-01-08 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:10:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-08 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:11:05 [end_date_ymd] => 2025-01-08 09:11:05 [RateCDR] => 1 ) [2025-01-08 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:11:05' and `end` < '2025-01-08 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:11:18] Production.INFO: count ==927 [2025-01-08 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:11:05 - End Time 2025-01-08 09:11:05 [2025-01-08 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201233', 'tblTempUsageDetail_20' ) start [2025-01-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201233', 'tblTempUsageDetail_20' ) end [2025-01-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201233', 'tblTempVendorCDR_20' ) start [2025-01-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201233', 'tblTempVendorCDR_20' ) end [2025-01-08 09:11:18] Production.INFO: ProcessCDR(1,14201233,1,1,2) [2025-01-08 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201233', 'tblTempUsageDetail_20' ) start [2025-01-08 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201233', 'tblTempUsageDetail_20' ) end [2025-01-08 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:11:23] Production.INFO: ==21404== Releasing lock... [2025-01-08 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:11:23] Production.INFO: 35 MB #Memory Used# [2025-01-08 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:12:04 [end_date_ymd] => 2025-01-08 09:12:04 [RateCDR] => 1 ) [2025-01-08 09:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:12:04' and `end` < '2025-01-08 09:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:12:18] Production.INFO: count ==953 [2025-01-08 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:12:04 - End Time 2025-01-08 09:12:04 [2025-01-08 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201238', 'tblTempUsageDetail_20' ) start [2025-01-08 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201238', 'tblTempUsageDetail_20' ) end [2025-01-08 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201238', 'tblTempVendorCDR_20' ) start [2025-01-08 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201238', 'tblTempVendorCDR_20' ) end [2025-01-08 09:12:18] Production.INFO: ProcessCDR(1,14201238,1,1,2) [2025-01-08 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201238', 'tblTempUsageDetail_20' ) start [2025-01-08 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201238', 'tblTempUsageDetail_20' ) end [2025-01-08 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:12:22] Production.INFO: ==21568== Releasing lock... [2025-01-08 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:12:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-08 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:13:05 [end_date_ymd] => 2025-01-08 09:13:05 [RateCDR] => 1 ) [2025-01-08 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:13:05' and `end` < '2025-01-08 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:13:18] Production.INFO: count ==989 [2025-01-08 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:13:05 - End Time 2025-01-08 09:13:05 [2025-01-08 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201243', 'tblTempUsageDetail_20' ) start [2025-01-08 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201243', 'tblTempUsageDetail_20' ) end [2025-01-08 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201243', 'tblTempVendorCDR_20' ) start [2025-01-08 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201243', 'tblTempVendorCDR_20' ) end [2025-01-08 09:13:18] Production.INFO: ProcessCDR(1,14201243,1,1,2) [2025-01-08 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201243', 'tblTempUsageDetail_20' ) start [2025-01-08 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201243', 'tblTempUsageDetail_20' ) end [2025-01-08 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:13:23] Production.INFO: ==21665== Releasing lock... [2025-01-08 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:13:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-08 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:14:04 [end_date_ymd] => 2025-01-08 09:14:04 [RateCDR] => 1 ) [2025-01-08 09:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:14:04' and `end` < '2025-01-08 09:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:14:17] Production.INFO: count ==1036 [2025-01-08 09:14:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:14:04 - End Time 2025-01-08 09:14:04 [2025-01-08 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201248', 'tblTempUsageDetail_20' ) start [2025-01-08 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201248', 'tblTempUsageDetail_20' ) end [2025-01-08 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201248', 'tblTempVendorCDR_20' ) start [2025-01-08 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201248', 'tblTempVendorCDR_20' ) end [2025-01-08 09:14:18] Production.INFO: ProcessCDR(1,14201248,1,1,2) [2025-01-08 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201248', 'tblTempUsageDetail_20' ) start [2025-01-08 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201248', 'tblTempUsageDetail_20' ) end [2025-01-08 09:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:14:21] Production.INFO: ==21762== Releasing lock... [2025-01-08 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:14:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-08 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:15:05 [end_date_ymd] => 2025-01-08 09:15:05 [RateCDR] => 1 ) [2025-01-08 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:15:05' and `end` < '2025-01-08 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:15:18] Production.INFO: count ==1037 [2025-01-08 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:15:05 - End Time 2025-01-08 09:15:05 [2025-01-08 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201253', 'tblTempUsageDetail_20' ) start [2025-01-08 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201253', 'tblTempUsageDetail_20' ) end [2025-01-08 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201253', 'tblTempVendorCDR_20' ) start [2025-01-08 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201253', 'tblTempVendorCDR_20' ) end [2025-01-08 09:15:18] Production.INFO: ProcessCDR(1,14201253,1,1,2) [2025-01-08 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201253', 'tblTempUsageDetail_20' ) start [2025-01-08 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201253', 'tblTempUsageDetail_20' ) end [2025-01-08 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:15:23] Production.INFO: ==21854== Releasing lock... [2025-01-08 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:15:23] Production.INFO: 36 MB #Memory Used# [2025-01-08 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:16:05 [end_date_ymd] => 2025-01-08 09:16:05 [RateCDR] => 1 ) [2025-01-08 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:16:05' and `end` < '2025-01-08 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:16:20] Production.INFO: count ==1059 [2025-01-08 09:16:20] Production.ERROR: pbx CDR StartTime 2025-01-08 06:16:05 - End Time 2025-01-08 09:16:05 [2025-01-08 09:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201258', 'tblTempUsageDetail_20' ) start [2025-01-08 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201258', 'tblTempUsageDetail_20' ) end [2025-01-08 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201258', 'tblTempVendorCDR_20' ) start [2025-01-08 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201258', 'tblTempVendorCDR_20' ) end [2025-01-08 09:16:20] Production.INFO: ProcessCDR(1,14201258,1,1,2) [2025-01-08 09:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201258', 'tblTempUsageDetail_20' ) start [2025-01-08 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201258', 'tblTempUsageDetail_20' ) end [2025-01-08 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:16:25] Production.INFO: ==21949== Releasing lock... [2025-01-08 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:16:25] Production.INFO: 36.75 MB #Memory Used# [2025-01-08 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:17:04 [end_date_ymd] => 2025-01-08 09:17:04 [RateCDR] => 1 ) [2025-01-08 09:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:17:04' and `end` < '2025-01-08 09:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:17:19] Production.INFO: count ==1061 [2025-01-08 09:17:20] Production.ERROR: pbx CDR StartTime 2025-01-08 06:17:04 - End Time 2025-01-08 09:17:04 [2025-01-08 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201263', 'tblTempUsageDetail_20' ) start [2025-01-08 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201263', 'tblTempUsageDetail_20' ) end [2025-01-08 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201263', 'tblTempVendorCDR_20' ) start [2025-01-08 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201263', 'tblTempVendorCDR_20' ) end [2025-01-08 09:17:20] Production.INFO: ProcessCDR(1,14201263,1,1,2) [2025-01-08 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201263', 'tblTempUsageDetail_20' ) start [2025-01-08 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201263', 'tblTempUsageDetail_20' ) end [2025-01-08 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:17:24] Production.INFO: ==22040== Releasing lock... [2025-01-08 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:17:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-08 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:18:05 [end_date_ymd] => 2025-01-08 09:18:05 [RateCDR] => 1 ) [2025-01-08 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:18:05' and `end` < '2025-01-08 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:18:18] Production.INFO: count ==1078 [2025-01-08 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:18:05 - End Time 2025-01-08 09:18:05 [2025-01-08 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201268', 'tblTempUsageDetail_20' ) start [2025-01-08 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201268', 'tblTempUsageDetail_20' ) end [2025-01-08 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201268', 'tblTempVendorCDR_20' ) start [2025-01-08 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201268', 'tblTempVendorCDR_20' ) end [2025-01-08 09:18:18] Production.INFO: ProcessCDR(1,14201268,1,1,2) [2025-01-08 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201268', 'tblTempUsageDetail_20' ) start [2025-01-08 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201268', 'tblTempUsageDetail_20' ) end [2025-01-08 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:18:23] Production.INFO: ==22140== Releasing lock... [2025-01-08 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:18:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-08 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:19:04 [end_date_ymd] => 2025-01-08 09:19:04 [RateCDR] => 1 ) [2025-01-08 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:19:04' and `end` < '2025-01-08 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:19:18] Production.INFO: count ==1080 [2025-01-08 09:19:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:19:04 - End Time 2025-01-08 09:19:04 [2025-01-08 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201273', 'tblTempUsageDetail_20' ) start [2025-01-08 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201273', 'tblTempUsageDetail_20' ) end [2025-01-08 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201273', 'tblTempVendorCDR_20' ) start [2025-01-08 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201273', 'tblTempVendorCDR_20' ) end [2025-01-08 09:19:19] Production.INFO: ProcessCDR(1,14201273,1,1,2) [2025-01-08 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201273', 'tblTempUsageDetail_20' ) start [2025-01-08 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201273', 'tblTempUsageDetail_20' ) end [2025-01-08 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:19:22] Production.INFO: ==22222== Releasing lock... [2025-01-08 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:19:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:20:05 [end_date_ymd] => 2025-01-08 09:20:05 [RateCDR] => 1 ) [2025-01-08 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:20:05' and `end` < '2025-01-08 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:20:19] Production.INFO: count ==1095 [2025-01-08 09:20:20] Production.ERROR: pbx CDR StartTime 2025-01-08 06:20:05 - End Time 2025-01-08 09:20:05 [2025-01-08 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201278', 'tblTempUsageDetail_20' ) start [2025-01-08 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201278', 'tblTempUsageDetail_20' ) end [2025-01-08 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201278', 'tblTempVendorCDR_20' ) start [2025-01-08 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201278', 'tblTempVendorCDR_20' ) end [2025-01-08 09:20:20] Production.INFO: ProcessCDR(1,14201278,1,1,2) [2025-01-08 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201278', 'tblTempUsageDetail_20' ) start [2025-01-08 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201278', 'tblTempUsageDetail_20' ) end [2025-01-08 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:20:25] Production.INFO: ==22309== Releasing lock... [2025-01-08 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:20:25] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:21:05 [end_date_ymd] => 2025-01-08 09:21:05 [RateCDR] => 1 ) [2025-01-08 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:21:05' and `end` < '2025-01-08 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:21:21] Production.INFO: count ==1163 [2025-01-08 09:21:22] Production.ERROR: pbx CDR StartTime 2025-01-08 06:21:05 - End Time 2025-01-08 09:21:05 [2025-01-08 09:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201284', 'tblTempUsageDetail_20' ) start [2025-01-08 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201284', 'tblTempUsageDetail_20' ) end [2025-01-08 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201284', 'tblTempVendorCDR_20' ) start [2025-01-08 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201284', 'tblTempVendorCDR_20' ) end [2025-01-08 09:21:22] Production.INFO: ProcessCDR(1,14201284,1,1,2) [2025-01-08 09:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201284', 'tblTempUsageDetail_20' ) start [2025-01-08 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201284', 'tblTempUsageDetail_20' ) end [2025-01-08 09:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:21:27] Production.INFO: ==22394== Releasing lock... [2025-01-08 09:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:21:27] Production.INFO: 37 MB #Memory Used# [2025-01-08 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:22:05 [end_date_ymd] => 2025-01-08 09:22:05 [RateCDR] => 1 ) [2025-01-08 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:22:05' and `end` < '2025-01-08 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:22:22] Production.INFO: count ==1200 [2025-01-08 09:22:23] Production.ERROR: pbx CDR StartTime 2025-01-08 06:22:05 - End Time 2025-01-08 09:22:05 [2025-01-08 09:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201289', 'tblTempUsageDetail_20' ) start [2025-01-08 09:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201289', 'tblTempUsageDetail_20' ) end [2025-01-08 09:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201289', 'tblTempVendorCDR_20' ) start [2025-01-08 09:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201289', 'tblTempVendorCDR_20' ) end [2025-01-08 09:22:23] Production.INFO: ProcessCDR(1,14201289,1,1,2) [2025-01-08 09:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201289', 'tblTempUsageDetail_20' ) start [2025-01-08 09:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201289', 'tblTempUsageDetail_20' ) end [2025-01-08 09:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:22:27] Production.INFO: ==22480== Releasing lock... [2025-01-08 09:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:22:27] Production.INFO: 37.25 MB #Memory Used# [2025-01-08 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:23:05 [end_date_ymd] => 2025-01-08 09:23:05 [RateCDR] => 1 ) [2025-01-08 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:23:05' and `end` < '2025-01-08 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:23:23] Production.INFO: count ==1215 [2025-01-08 09:23:23] Production.ERROR: pbx CDR StartTime 2025-01-08 06:23:05 - End Time 2025-01-08 09:23:05 [2025-01-08 09:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201294', 'tblTempUsageDetail_20' ) start [2025-01-08 09:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201294', 'tblTempUsageDetail_20' ) end [2025-01-08 09:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201294', 'tblTempVendorCDR_20' ) start [2025-01-08 09:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201294', 'tblTempVendorCDR_20' ) end [2025-01-08 09:23:23] Production.INFO: ProcessCDR(1,14201294,1,1,2) [2025-01-08 09:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201294', 'tblTempUsageDetail_20' ) start [2025-01-08 09:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201294', 'tblTempUsageDetail_20' ) end [2025-01-08 09:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:23:28] Production.INFO: ==22568== Releasing lock... [2025-01-08 09:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:23:28] Production.INFO: 37.5 MB #Memory Used# [2025-01-08 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:24:06 [end_date_ymd] => 2025-01-08 09:24:06 [RateCDR] => 1 ) [2025-01-08 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:24:06' and `end` < '2025-01-08 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:24:19] Production.INFO: count ==1234 [2025-01-08 09:24:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:24:06 - End Time 2025-01-08 09:24:06 [2025-01-08 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201299', 'tblTempUsageDetail_20' ) start [2025-01-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201299', 'tblTempUsageDetail_20' ) end [2025-01-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201299', 'tblTempVendorCDR_20' ) start [2025-01-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201299', 'tblTempVendorCDR_20' ) end [2025-01-08 09:24:19] Production.INFO: ProcessCDR(1,14201299,1,1,2) [2025-01-08 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201299', 'tblTempUsageDetail_20' ) start [2025-01-08 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201299', 'tblTempUsageDetail_20' ) end [2025-01-08 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:24:24] Production.INFO: ==22652== Releasing lock... [2025-01-08 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:24:24] Production.INFO: 37 MB #Memory Used# [2025-01-08 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:25:04 [end_date_ymd] => 2025-01-08 09:25:04 [RateCDR] => 1 ) [2025-01-08 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:25:04' and `end` < '2025-01-08 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:25:18] Production.INFO: count ==1250 [2025-01-08 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 06:25:04 - End Time 2025-01-08 09:25:04 [2025-01-08 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201304', 'tblTempUsageDetail_20' ) start [2025-01-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201304', 'tblTempUsageDetail_20' ) end [2025-01-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201304', 'tblTempVendorCDR_20' ) start [2025-01-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201304', 'tblTempVendorCDR_20' ) end [2025-01-08 09:25:18] Production.INFO: ProcessCDR(1,14201304,1,1,2) [2025-01-08 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201304', 'tblTempUsageDetail_20' ) start [2025-01-08 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201304', 'tblTempUsageDetail_20' ) end [2025-01-08 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:25:23] Production.INFO: ==22737== Releasing lock... [2025-01-08 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:25:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-08 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:26:05 [end_date_ymd] => 2025-01-08 09:26:05 [RateCDR] => 1 ) [2025-01-08 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:26:05' and `end` < '2025-01-08 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:26:19] Production.INFO: count ==1272 [2025-01-08 09:26:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:26:05 - End Time 2025-01-08 09:26:05 [2025-01-08 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201309', 'tblTempUsageDetail_20' ) start [2025-01-08 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201309', 'tblTempUsageDetail_20' ) end [2025-01-08 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201309', 'tblTempVendorCDR_20' ) start [2025-01-08 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201309', 'tblTempVendorCDR_20' ) end [2025-01-08 09:26:19] Production.INFO: ProcessCDR(1,14201309,1,1,2) [2025-01-08 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201309', 'tblTempUsageDetail_20' ) start [2025-01-08 09:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201309', 'tblTempUsageDetail_20' ) end [2025-01-08 09:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:26:22] Production.INFO: ==22821== Releasing lock... [2025-01-08 09:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:26:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-08 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:27:04 [end_date_ymd] => 2025-01-08 09:27:04 [RateCDR] => 1 ) [2025-01-08 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:27:04' and `end` < '2025-01-08 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:27:19] Production.INFO: count ==1279 [2025-01-08 09:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:27:04 - End Time 2025-01-08 09:27:04 [2025-01-08 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201314', 'tblTempUsageDetail_20' ) start [2025-01-08 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201314', 'tblTempUsageDetail_20' ) end [2025-01-08 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201314', 'tblTempVendorCDR_20' ) start [2025-01-08 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201314', 'tblTempVendorCDR_20' ) end [2025-01-08 09:27:19] Production.INFO: ProcessCDR(1,14201314,1,1,2) [2025-01-08 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201314', 'tblTempUsageDetail_20' ) start [2025-01-08 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201314', 'tblTempUsageDetail_20' ) end [2025-01-08 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:27:24] Production.INFO: ==22902== Releasing lock... [2025-01-08 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:27:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-08 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:28:05 [end_date_ymd] => 2025-01-08 09:28:05 [RateCDR] => 1 ) [2025-01-08 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:28:05' and `end` < '2025-01-08 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:28:22] Production.INFO: count ==1290 [2025-01-08 09:28:23] Production.ERROR: pbx CDR StartTime 2025-01-08 06:28:05 - End Time 2025-01-08 09:28:05 [2025-01-08 09:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201319', 'tblTempUsageDetail_20' ) start [2025-01-08 09:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201319', 'tblTempUsageDetail_20' ) end [2025-01-08 09:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201319', 'tblTempVendorCDR_20' ) start [2025-01-08 09:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201319', 'tblTempVendorCDR_20' ) end [2025-01-08 09:28:23] Production.INFO: ProcessCDR(1,14201319,1,1,2) [2025-01-08 09:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201319', 'tblTempUsageDetail_20' ) start [2025-01-08 09:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201319', 'tblTempUsageDetail_20' ) end [2025-01-08 09:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:28:27] Production.INFO: ==23023== Releasing lock... [2025-01-08 09:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:28:27] Production.INFO: 38 MB #Memory Used# [2025-01-08 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:29:05 [end_date_ymd] => 2025-01-08 09:29:05 [RateCDR] => 1 ) [2025-01-08 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:29:05' and `end` < '2025-01-08 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:29:19] Production.INFO: count ==1314 [2025-01-08 09:29:20] Production.ERROR: pbx CDR StartTime 2025-01-08 06:29:05 - End Time 2025-01-08 09:29:05 [2025-01-08 09:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201324', 'tblTempUsageDetail_20' ) start [2025-01-08 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201324', 'tblTempUsageDetail_20' ) end [2025-01-08 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201324', 'tblTempVendorCDR_20' ) start [2025-01-08 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201324', 'tblTempVendorCDR_20' ) end [2025-01-08 09:29:20] Production.INFO: ProcessCDR(1,14201324,1,1,2) [2025-01-08 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201324', 'tblTempUsageDetail_20' ) start [2025-01-08 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201324', 'tblTempUsageDetail_20' ) end [2025-01-08 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:29:24] Production.INFO: ==23111== Releasing lock... [2025-01-08 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:29:24] Production.INFO: 38 MB #Memory Used# [2025-01-08 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:30:06 [end_date_ymd] => 2025-01-08 09:30:06 [RateCDR] => 1 ) [2025-01-08 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:30:06' and `end` < '2025-01-08 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:30:24] Production.INFO: count ==1337 [2025-01-08 09:30:25] Production.ERROR: pbx CDR StartTime 2025-01-08 06:30:06 - End Time 2025-01-08 09:30:06 [2025-01-08 09:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201330', 'tblTempUsageDetail_20' ) start [2025-01-08 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201330', 'tblTempUsageDetail_20' ) end [2025-01-08 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201330', 'tblTempVendorCDR_20' ) start [2025-01-08 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201330', 'tblTempVendorCDR_20' ) end [2025-01-08 09:30:25] Production.INFO: ProcessCDR(1,14201330,1,1,2) [2025-01-08 09:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201330', 'tblTempUsageDetail_20' ) start [2025-01-08 09:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201330', 'tblTempUsageDetail_20' ) end [2025-01-08 09:30:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:30:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:30:29] Production.INFO: ==23197== Releasing lock... [2025-01-08 09:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:30:29] Production.INFO: 38.25 MB #Memory Used# [2025-01-08 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:31:05 [end_date_ymd] => 2025-01-08 09:31:05 [RateCDR] => 1 ) [2025-01-08 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:31:05' and `end` < '2025-01-08 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:31:22] Production.INFO: count ==1409 [2025-01-08 09:31:23] Production.ERROR: pbx CDR StartTime 2025-01-08 06:31:05 - End Time 2025-01-08 09:31:05 [2025-01-08 09:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201335', 'tblTempUsageDetail_20' ) start [2025-01-08 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201335', 'tblTempUsageDetail_20' ) end [2025-01-08 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201335', 'tblTempVendorCDR_20' ) start [2025-01-08 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201335', 'tblTempVendorCDR_20' ) end [2025-01-08 09:31:23] Production.INFO: ProcessCDR(1,14201335,1,1,2) [2025-01-08 09:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201335', 'tblTempUsageDetail_20' ) start [2025-01-08 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201335', 'tblTempUsageDetail_20' ) end [2025-01-08 09:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:31:27] Production.INFO: ==23286== Releasing lock... [2025-01-08 09:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:31:27] Production.INFO: 38.5 MB #Memory Used# [2025-01-08 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:32:04 [end_date_ymd] => 2025-01-08 09:32:04 [RateCDR] => 1 ) [2025-01-08 09:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:32:04' and `end` < '2025-01-08 09:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:32:21] Production.INFO: count ==1432 [2025-01-08 09:32:22] Production.ERROR: pbx CDR StartTime 2025-01-08 06:32:04 - End Time 2025-01-08 09:32:04 [2025-01-08 09:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201340', 'tblTempUsageDetail_20' ) start [2025-01-08 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201340', 'tblTempUsageDetail_20' ) end [2025-01-08 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201340', 'tblTempVendorCDR_20' ) start [2025-01-08 09:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201340', 'tblTempVendorCDR_20' ) end [2025-01-08 09:32:22] Production.INFO: ProcessCDR(1,14201340,1,1,2) [2025-01-08 09:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201340', 'tblTempUsageDetail_20' ) start [2025-01-08 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201340', 'tblTempUsageDetail_20' ) end [2025-01-08 09:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:32:26] Production.INFO: ==23372== Releasing lock... [2025-01-08 09:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:32:26] Production.INFO: 38.75 MB #Memory Used# [2025-01-08 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:33:05 [end_date_ymd] => 2025-01-08 09:33:05 [RateCDR] => 1 ) [2025-01-08 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:33:05' and `end` < '2025-01-08 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:33:29] Production.INFO: count ==1453 [2025-01-08 09:33:30] Production.ERROR: pbx CDR StartTime 2025-01-08 06:33:05 - End Time 2025-01-08 09:33:05 [2025-01-08 09:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201345', 'tblTempUsageDetail_20' ) start [2025-01-08 09:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201345', 'tblTempUsageDetail_20' ) end [2025-01-08 09:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201345', 'tblTempVendorCDR_20' ) start [2025-01-08 09:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201345', 'tblTempVendorCDR_20' ) end [2025-01-08 09:33:30] Production.INFO: ProcessCDR(1,14201345,1,1,2) [2025-01-08 09:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201345', 'tblTempUsageDetail_20' ) start [2025-01-08 09:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201345', 'tblTempUsageDetail_20' ) end [2025-01-08 09:33:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:33:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:33:34] Production.INFO: ==23455== Releasing lock... [2025-01-08 09:33:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:33:34] Production.INFO: 39 MB #Memory Used# [2025-01-08 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:34:05 [end_date_ymd] => 2025-01-08 09:34:05 [RateCDR] => 1 ) [2025-01-08 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:34:05' and `end` < '2025-01-08 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:34:22] Production.INFO: count ==1466 [2025-01-08 09:34:22] Production.ERROR: pbx CDR StartTime 2025-01-08 06:34:05 - End Time 2025-01-08 09:34:05 [2025-01-08 09:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201350', 'tblTempUsageDetail_20' ) start [2025-01-08 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201350', 'tblTempUsageDetail_20' ) end [2025-01-08 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201350', 'tblTempVendorCDR_20' ) start [2025-01-08 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201350', 'tblTempVendorCDR_20' ) end [2025-01-08 09:34:22] Production.INFO: ProcessCDR(1,14201350,1,1,2) [2025-01-08 09:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201350', 'tblTempUsageDetail_20' ) start [2025-01-08 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201350', 'tblTempUsageDetail_20' ) end [2025-01-08 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:34:27] Production.INFO: ==23540== Releasing lock... [2025-01-08 09:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:34:27] Production.INFO: 39 MB #Memory Used# [2025-01-08 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:35:05 [end_date_ymd] => 2025-01-08 09:35:05 [RateCDR] => 1 ) [2025-01-08 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:35:05' and `end` < '2025-01-08 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:35:18] Production.INFO: count ==1475 [2025-01-08 09:35:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:35:05 - End Time 2025-01-08 09:35:05 [2025-01-08 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201355', 'tblTempUsageDetail_20' ) start [2025-01-08 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201355', 'tblTempUsageDetail_20' ) end [2025-01-08 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201355', 'tblTempVendorCDR_20' ) start [2025-01-08 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201355', 'tblTempVendorCDR_20' ) end [2025-01-08 09:35:19] Production.INFO: ProcessCDR(1,14201355,1,1,2) [2025-01-08 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201355', 'tblTempUsageDetail_20' ) start [2025-01-08 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201355', 'tblTempUsageDetail_20' ) end [2025-01-08 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:35:22] Production.INFO: ==23623== Releasing lock... [2025-01-08 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:35:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-08 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:36:04 [end_date_ymd] => 2025-01-08 09:36:04 [RateCDR] => 1 ) [2025-01-08 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:36:04' and `end` < '2025-01-08 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:36:29] Production.INFO: count ==1494 [2025-01-08 09:36:29] Production.ERROR: pbx CDR StartTime 2025-01-08 06:36:04 - End Time 2025-01-08 09:36:04 [2025-01-08 09:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201360', 'tblTempUsageDetail_20' ) start [2025-01-08 09:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201360', 'tblTempUsageDetail_20' ) end [2025-01-08 09:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201360', 'tblTempVendorCDR_20' ) start [2025-01-08 09:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201360', 'tblTempVendorCDR_20' ) end [2025-01-08 09:36:29] Production.INFO: ProcessCDR(1,14201360,1,1,2) [2025-01-08 09:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:36:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201360', 'tblTempUsageDetail_20' ) start [2025-01-08 09:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201360', 'tblTempUsageDetail_20' ) end [2025-01-08 09:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:36:34] Production.INFO: ==23704== Releasing lock... [2025-01-08 09:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:36:34] Production.INFO: 39.25 MB #Memory Used# [2025-01-08 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:37:04 [end_date_ymd] => 2025-01-08 09:37:04 [RateCDR] => 1 ) [2025-01-08 09:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:37:04' and `end` < '2025-01-08 09:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:37:33] Production.INFO: count ==1547 [2025-01-08 09:37:34] Production.ERROR: pbx CDR StartTime 2025-01-08 06:37:04 - End Time 2025-01-08 09:37:04 [2025-01-08 09:37:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201365', 'tblTempUsageDetail_20' ) start [2025-01-08 09:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201365', 'tblTempUsageDetail_20' ) end [2025-01-08 09:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201365', 'tblTempVendorCDR_20' ) start [2025-01-08 09:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201365', 'tblTempVendorCDR_20' ) end [2025-01-08 09:37:34] Production.INFO: ProcessCDR(1,14201365,1,1,2) [2025-01-08 09:37:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201365', 'tblTempUsageDetail_20' ) start [2025-01-08 09:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201365', 'tblTempUsageDetail_20' ) end [2025-01-08 09:37:39] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:37:39] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:37:39] Production.INFO: ==23786== Releasing lock... [2025-01-08 09:37:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:37:39] Production.INFO: 39.75 MB #Memory Used# [2025-01-08 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:38:05 [end_date_ymd] => 2025-01-08 09:38:05 [RateCDR] => 1 ) [2025-01-08 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:38:05' and `end` < '2025-01-08 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:38:28] Production.INFO: count ==1572 [2025-01-08 09:38:28] Production.ERROR: pbx CDR StartTime 2025-01-08 06:38:05 - End Time 2025-01-08 09:38:05 [2025-01-08 09:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201370', 'tblTempUsageDetail_20' ) start [2025-01-08 09:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201370', 'tblTempUsageDetail_20' ) end [2025-01-08 09:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201370', 'tblTempVendorCDR_20' ) start [2025-01-08 09:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201370', 'tblTempVendorCDR_20' ) end [2025-01-08 09:38:28] Production.INFO: ProcessCDR(1,14201370,1,1,2) [2025-01-08 09:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201370', 'tblTempUsageDetail_20' ) start [2025-01-08 09:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201370', 'tblTempUsageDetail_20' ) end [2025-01-08 09:38:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:38:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:38:33] Production.INFO: ==23872== Releasing lock... [2025-01-08 09:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:38:33] Production.INFO: 39.75 MB #Memory Used# [2025-01-08 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:39:05 [end_date_ymd] => 2025-01-08 09:39:05 [RateCDR] => 1 ) [2025-01-08 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:39:05' and `end` < '2025-01-08 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:39:26] Production.INFO: count ==1606 [2025-01-08 09:39:27] Production.ERROR: pbx CDR StartTime 2025-01-08 06:39:05 - End Time 2025-01-08 09:39:05 [2025-01-08 09:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201375', 'tblTempUsageDetail_20' ) start [2025-01-08 09:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201375', 'tblTempUsageDetail_20' ) end [2025-01-08 09:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201375', 'tblTempVendorCDR_20' ) start [2025-01-08 09:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201375', 'tblTempVendorCDR_20' ) end [2025-01-08 09:39:27] Production.INFO: ProcessCDR(1,14201375,1,1,2) [2025-01-08 09:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201375', 'tblTempUsageDetail_20' ) start [2025-01-08 09:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201375', 'tblTempUsageDetail_20' ) end [2025-01-08 09:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:39:32] Production.INFO: ==23976== Releasing lock... [2025-01-08 09:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:39:32] Production.INFO: 40 MB #Memory Used# [2025-01-08 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:40:06 [end_date_ymd] => 2025-01-08 09:40:06 [RateCDR] => 1 ) [2025-01-08 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:40:06' and `end` < '2025-01-08 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:40:28] Production.INFO: count ==1620 [2025-01-08 09:40:28] Production.ERROR: pbx CDR StartTime 2025-01-08 06:40:06 - End Time 2025-01-08 09:40:06 [2025-01-08 09:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201380', 'tblTempUsageDetail_20' ) start [2025-01-08 09:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201380', 'tblTempUsageDetail_20' ) end [2025-01-08 09:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201380', 'tblTempVendorCDR_20' ) start [2025-01-08 09:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201380', 'tblTempVendorCDR_20' ) end [2025-01-08 09:40:28] Production.INFO: ProcessCDR(1,14201380,1,1,2) [2025-01-08 09:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201380', 'tblTempUsageDetail_20' ) start [2025-01-08 09:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201380', 'tblTempUsageDetail_20' ) end [2025-01-08 09:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:40:33] Production.INFO: ==24099== Releasing lock... [2025-01-08 09:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:40:33] Production.INFO: 40.25 MB #Memory Used# [2025-01-08 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:41:05 [end_date_ymd] => 2025-01-08 09:41:05 [RateCDR] => 1 ) [2025-01-08 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:41:05' and `end` < '2025-01-08 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:41:19] Production.INFO: count ==1694 [2025-01-08 09:41:20] Production.ERROR: pbx CDR StartTime 2025-01-08 06:41:05 - End Time 2025-01-08 09:41:05 [2025-01-08 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201386', 'tblTempUsageDetail_20' ) start [2025-01-08 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201386', 'tblTempUsageDetail_20' ) end [2025-01-08 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201386', 'tblTempVendorCDR_20' ) start [2025-01-08 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201386', 'tblTempVendorCDR_20' ) end [2025-01-08 09:41:20] Production.INFO: ProcessCDR(1,14201386,1,1,2) [2025-01-08 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201386', 'tblTempUsageDetail_20' ) start [2025-01-08 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201386', 'tblTempUsageDetail_20' ) end [2025-01-08 09:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:41:25] Production.INFO: ==24213== Releasing lock... [2025-01-08 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:41:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-08 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:42:05 [end_date_ymd] => 2025-01-08 09:42:05 [RateCDR] => 1 ) [2025-01-08 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:42:05' and `end` < '2025-01-08 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:42:21] Production.INFO: count ==1713 [2025-01-08 09:42:21] Production.ERROR: pbx CDR StartTime 2025-01-08 06:42:05 - End Time 2025-01-08 09:42:05 [2025-01-08 09:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201391', 'tblTempUsageDetail_20' ) start [2025-01-08 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201391', 'tblTempUsageDetail_20' ) end [2025-01-08 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201391', 'tblTempVendorCDR_20' ) start [2025-01-08 09:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201391', 'tblTempVendorCDR_20' ) end [2025-01-08 09:42:21] Production.INFO: ProcessCDR(1,14201391,1,1,2) [2025-01-08 09:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201391', 'tblTempUsageDetail_20' ) start [2025-01-08 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201391', 'tblTempUsageDetail_20' ) end [2025-01-08 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:42:25] Production.INFO: ==24297== Releasing lock... [2025-01-08 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:42:25] Production.INFO: 41 MB #Memory Used# [2025-01-08 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:43:04 [end_date_ymd] => 2025-01-08 09:43:04 [RateCDR] => 1 ) [2025-01-08 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:43:04' and `end` < '2025-01-08 09:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:43:20] Production.INFO: count ==1716 [2025-01-08 09:43:21] Production.ERROR: pbx CDR StartTime 2025-01-08 06:43:04 - End Time 2025-01-08 09:43:04 [2025-01-08 09:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201396', 'tblTempUsageDetail_20' ) start [2025-01-08 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201396', 'tblTempUsageDetail_20' ) end [2025-01-08 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201396', 'tblTempVendorCDR_20' ) start [2025-01-08 09:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201396', 'tblTempVendorCDR_20' ) end [2025-01-08 09:43:21] Production.INFO: ProcessCDR(1,14201396,1,1,2) [2025-01-08 09:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201396', 'tblTempUsageDetail_20' ) start [2025-01-08 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201396', 'tblTempUsageDetail_20' ) end [2025-01-08 09:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:43:26] Production.INFO: ==24416== Releasing lock... [2025-01-08 09:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:43:26] Production.INFO: 41 MB #Memory Used# [2025-01-08 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:44:05 [end_date_ymd] => 2025-01-08 09:44:05 [RateCDR] => 1 ) [2025-01-08 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:44:05' and `end` < '2025-01-08 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:44:18] Production.INFO: count ==1720 [2025-01-08 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:44:05 - End Time 2025-01-08 09:44:05 [2025-01-08 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201401', 'tblTempUsageDetail_20' ) start [2025-01-08 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201401', 'tblTempUsageDetail_20' ) end [2025-01-08 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201401', 'tblTempVendorCDR_20' ) start [2025-01-08 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201401', 'tblTempVendorCDR_20' ) end [2025-01-08 09:44:19] Production.INFO: ProcessCDR(1,14201401,1,1,2) [2025-01-08 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201401', 'tblTempUsageDetail_20' ) start [2025-01-08 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201401', 'tblTempUsageDetail_20' ) end [2025-01-08 09:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:44:23] Production.INFO: ==24502== Releasing lock... [2025-01-08 09:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:44:23] Production.INFO: 41 MB #Memory Used# [2025-01-08 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:45:04 [end_date_ymd] => 2025-01-08 09:45:04 [RateCDR] => 1 ) [2025-01-08 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:45:04' and `end` < '2025-01-08 09:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:45:20] Production.INFO: count ==1746 [2025-01-08 09:45:21] Production.ERROR: pbx CDR StartTime 2025-01-08 06:45:04 - End Time 2025-01-08 09:45:04 [2025-01-08 09:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201406', 'tblTempUsageDetail_20' ) start [2025-01-08 09:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201406', 'tblTempUsageDetail_20' ) end [2025-01-08 09:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201406', 'tblTempVendorCDR_20' ) start [2025-01-08 09:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201406', 'tblTempVendorCDR_20' ) end [2025-01-08 09:45:21] Production.INFO: ProcessCDR(1,14201406,1,1,2) [2025-01-08 09:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201406', 'tblTempUsageDetail_20' ) start [2025-01-08 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201406', 'tblTempUsageDetail_20' ) end [2025-01-08 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:45:25] Production.INFO: ==24584== Releasing lock... [2025-01-08 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:45:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-08 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:46:05 [end_date_ymd] => 2025-01-08 09:46:05 [RateCDR] => 1 ) [2025-01-08 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:46:05' and `end` < '2025-01-08 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:46:28] Production.INFO: count ==1769 [2025-01-08 09:46:29] Production.ERROR: pbx CDR StartTime 2025-01-08 06:46:05 - End Time 2025-01-08 09:46:05 [2025-01-08 09:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201411', 'tblTempUsageDetail_20' ) start [2025-01-08 09:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201411', 'tblTempUsageDetail_20' ) end [2025-01-08 09:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201411', 'tblTempVendorCDR_20' ) start [2025-01-08 09:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201411', 'tblTempVendorCDR_20' ) end [2025-01-08 09:46:29] Production.INFO: ProcessCDR(1,14201411,1,1,2) [2025-01-08 09:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201411', 'tblTempUsageDetail_20' ) start [2025-01-08 09:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201411', 'tblTempUsageDetail_20' ) end [2025-01-08 09:46:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:46:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:46:33] Production.INFO: ==24665== Releasing lock... [2025-01-08 09:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:46:33] Production.INFO: 41.5 MB #Memory Used# [2025-01-08 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:47:04 [end_date_ymd] => 2025-01-08 09:47:04 [RateCDR] => 1 ) [2025-01-08 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:47:04' and `end` < '2025-01-08 09:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:47:20] Production.INFO: count ==1770 [2025-01-08 09:47:20] Production.ERROR: pbx CDR StartTime 2025-01-08 06:47:04 - End Time 2025-01-08 09:47:04 [2025-01-08 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201416', 'tblTempUsageDetail_20' ) start [2025-01-08 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201416', 'tblTempUsageDetail_20' ) end [2025-01-08 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201416', 'tblTempVendorCDR_20' ) start [2025-01-08 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201416', 'tblTempVendorCDR_20' ) end [2025-01-08 09:47:21] Production.INFO: ProcessCDR(1,14201416,1,1,2) [2025-01-08 09:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201416', 'tblTempUsageDetail_20' ) start [2025-01-08 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201416', 'tblTempUsageDetail_20' ) end [2025-01-08 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:47:24] Production.INFO: ==24742== Releasing lock... [2025-01-08 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:47:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-08 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:48:05 [end_date_ymd] => 2025-01-08 09:48:05 [RateCDR] => 1 ) [2025-01-08 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:48:05' and `end` < '2025-01-08 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:48:19] Production.INFO: count ==1778 [2025-01-08 09:48:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:48:05 - End Time 2025-01-08 09:48:05 [2025-01-08 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201421', 'tblTempUsageDetail_20' ) start [2025-01-08 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201421', 'tblTempUsageDetail_20' ) end [2025-01-08 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201421', 'tblTempVendorCDR_20' ) start [2025-01-08 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201421', 'tblTempVendorCDR_20' ) end [2025-01-08 09:48:19] Production.INFO: ProcessCDR(1,14201421,1,1,2) [2025-01-08 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201421', 'tblTempUsageDetail_20' ) start [2025-01-08 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201421', 'tblTempUsageDetail_20' ) end [2025-01-08 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:48:24] Production.INFO: ==24817== Releasing lock... [2025-01-08 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:48:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-08 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:49:04 [end_date_ymd] => 2025-01-08 09:49:04 [RateCDR] => 1 ) [2025-01-08 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:49:04' and `end` < '2025-01-08 09:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:49:19] Production.INFO: count ==1787 [2025-01-08 09:49:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:49:04 - End Time 2025-01-08 09:49:04 [2025-01-08 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201426', 'tblTempUsageDetail_20' ) start [2025-01-08 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201426', 'tblTempUsageDetail_20' ) end [2025-01-08 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201426', 'tblTempVendorCDR_20' ) start [2025-01-08 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201426', 'tblTempVendorCDR_20' ) end [2025-01-08 09:49:19] Production.INFO: ProcessCDR(1,14201426,1,1,2) [2025-01-08 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201426', 'tblTempUsageDetail_20' ) start [2025-01-08 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201426', 'tblTempUsageDetail_20' ) end [2025-01-08 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:49:24] Production.INFO: ==24886== Releasing lock... [2025-01-08 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:49:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-08 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:50:05 [end_date_ymd] => 2025-01-08 09:50:05 [RateCDR] => 1 ) [2025-01-08 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:50:05' and `end` < '2025-01-08 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:50:19] Production.INFO: count ==1799 [2025-01-08 09:50:20] Production.ERROR: pbx CDR StartTime 2025-01-08 06:50:05 - End Time 2025-01-08 09:50:05 [2025-01-08 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201431', 'tblTempUsageDetail_20' ) start [2025-01-08 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201431', 'tblTempUsageDetail_20' ) end [2025-01-08 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201431', 'tblTempVendorCDR_20' ) start [2025-01-08 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201431', 'tblTempVendorCDR_20' ) end [2025-01-08 09:50:20] Production.INFO: ProcessCDR(1,14201431,1,1,2) [2025-01-08 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201431', 'tblTempUsageDetail_20' ) start [2025-01-08 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201431', 'tblTempUsageDetail_20' ) end [2025-01-08 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:50:25] Production.INFO: ==24960== Releasing lock... [2025-01-08 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:50:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-08 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:51:05 [end_date_ymd] => 2025-01-08 09:51:05 [RateCDR] => 1 ) [2025-01-08 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:51:05' and `end` < '2025-01-08 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:51:18] Production.INFO: count ==1855 [2025-01-08 09:51:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:51:05 - End Time 2025-01-08 09:51:05 [2025-01-08 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201437', 'tblTempUsageDetail_20' ) start [2025-01-08 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201437', 'tblTempUsageDetail_20' ) end [2025-01-08 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201437', 'tblTempVendorCDR_20' ) start [2025-01-08 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201437', 'tblTempVendorCDR_20' ) end [2025-01-08 09:51:19] Production.INFO: ProcessCDR(1,14201437,1,1,2) [2025-01-08 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201437', 'tblTempUsageDetail_20' ) start [2025-01-08 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201437', 'tblTempUsageDetail_20' ) end [2025-01-08 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:51:23] Production.INFO: ==25032== Releasing lock... [2025-01-08 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:51:23] Production.INFO: 42 MB #Memory Used# [2025-01-08 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:52:05 [end_date_ymd] => 2025-01-08 09:52:05 [RateCDR] => 1 ) [2025-01-08 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:52:05' and `end` < '2025-01-08 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:52:22] Production.INFO: count ==1877 [2025-01-08 09:52:23] Production.ERROR: pbx CDR StartTime 2025-01-08 06:52:05 - End Time 2025-01-08 09:52:05 [2025-01-08 09:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201442', 'tblTempUsageDetail_20' ) start [2025-01-08 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201442', 'tblTempUsageDetail_20' ) end [2025-01-08 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201442', 'tblTempVendorCDR_20' ) start [2025-01-08 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201442', 'tblTempVendorCDR_20' ) end [2025-01-08 09:52:23] Production.INFO: ProcessCDR(1,14201442,1,1,2) [2025-01-08 09:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201442', 'tblTempUsageDetail_20' ) start [2025-01-08 09:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201442', 'tblTempUsageDetail_20' ) end [2025-01-08 09:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:52:28] Production.INFO: ==25102== Releasing lock... [2025-01-08 09:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:52:28] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:53:05 [end_date_ymd] => 2025-01-08 09:53:05 [RateCDR] => 1 ) [2025-01-08 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:53:05' and `end` < '2025-01-08 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:53:22] Production.INFO: count ==1885 [2025-01-08 09:53:22] Production.ERROR: pbx CDR StartTime 2025-01-08 06:53:05 - End Time 2025-01-08 09:53:05 [2025-01-08 09:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201447', 'tblTempUsageDetail_20' ) start [2025-01-08 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201447', 'tblTempUsageDetail_20' ) end [2025-01-08 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201447', 'tblTempVendorCDR_20' ) start [2025-01-08 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201447', 'tblTempVendorCDR_20' ) end [2025-01-08 09:53:22] Production.INFO: ProcessCDR(1,14201447,1,1,2) [2025-01-08 09:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201447', 'tblTempUsageDetail_20' ) start [2025-01-08 09:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201447', 'tblTempUsageDetail_20' ) end [2025-01-08 09:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:53:26] Production.INFO: ==25174== Releasing lock... [2025-01-08 09:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:53:26] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 09:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:54:04 [end_date_ymd] => 2025-01-08 09:54:04 [RateCDR] => 1 ) [2025-01-08 09:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:54:04' and `end` < '2025-01-08 09:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:54:28] Production.INFO: count ==1895 [2025-01-08 09:54:28] Production.ERROR: pbx CDR StartTime 2025-01-08 06:54:04 - End Time 2025-01-08 09:54:04 [2025-01-08 09:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201452', 'tblTempUsageDetail_20' ) start [2025-01-08 09:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201452', 'tblTempUsageDetail_20' ) end [2025-01-08 09:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201452', 'tblTempVendorCDR_20' ) start [2025-01-08 09:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201452', 'tblTempVendorCDR_20' ) end [2025-01-08 09:54:28] Production.INFO: ProcessCDR(1,14201452,1,1,2) [2025-01-08 09:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201452', 'tblTempUsageDetail_20' ) start [2025-01-08 09:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201452', 'tblTempUsageDetail_20' ) end [2025-01-08 09:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:54:33] Production.INFO: ==25245== Releasing lock... [2025-01-08 09:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:54:33] Production.INFO: 42.5 MB #Memory Used# [2025-01-08 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:55:05 [end_date_ymd] => 2025-01-08 09:55:05 [RateCDR] => 1 ) [2025-01-08 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:55:05' and `end` < '2025-01-08 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:55:22] Production.INFO: count ==1908 [2025-01-08 09:55:23] Production.ERROR: pbx CDR StartTime 2025-01-08 06:55:05 - End Time 2025-01-08 09:55:05 [2025-01-08 09:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201457', 'tblTempUsageDetail_20' ) start [2025-01-08 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201457', 'tblTempUsageDetail_20' ) end [2025-01-08 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201457', 'tblTempVendorCDR_20' ) start [2025-01-08 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201457', 'tblTempVendorCDR_20' ) end [2025-01-08 09:55:23] Production.INFO: ProcessCDR(1,14201457,1,1,2) [2025-01-08 09:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201457', 'tblTempUsageDetail_20' ) start [2025-01-08 09:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201457', 'tblTempUsageDetail_20' ) end [2025-01-08 09:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:55:27] Production.INFO: ==25315== Releasing lock... [2025-01-08 09:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:55:27] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 09:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:56:04 [end_date_ymd] => 2025-01-08 09:56:04 [RateCDR] => 1 ) [2025-01-08 09:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:56:04' and `end` < '2025-01-08 09:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:56:18] Production.INFO: count ==1913 [2025-01-08 09:56:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:56:04 - End Time 2025-01-08 09:56:04 [2025-01-08 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201462', 'tblTempUsageDetail_20' ) start [2025-01-08 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201462', 'tblTempUsageDetail_20' ) end [2025-01-08 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201462', 'tblTempVendorCDR_20' ) start [2025-01-08 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201462', 'tblTempVendorCDR_20' ) end [2025-01-08 09:56:19] Production.INFO: ProcessCDR(1,14201462,1,1,2) [2025-01-08 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201462', 'tblTempUsageDetail_20' ) start [2025-01-08 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201462', 'tblTempUsageDetail_20' ) end [2025-01-08 09:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:56:23] Production.INFO: ==25385== Releasing lock... [2025-01-08 09:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:56:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-08 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:57:05 [end_date_ymd] => 2025-01-08 09:57:05 [RateCDR] => 1 ) [2025-01-08 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:57:05' and `end` < '2025-01-08 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:57:20] Production.INFO: count ==1923 [2025-01-08 09:57:21] Production.ERROR: pbx CDR StartTime 2025-01-08 06:57:05 - End Time 2025-01-08 09:57:05 [2025-01-08 09:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201467', 'tblTempUsageDetail_20' ) start [2025-01-08 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201467', 'tblTempUsageDetail_20' ) end [2025-01-08 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201467', 'tblTempVendorCDR_20' ) start [2025-01-08 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201467', 'tblTempVendorCDR_20' ) end [2025-01-08 09:57:21] Production.INFO: ProcessCDR(1,14201467,1,1,2) [2025-01-08 09:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201467', 'tblTempUsageDetail_20' ) start [2025-01-08 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201467', 'tblTempUsageDetail_20' ) end [2025-01-08 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:57:24] Production.INFO: ==25455== Releasing lock... [2025-01-08 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:57:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-08 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:58:06 [end_date_ymd] => 2025-01-08 09:58:06 [RateCDR] => 1 ) [2025-01-08 09:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:58:06' and `end` < '2025-01-08 09:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:58:20] Production.INFO: count ==1931 [2025-01-08 09:58:21] Production.ERROR: pbx CDR StartTime 2025-01-08 06:58:06 - End Time 2025-01-08 09:58:06 [2025-01-08 09:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201472', 'tblTempUsageDetail_20' ) start [2025-01-08 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201472', 'tblTempUsageDetail_20' ) end [2025-01-08 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201472', 'tblTempVendorCDR_20' ) start [2025-01-08 09:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201472', 'tblTempVendorCDR_20' ) end [2025-01-08 09:58:21] Production.INFO: ProcessCDR(1,14201472,1,1,2) [2025-01-08 09:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201472', 'tblTempUsageDetail_20' ) start [2025-01-08 09:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201472', 'tblTempUsageDetail_20' ) end [2025-01-08 09:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:58:26] Production.INFO: ==25527== Releasing lock... [2025-01-08 09:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:58:26] Production.INFO: 42.75 MB #Memory Used# [2025-01-08 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 06:59:05 [end_date_ymd] => 2025-01-08 09:59:05 [RateCDR] => 1 ) [2025-01-08 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 06:59:05' and `end` < '2025-01-08 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 09:59:18] Production.INFO: count ==1938 [2025-01-08 09:59:19] Production.ERROR: pbx CDR StartTime 2025-01-08 06:59:05 - End Time 2025-01-08 09:59:05 [2025-01-08 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201477', 'tblTempUsageDetail_20' ) start [2025-01-08 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201477', 'tblTempUsageDetail_20' ) end [2025-01-08 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201477', 'tblTempVendorCDR_20' ) start [2025-01-08 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201477', 'tblTempVendorCDR_20' ) end [2025-01-08 09:59:19] Production.INFO: ProcessCDR(1,14201477,1,1,2) [2025-01-08 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201477', 'tblTempUsageDetail_20' ) start [2025-01-08 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201477', 'tblTempUsageDetail_20' ) end [2025-01-08 09:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 09:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 09:59:23] Production.INFO: ==25640== Releasing lock... [2025-01-08 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 09:59:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-08 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:00:06 [end_date_ymd] => 2025-01-08 10:00:06 [RateCDR] => 1 ) [2025-01-08 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:00:06' and `end` < '2025-01-08 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:00:19] Production.INFO: count ==1944 [2025-01-08 10:00:20] Production.ERROR: pbx CDR StartTime 2025-01-08 07:00:06 - End Time 2025-01-08 10:00:06 [2025-01-08 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201483', 'tblTempUsageDetail_20' ) start [2025-01-08 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201483', 'tblTempUsageDetail_20' ) end [2025-01-08 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201483', 'tblTempVendorCDR_20' ) start [2025-01-08 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201483', 'tblTempVendorCDR_20' ) end [2025-01-08 10:00:20] Production.INFO: ProcessCDR(1,14201483,1,1,2) [2025-01-08 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201483', 'tblTempUsageDetail_20' ) start [2025-01-08 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201483', 'tblTempUsageDetail_20' ) end [2025-01-08 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:00:25] Production.INFO: ==25719== Releasing lock... [2025-01-08 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:00:25] Production.INFO: 42.75 MB #Memory Used# [2025-01-08 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:01:05 [end_date_ymd] => 2025-01-08 10:01:05 [RateCDR] => 1 ) [2025-01-08 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:01:05' and `end` < '2025-01-08 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:01:18] Production.INFO: count ==2011 [2025-01-08 10:01:19] Production.ERROR: pbx CDR StartTime 2025-01-08 07:01:05 - End Time 2025-01-08 10:01:05 [2025-01-08 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201488', 'tblTempUsageDetail_20' ) start [2025-01-08 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201488', 'tblTempUsageDetail_20' ) end [2025-01-08 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201488', 'tblTempVendorCDR_20' ) start [2025-01-08 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201488', 'tblTempVendorCDR_20' ) end [2025-01-08 10:01:19] Production.INFO: ProcessCDR(1,14201488,1,1,2) [2025-01-08 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201488', 'tblTempUsageDetail_20' ) start [2025-01-08 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201488', 'tblTempUsageDetail_20' ) end [2025-01-08 10:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:01:23] Production.INFO: ==25806== Releasing lock... [2025-01-08 10:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:01:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-08 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:02:05 [end_date_ymd] => 2025-01-08 10:02:05 [RateCDR] => 1 ) [2025-01-08 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:02:05' and `end` < '2025-01-08 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:02:19] Production.INFO: count ==2018 [2025-01-08 10:02:20] Production.ERROR: pbx CDR StartTime 2025-01-08 07:02:05 - End Time 2025-01-08 10:02:05 [2025-01-08 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201493', 'tblTempUsageDetail_20' ) start [2025-01-08 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201493', 'tblTempUsageDetail_20' ) end [2025-01-08 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201493', 'tblTempVendorCDR_20' ) start [2025-01-08 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201493', 'tblTempVendorCDR_20' ) end [2025-01-08 10:02:20] Production.INFO: ProcessCDR(1,14201493,1,1,2) [2025-01-08 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201493', 'tblTempUsageDetail_20' ) start [2025-01-08 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201493', 'tblTempUsageDetail_20' ) end [2025-01-08 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:02:23] Production.INFO: ==25878== Releasing lock... [2025-01-08 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:02:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-08 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:03:04 [end_date_ymd] => 2025-01-08 10:03:04 [RateCDR] => 1 ) [2025-01-08 10:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:03:04' and `end` < '2025-01-08 10:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:03:18] Production.INFO: count ==2043 [2025-01-08 10:03:19] Production.ERROR: pbx CDR StartTime 2025-01-08 07:03:04 - End Time 2025-01-08 10:03:04 [2025-01-08 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201498', 'tblTempUsageDetail_20' ) start [2025-01-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201498', 'tblTempUsageDetail_20' ) end [2025-01-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201498', 'tblTempVendorCDR_20' ) start [2025-01-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201498', 'tblTempVendorCDR_20' ) end [2025-01-08 10:03:19] Production.INFO: ProcessCDR(1,14201498,1,1,2) [2025-01-08 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201498', 'tblTempUsageDetail_20' ) start [2025-01-08 10:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201498', 'tblTempUsageDetail_20' ) end [2025-01-08 10:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:03:23] Production.INFO: ==25947== Releasing lock... [2025-01-08 10:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:03:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-08 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:04:05 [end_date_ymd] => 2025-01-08 10:04:05 [RateCDR] => 1 ) [2025-01-08 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:04:05' and `end` < '2025-01-08 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:04:22] Production.INFO: count ==2058 [2025-01-08 10:04:23] Production.ERROR: pbx CDR StartTime 2025-01-08 07:04:05 - End Time 2025-01-08 10:04:05 [2025-01-08 10:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201503', 'tblTempUsageDetail_20' ) start [2025-01-08 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201503', 'tblTempUsageDetail_20' ) end [2025-01-08 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201503', 'tblTempVendorCDR_20' ) start [2025-01-08 10:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201503', 'tblTempVendorCDR_20' ) end [2025-01-08 10:04:23] Production.INFO: ProcessCDR(1,14201503,1,1,2) [2025-01-08 10:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201503', 'tblTempUsageDetail_20' ) start [2025-01-08 10:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201503', 'tblTempUsageDetail_20' ) end [2025-01-08 10:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:04:28] Production.INFO: ==26019== Releasing lock... [2025-01-08 10:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:04:28] Production.INFO: 43.5 MB #Memory Used# [2025-01-08 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:05:05 [end_date_ymd] => 2025-01-08 10:05:05 [RateCDR] => 1 ) [2025-01-08 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:05:05' and `end` < '2025-01-08 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:05:30] Production.INFO: count ==2072 [2025-01-08 10:05:31] Production.ERROR: pbx CDR StartTime 2025-01-08 07:05:05 - End Time 2025-01-08 10:05:05 [2025-01-08 10:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201508', 'tblTempUsageDetail_20' ) start [2025-01-08 10:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201508', 'tblTempUsageDetail_20' ) end [2025-01-08 10:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201508', 'tblTempVendorCDR_20' ) start [2025-01-08 10:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201508', 'tblTempVendorCDR_20' ) end [2025-01-08 10:05:31] Production.INFO: ProcessCDR(1,14201508,1,1,2) [2025-01-08 10:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201508', 'tblTempUsageDetail_20' ) start [2025-01-08 10:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201508', 'tblTempUsageDetail_20' ) end [2025-01-08 10:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:05:35] Production.INFO: ==26093== Releasing lock... [2025-01-08 10:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:05:35] Production.INFO: 43.75 MB #Memory Used# [2025-01-08 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:06:05 [end_date_ymd] => 2025-01-08 10:06:05 [RateCDR] => 1 ) [2025-01-08 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:06:05' and `end` < '2025-01-08 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:06:28] Production.INFO: count ==2100 [2025-01-08 10:06:29] Production.ERROR: pbx CDR StartTime 2025-01-08 07:06:05 - End Time 2025-01-08 10:06:05 [2025-01-08 10:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201513', 'tblTempUsageDetail_20' ) start [2025-01-08 10:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201513', 'tblTempUsageDetail_20' ) end [2025-01-08 10:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201513', 'tblTempVendorCDR_20' ) start [2025-01-08 10:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201513', 'tblTempVendorCDR_20' ) end [2025-01-08 10:06:29] Production.INFO: ProcessCDR(1,14201513,1,1,2) [2025-01-08 10:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201513', 'tblTempUsageDetail_20' ) start [2025-01-08 10:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201513', 'tblTempUsageDetail_20' ) end [2025-01-08 10:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:06:34] Production.INFO: ==26164== Releasing lock... [2025-01-08 10:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:06:34] Production.INFO: 43.75 MB #Memory Used# [2025-01-08 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:07:04 [end_date_ymd] => 2025-01-08 10:07:04 [RateCDR] => 1 ) [2025-01-08 10:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:07:04' and `end` < '2025-01-08 10:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:07:25] Production.INFO: count ==2115 [2025-01-08 10:07:25] Production.ERROR: pbx CDR StartTime 2025-01-08 07:07:04 - End Time 2025-01-08 10:07:04 [2025-01-08 10:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201518', 'tblTempUsageDetail_20' ) start [2025-01-08 10:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201518', 'tblTempUsageDetail_20' ) end [2025-01-08 10:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201518', 'tblTempVendorCDR_20' ) start [2025-01-08 10:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201518', 'tblTempVendorCDR_20' ) end [2025-01-08 10:07:25] Production.INFO: ProcessCDR(1,14201518,1,1,2) [2025-01-08 10:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201518', 'tblTempUsageDetail_20' ) start [2025-01-08 10:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201518', 'tblTempUsageDetail_20' ) end [2025-01-08 10:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:07:30] Production.INFO: ==26236== Releasing lock... [2025-01-08 10:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:07:30] Production.INFO: 44 MB #Memory Used# [2025-01-08 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:08:05 [end_date_ymd] => 2025-01-08 10:08:05 [RateCDR] => 1 ) [2025-01-08 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:08:05' and `end` < '2025-01-08 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:08:27] Production.INFO: count ==2133 [2025-01-08 10:08:28] Production.ERROR: pbx CDR StartTime 2025-01-08 07:08:05 - End Time 2025-01-08 10:08:05 [2025-01-08 10:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201523', 'tblTempUsageDetail_20' ) start [2025-01-08 10:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201523', 'tblTempUsageDetail_20' ) end [2025-01-08 10:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201523', 'tblTempVendorCDR_20' ) start [2025-01-08 10:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201523', 'tblTempVendorCDR_20' ) end [2025-01-08 10:08:28] Production.INFO: ProcessCDR(1,14201523,1,1,2) [2025-01-08 10:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201523', 'tblTempUsageDetail_20' ) start [2025-01-08 10:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201523', 'tblTempUsageDetail_20' ) end [2025-01-08 10:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:08:33] Production.INFO: ==26308== Releasing lock... [2025-01-08 10:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:08:33] Production.INFO: 44 MB #Memory Used# [2025-01-08 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:09:05 [end_date_ymd] => 2025-01-08 10:09:05 [RateCDR] => 1 ) [2025-01-08 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:09:05' and `end` < '2025-01-08 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:09:24] Production.INFO: count ==2143 [2025-01-08 10:09:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:09:05 - End Time 2025-01-08 10:09:05 [2025-01-08 10:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201528', 'tblTempUsageDetail_20' ) start [2025-01-08 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201528', 'tblTempUsageDetail_20' ) end [2025-01-08 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201528', 'tblTempVendorCDR_20' ) start [2025-01-08 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201528', 'tblTempVendorCDR_20' ) end [2025-01-08 10:09:24] Production.INFO: ProcessCDR(1,14201528,1,1,2) [2025-01-08 10:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201528', 'tblTempUsageDetail_20' ) start [2025-01-08 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201528', 'tblTempUsageDetail_20' ) end [2025-01-08 10:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:09:29] Production.INFO: ==26379== Releasing lock... [2025-01-08 10:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:09:29] Production.INFO: 44.25 MB #Memory Used# [2025-01-08 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:10:06 [end_date_ymd] => 2025-01-08 10:10:06 [RateCDR] => 1 ) [2025-01-08 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:10:06' and `end` < '2025-01-08 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:10:32] Production.INFO: count ==2149 [2025-01-08 10:10:33] Production.ERROR: pbx CDR StartTime 2025-01-08 07:10:06 - End Time 2025-01-08 10:10:06 [2025-01-08 10:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201534', 'tblTempUsageDetail_20' ) start [2025-01-08 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201534', 'tblTempUsageDetail_20' ) end [2025-01-08 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201534', 'tblTempVendorCDR_20' ) start [2025-01-08 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201534', 'tblTempVendorCDR_20' ) end [2025-01-08 10:10:33] Production.INFO: ProcessCDR(1,14201534,1,1,2) [2025-01-08 10:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201534', 'tblTempUsageDetail_20' ) start [2025-01-08 10:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201534', 'tblTempUsageDetail_20' ) end [2025-01-08 10:10:38] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:10:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:10:38] Production.INFO: ==26452== Releasing lock... [2025-01-08 10:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:10:38] Production.INFO: 44.5 MB #Memory Used# [2025-01-08 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:11:04 [end_date_ymd] => 2025-01-08 10:11:04 [RateCDR] => 1 ) [2025-01-08 10:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:11:04' and `end` < '2025-01-08 10:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:11:22] Production.INFO: count ==2235 [2025-01-08 10:11:23] Production.ERROR: pbx CDR StartTime 2025-01-08 07:11:04 - End Time 2025-01-08 10:11:04 [2025-01-08 10:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201539', 'tblTempUsageDetail_20' ) start [2025-01-08 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201539', 'tblTempUsageDetail_20' ) end [2025-01-08 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201539', 'tblTempVendorCDR_20' ) start [2025-01-08 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201539', 'tblTempVendorCDR_20' ) end [2025-01-08 10:11:23] Production.INFO: ProcessCDR(1,14201539,1,1,2) [2025-01-08 10:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201539', 'tblTempUsageDetail_20' ) start [2025-01-08 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201539', 'tblTempUsageDetail_20' ) end [2025-01-08 10:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:11:28] Production.INFO: ==26537== Releasing lock... [2025-01-08 10:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:11:28] Production.INFO: 44.75 MB #Memory Used# [2025-01-08 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:12:05 [end_date_ymd] => 2025-01-08 10:12:05 [RateCDR] => 1 ) [2025-01-08 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:12:05' and `end` < '2025-01-08 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:12:25] Production.INFO: count ==2254 [2025-01-08 10:12:26] Production.ERROR: pbx CDR StartTime 2025-01-08 07:12:05 - End Time 2025-01-08 10:12:05 [2025-01-08 10:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201544', 'tblTempUsageDetail_20' ) start [2025-01-08 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201544', 'tblTempUsageDetail_20' ) end [2025-01-08 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201544', 'tblTempVendorCDR_20' ) start [2025-01-08 10:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201544', 'tblTempVendorCDR_20' ) end [2025-01-08 10:12:26] Production.INFO: ProcessCDR(1,14201544,1,1,2) [2025-01-08 10:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201544', 'tblTempUsageDetail_20' ) start [2025-01-08 10:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201544', 'tblTempUsageDetail_20' ) end [2025-01-08 10:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:12:30] Production.INFO: ==26611== Releasing lock... [2025-01-08 10:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:12:30] Production.INFO: 45 MB #Memory Used# [2025-01-08 10:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:13:04 [end_date_ymd] => 2025-01-08 10:13:04 [RateCDR] => 1 ) [2025-01-08 10:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:13:04' and `end` < '2025-01-08 10:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:13:21] Production.INFO: count ==2262 [2025-01-08 10:13:22] Production.ERROR: pbx CDR StartTime 2025-01-08 07:13:04 - End Time 2025-01-08 10:13:04 [2025-01-08 10:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201549', 'tblTempUsageDetail_20' ) start [2025-01-08 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201549', 'tblTempUsageDetail_20' ) end [2025-01-08 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201549', 'tblTempVendorCDR_20' ) start [2025-01-08 10:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201549', 'tblTempVendorCDR_20' ) end [2025-01-08 10:13:22] Production.INFO: ProcessCDR(1,14201549,1,1,2) [2025-01-08 10:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201549', 'tblTempUsageDetail_20' ) start [2025-01-08 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201549', 'tblTempUsageDetail_20' ) end [2025-01-08 10:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:13:27] Production.INFO: ==26694== Releasing lock... [2025-01-08 10:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:13:27] Production.INFO: 44.75 MB #Memory Used# [2025-01-08 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:14:05 [end_date_ymd] => 2025-01-08 10:14:05 [RateCDR] => 1 ) [2025-01-08 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:14:05' and `end` < '2025-01-08 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:14:18] Production.INFO: count ==2284 [2025-01-08 10:14:19] Production.ERROR: pbx CDR StartTime 2025-01-08 07:14:05 - End Time 2025-01-08 10:14:05 [2025-01-08 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201554', 'tblTempUsageDetail_20' ) start [2025-01-08 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201554', 'tblTempUsageDetail_20' ) end [2025-01-08 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201554', 'tblTempVendorCDR_20' ) start [2025-01-08 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201554', 'tblTempVendorCDR_20' ) end [2025-01-08 10:14:19] Production.INFO: ProcessCDR(1,14201554,1,1,2) [2025-01-08 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201554', 'tblTempUsageDetail_20' ) start [2025-01-08 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201554', 'tblTempUsageDetail_20' ) end [2025-01-08 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:14:24] Production.INFO: ==26804== Releasing lock... [2025-01-08 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:14:24] Production.INFO: 45.5 MB #Memory Used# [2025-01-08 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:15:04 [end_date_ymd] => 2025-01-08 10:15:04 [RateCDR] => 1 ) [2025-01-08 10:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:15:04' and `end` < '2025-01-08 10:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:15:23] Production.INFO: count ==2310 [2025-01-08 10:15:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:15:04 - End Time 2025-01-08 10:15:04 [2025-01-08 10:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201559', 'tblTempUsageDetail_20' ) start [2025-01-08 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201559', 'tblTempUsageDetail_20' ) end [2025-01-08 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201559', 'tblTempVendorCDR_20' ) start [2025-01-08 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201559', 'tblTempVendorCDR_20' ) end [2025-01-08 10:15:24] Production.INFO: ProcessCDR(1,14201559,1,1,2) [2025-01-08 10:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201559', 'tblTempUsageDetail_20' ) start [2025-01-08 10:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201559', 'tblTempUsageDetail_20' ) end [2025-01-08 10:15:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:15:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:15:29] Production.INFO: ==26877== Releasing lock... [2025-01-08 10:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:15:29] Production.INFO: 45.75 MB #Memory Used# [2025-01-08 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:16:05 [end_date_ymd] => 2025-01-08 10:16:05 [RateCDR] => 1 ) [2025-01-08 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:16:05' and `end` < '2025-01-08 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:16:26] Production.INFO: count ==2339 [2025-01-08 10:16:27] Production.ERROR: pbx CDR StartTime 2025-01-08 07:16:05 - End Time 2025-01-08 10:16:05 [2025-01-08 10:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201564', 'tblTempUsageDetail_20' ) start [2025-01-08 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201564', 'tblTempUsageDetail_20' ) end [2025-01-08 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201564', 'tblTempVendorCDR_20' ) start [2025-01-08 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201564', 'tblTempVendorCDR_20' ) end [2025-01-08 10:16:27] Production.INFO: ProcessCDR(1,14201564,1,1,2) [2025-01-08 10:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201564', 'tblTempUsageDetail_20' ) start [2025-01-08 10:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201564', 'tblTempUsageDetail_20' ) end [2025-01-08 10:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:16:32] Production.INFO: ==26948== Releasing lock... [2025-01-08 10:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:16:32] Production.INFO: 45.5 MB #Memory Used# [2025-01-08 10:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:17:04 [end_date_ymd] => 2025-01-08 10:17:04 [RateCDR] => 1 ) [2025-01-08 10:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:17:04' and `end` < '2025-01-08 10:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:17:23] Production.INFO: count ==2358 [2025-01-08 10:17:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:17:04 - End Time 2025-01-08 10:17:04 [2025-01-08 10:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201569', 'tblTempUsageDetail_20' ) start [2025-01-08 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201569', 'tblTempUsageDetail_20' ) end [2025-01-08 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201569', 'tblTempVendorCDR_20' ) start [2025-01-08 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201569', 'tblTempVendorCDR_20' ) end [2025-01-08 10:17:24] Production.INFO: ProcessCDR(1,14201569,1,1,2) [2025-01-08 10:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201569', 'tblTempUsageDetail_20' ) start [2025-01-08 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201569', 'tblTempUsageDetail_20' ) end [2025-01-08 10:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:17:29] Production.INFO: ==27021== Releasing lock... [2025-01-08 10:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:17:29] Production.INFO: 45.75 MB #Memory Used# [2025-01-08 10:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:18:04 [end_date_ymd] => 2025-01-08 10:18:04 [RateCDR] => 1 ) [2025-01-08 10:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:18:04' and `end` < '2025-01-08 10:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:18:23] Production.INFO: count ==2373 [2025-01-08 10:18:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:18:04 - End Time 2025-01-08 10:18:04 [2025-01-08 10:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201574', 'tblTempUsageDetail_20' ) start [2025-01-08 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201574', 'tblTempUsageDetail_20' ) end [2025-01-08 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201574', 'tblTempVendorCDR_20' ) start [2025-01-08 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201574', 'tblTempVendorCDR_20' ) end [2025-01-08 10:18:24] Production.INFO: ProcessCDR(1,14201574,1,1,2) [2025-01-08 10:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201574', 'tblTempUsageDetail_20' ) start [2025-01-08 10:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201574', 'tblTempUsageDetail_20' ) end [2025-01-08 10:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:18:29] Production.INFO: ==27093== Releasing lock... [2025-01-08 10:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:18:29] Production.INFO: 46 MB #Memory Used# [2025-01-08 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:19:05 [end_date_ymd] => 2025-01-08 10:19:05 [RateCDR] => 1 ) [2025-01-08 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:19:05' and `end` < '2025-01-08 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:19:22] Production.INFO: count ==2392 [2025-01-08 10:19:23] Production.ERROR: pbx CDR StartTime 2025-01-08 07:19:05 - End Time 2025-01-08 10:19:05 [2025-01-08 10:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201579', 'tblTempUsageDetail_20' ) start [2025-01-08 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201579', 'tblTempUsageDetail_20' ) end [2025-01-08 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201579', 'tblTempVendorCDR_20' ) start [2025-01-08 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201579', 'tblTempVendorCDR_20' ) end [2025-01-08 10:19:23] Production.INFO: ProcessCDR(1,14201579,1,1,2) [2025-01-08 10:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201579', 'tblTempUsageDetail_20' ) start [2025-01-08 10:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201579', 'tblTempUsageDetail_20' ) end [2025-01-08 10:19:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:19:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:19:27] Production.INFO: ==27162== Releasing lock... [2025-01-08 10:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:19:27] Production.INFO: 45.75 MB #Memory Used# [2025-01-08 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:20:05 [end_date_ymd] => 2025-01-08 10:20:05 [RateCDR] => 1 ) [2025-01-08 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:20:05' and `end` < '2025-01-08 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:20:19] Production.INFO: count ==2416 [2025-01-08 10:20:20] Production.ERROR: pbx CDR StartTime 2025-01-08 07:20:05 - End Time 2025-01-08 10:20:05 [2025-01-08 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201585', 'tblTempUsageDetail_20' ) start [2025-01-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201585', 'tblTempUsageDetail_20' ) end [2025-01-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201585', 'tblTempVendorCDR_20' ) start [2025-01-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201585', 'tblTempVendorCDR_20' ) end [2025-01-08 10:20:20] Production.INFO: ProcessCDR(1,14201585,1,1,2) [2025-01-08 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201585', 'tblTempUsageDetail_20' ) start [2025-01-08 10:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201585', 'tblTempUsageDetail_20' ) end [2025-01-08 10:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:20:23] Production.INFO: ==27234== Releasing lock... [2025-01-08 10:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:20:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-08 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:21:05 [end_date_ymd] => 2025-01-08 10:21:05 [RateCDR] => 1 ) [2025-01-08 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:21:05' and `end` < '2025-01-08 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:21:24] Production.INFO: count ==2491 [2025-01-08 10:21:25] Production.ERROR: pbx CDR StartTime 2025-01-08 07:21:05 - End Time 2025-01-08 10:21:05 [2025-01-08 10:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201590', 'tblTempUsageDetail_20' ) start [2025-01-08 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201590', 'tblTempUsageDetail_20' ) end [2025-01-08 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201590', 'tblTempVendorCDR_20' ) start [2025-01-08 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201590', 'tblTempVendorCDR_20' ) end [2025-01-08 10:21:25] Production.INFO: ProcessCDR(1,14201590,1,1,2) [2025-01-08 10:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201590', 'tblTempUsageDetail_20' ) start [2025-01-08 10:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201590', 'tblTempUsageDetail_20' ) end [2025-01-08 10:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:21:29] Production.INFO: ==27307== Releasing lock... [2025-01-08 10:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:21:29] Production.INFO: 46.75 MB #Memory Used# [2025-01-08 10:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:22:04 [end_date_ymd] => 2025-01-08 10:22:04 [RateCDR] => 1 ) [2025-01-08 10:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:22:04' and `end` < '2025-01-08 10:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:22:24] Production.INFO: count ==2541 [2025-01-08 10:22:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:22:04 - End Time 2025-01-08 10:22:04 [2025-01-08 10:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201595', 'tblTempUsageDetail_20' ) start [2025-01-08 10:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201595', 'tblTempUsageDetail_20' ) end [2025-01-08 10:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201595', 'tblTempVendorCDR_20' ) start [2025-01-08 10:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201595', 'tblTempVendorCDR_20' ) end [2025-01-08 10:22:25] Production.INFO: ProcessCDR(1,14201595,1,1,2) [2025-01-08 10:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201595', 'tblTempUsageDetail_20' ) start [2025-01-08 10:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201595', 'tblTempUsageDetail_20' ) end [2025-01-08 10:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:22:29] Production.INFO: ==27376== Releasing lock... [2025-01-08 10:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:22:29] Production.INFO: 47.5 MB #Memory Used# [2025-01-08 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:23:05 [end_date_ymd] => 2025-01-08 10:23:05 [RateCDR] => 1 ) [2025-01-08 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:23:05' and `end` < '2025-01-08 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:23:25] Production.INFO: count ==2575 [2025-01-08 10:23:26] Production.ERROR: pbx CDR StartTime 2025-01-08 07:23:05 - End Time 2025-01-08 10:23:05 [2025-01-08 10:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201600', 'tblTempUsageDetail_20' ) start [2025-01-08 10:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201600', 'tblTempUsageDetail_20' ) end [2025-01-08 10:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201600', 'tblTempVendorCDR_20' ) start [2025-01-08 10:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201600', 'tblTempVendorCDR_20' ) end [2025-01-08 10:23:26] Production.INFO: ProcessCDR(1,14201600,1,1,2) [2025-01-08 10:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201600', 'tblTempUsageDetail_20' ) start [2025-01-08 10:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201600', 'tblTempUsageDetail_20' ) end [2025-01-08 10:23:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:23:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:23:31] Production.INFO: ==27447== Releasing lock... [2025-01-08 10:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:23:31] Production.INFO: 47.5 MB #Memory Used# [2025-01-08 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:24:05 [end_date_ymd] => 2025-01-08 10:24:05 [RateCDR] => 1 ) [2025-01-08 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:24:05' and `end` < '2025-01-08 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:24:23] Production.INFO: count ==2586 [2025-01-08 10:24:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:24:05 - End Time 2025-01-08 10:24:05 [2025-01-08 10:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201605', 'tblTempUsageDetail_20' ) start [2025-01-08 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201605', 'tblTempUsageDetail_20' ) end [2025-01-08 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201605', 'tblTempVendorCDR_20' ) start [2025-01-08 10:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201605', 'tblTempVendorCDR_20' ) end [2025-01-08 10:24:24] Production.INFO: ProcessCDR(1,14201605,1,1,2) [2025-01-08 10:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201605', 'tblTempUsageDetail_20' ) start [2025-01-08 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201605', 'tblTempUsageDetail_20' ) end [2025-01-08 10:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:24:29] Production.INFO: ==27518== Releasing lock... [2025-01-08 10:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:24:29] Production.INFO: 47.5 MB #Memory Used# [2025-01-08 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:25:05 [end_date_ymd] => 2025-01-08 10:25:05 [RateCDR] => 1 ) [2025-01-08 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:25:05' and `end` < '2025-01-08 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:25:20] Production.INFO: count ==2618 [2025-01-08 10:25:21] Production.ERROR: pbx CDR StartTime 2025-01-08 07:25:05 - End Time 2025-01-08 10:25:05 [2025-01-08 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201610', 'tblTempUsageDetail_20' ) start [2025-01-08 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201610', 'tblTempUsageDetail_20' ) end [2025-01-08 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201610', 'tblTempVendorCDR_20' ) start [2025-01-08 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201610', 'tblTempVendorCDR_20' ) end [2025-01-08 10:25:21] Production.INFO: ProcessCDR(1,14201610,1,1,2) [2025-01-08 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201610', 'tblTempUsageDetail_20' ) start [2025-01-08 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201610', 'tblTempUsageDetail_20' ) end [2025-01-08 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:25:26] Production.INFO: ==27588== Releasing lock... [2025-01-08 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:25:26] Production.INFO: 47.75 MB #Memory Used# [2025-01-08 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:26:05 [end_date_ymd] => 2025-01-08 10:26:05 [RateCDR] => 1 ) [2025-01-08 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:26:05' and `end` < '2025-01-08 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:26:21] Production.INFO: count ==2635 [2025-01-08 10:26:22] Production.ERROR: pbx CDR StartTime 2025-01-08 07:26:05 - End Time 2025-01-08 10:26:05 [2025-01-08 10:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201615', 'tblTempUsageDetail_20' ) start [2025-01-08 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201615', 'tblTempUsageDetail_20' ) end [2025-01-08 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201615', 'tblTempVendorCDR_20' ) start [2025-01-08 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201615', 'tblTempVendorCDR_20' ) end [2025-01-08 10:26:22] Production.INFO: ProcessCDR(1,14201615,1,1,2) [2025-01-08 10:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201615', 'tblTempUsageDetail_20' ) start [2025-01-08 10:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201615', 'tblTempUsageDetail_20' ) end [2025-01-08 10:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:26:27] Production.INFO: ==27658== Releasing lock... [2025-01-08 10:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:26:27] Production.INFO: 47.75 MB #Memory Used# [2025-01-08 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:27:05 [end_date_ymd] => 2025-01-08 10:27:05 [RateCDR] => 1 ) [2025-01-08 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:27:05' and `end` < '2025-01-08 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:27:21] Production.INFO: count ==2671 [2025-01-08 10:27:22] Production.ERROR: pbx CDR StartTime 2025-01-08 07:27:05 - End Time 2025-01-08 10:27:05 [2025-01-08 10:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201620', 'tblTempUsageDetail_20' ) start [2025-01-08 10:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201620', 'tblTempUsageDetail_20' ) end [2025-01-08 10:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201620', 'tblTempVendorCDR_20' ) start [2025-01-08 10:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201620', 'tblTempVendorCDR_20' ) end [2025-01-08 10:27:22] Production.INFO: ProcessCDR(1,14201620,1,1,2) [2025-01-08 10:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201620', 'tblTempUsageDetail_20' ) start [2025-01-08 10:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201620', 'tblTempUsageDetail_20' ) end [2025-01-08 10:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:27:27] Production.INFO: ==27737== Releasing lock... [2025-01-08 10:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:27:27] Production.INFO: 48 MB #Memory Used# [2025-01-08 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:28:04 [end_date_ymd] => 2025-01-08 10:28:04 [RateCDR] => 1 ) [2025-01-08 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:28:04' and `end` < '2025-01-08 10:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:28:18] Production.INFO: count ==2673 [2025-01-08 10:28:19] Production.ERROR: pbx CDR StartTime 2025-01-08 07:28:04 - End Time 2025-01-08 10:28:04 [2025-01-08 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201625', 'tblTempUsageDetail_20' ) start [2025-01-08 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201625', 'tblTempUsageDetail_20' ) end [2025-01-08 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201625', 'tblTempVendorCDR_20' ) start [2025-01-08 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201625', 'tblTempVendorCDR_20' ) end [2025-01-08 10:28:19] Production.INFO: ProcessCDR(1,14201625,1,1,2) [2025-01-08 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201625', 'tblTempUsageDetail_20' ) start [2025-01-08 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201625', 'tblTempUsageDetail_20' ) end [2025-01-08 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:28:24] Production.INFO: ==27809== Releasing lock... [2025-01-08 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:28:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-08 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:29:05 [end_date_ymd] => 2025-01-08 10:29:05 [RateCDR] => 1 ) [2025-01-08 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:29:05' and `end` < '2025-01-08 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:29:22] Production.INFO: count ==2687 [2025-01-08 10:29:23] Production.ERROR: pbx CDR StartTime 2025-01-08 07:29:05 - End Time 2025-01-08 10:29:05 [2025-01-08 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201630', 'tblTempUsageDetail_20' ) start [2025-01-08 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201630', 'tblTempUsageDetail_20' ) end [2025-01-08 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201630', 'tblTempVendorCDR_20' ) start [2025-01-08 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201630', 'tblTempVendorCDR_20' ) end [2025-01-08 10:29:23] Production.INFO: ProcessCDR(1,14201630,1,1,2) [2025-01-08 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201630', 'tblTempUsageDetail_20' ) start [2025-01-08 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201630', 'tblTempUsageDetail_20' ) end [2025-01-08 10:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:29:28] Production.INFO: ==27879== Releasing lock... [2025-01-08 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:29:28] Production.INFO: 48.25 MB #Memory Used# [2025-01-08 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:30:05 [end_date_ymd] => 2025-01-08 10:30:05 [RateCDR] => 1 ) [2025-01-08 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:30:05' and `end` < '2025-01-08 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:30:20] Production.INFO: count ==2684 [2025-01-08 10:30:21] Production.ERROR: pbx CDR StartTime 2025-01-08 07:30:05 - End Time 2025-01-08 10:30:05 [2025-01-08 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201635', 'tblTempUsageDetail_20' ) start [2025-01-08 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201635', 'tblTempUsageDetail_20' ) end [2025-01-08 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201635', 'tblTempVendorCDR_20' ) start [2025-01-08 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201635', 'tblTempVendorCDR_20' ) end [2025-01-08 10:30:21] Production.INFO: ProcessCDR(1,14201635,1,1,2) [2025-01-08 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201635', 'tblTempUsageDetail_20' ) start [2025-01-08 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201635', 'tblTempUsageDetail_20' ) end [2025-01-08 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:30:26] Production.INFO: ==27990== Releasing lock... [2025-01-08 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:30:26] Production.INFO: 48.25 MB #Memory Used# [2025-01-08 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:31:05 [end_date_ymd] => 2025-01-08 10:31:05 [RateCDR] => 1 ) [2025-01-08 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:31:05' and `end` < '2025-01-08 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:31:25] Production.INFO: count ==2753 [2025-01-08 10:31:26] Production.ERROR: pbx CDR StartTime 2025-01-08 07:31:05 - End Time 2025-01-08 10:31:05 [2025-01-08 10:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201641', 'tblTempUsageDetail_20' ) start [2025-01-08 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201641', 'tblTempUsageDetail_20' ) end [2025-01-08 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201641', 'tblTempVendorCDR_20' ) start [2025-01-08 10:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201641', 'tblTempVendorCDR_20' ) end [2025-01-08 10:31:26] Production.INFO: ProcessCDR(1,14201641,1,1,2) [2025-01-08 10:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201641', 'tblTempUsageDetail_20' ) start [2025-01-08 10:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201641', 'tblTempUsageDetail_20' ) end [2025-01-08 10:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:31:31] Production.INFO: ==28062== Releasing lock... [2025-01-08 10:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:31:31] Production.INFO: 48.75 MB #Memory Used# [2025-01-08 10:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:32:04 [end_date_ymd] => 2025-01-08 10:32:04 [RateCDR] => 1 ) [2025-01-08 10:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:32:04' and `end` < '2025-01-08 10:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:32:37] Production.INFO: count ==2786 [2025-01-08 10:32:38] Production.ERROR: pbx CDR StartTime 2025-01-08 07:32:04 - End Time 2025-01-08 10:32:04 [2025-01-08 10:32:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201646', 'tblTempUsageDetail_20' ) start [2025-01-08 10:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201646', 'tblTempUsageDetail_20' ) end [2025-01-08 10:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201646', 'tblTempVendorCDR_20' ) start [2025-01-08 10:32:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201646', 'tblTempVendorCDR_20' ) end [2025-01-08 10:32:38] Production.INFO: ProcessCDR(1,14201646,1,1,2) [2025-01-08 10:32:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:32:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:32:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:32:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:32:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201646', 'tblTempUsageDetail_20' ) start [2025-01-08 10:32:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201646', 'tblTempUsageDetail_20' ) end [2025-01-08 10:32:42] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:32:42] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:32:42] Production.INFO: ==28132== Releasing lock... [2025-01-08 10:32:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:32:42] Production.INFO: 49.5 MB #Memory Used# [2025-01-08 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:33:05 [end_date_ymd] => 2025-01-08 10:33:05 [RateCDR] => 1 ) [2025-01-08 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:33:05' and `end` < '2025-01-08 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:33:23] Production.INFO: count ==2791 [2025-01-08 10:33:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:33:05 - End Time 2025-01-08 10:33:05 [2025-01-08 10:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201651', 'tblTempUsageDetail_20' ) start [2025-01-08 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201651', 'tblTempUsageDetail_20' ) end [2025-01-08 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201651', 'tblTempVendorCDR_20' ) start [2025-01-08 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201651', 'tblTempVendorCDR_20' ) end [2025-01-08 10:33:24] Production.INFO: ProcessCDR(1,14201651,1,1,2) [2025-01-08 10:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201651', 'tblTempUsageDetail_20' ) start [2025-01-08 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201651', 'tblTempUsageDetail_20' ) end [2025-01-08 10:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:33:29] Production.INFO: ==28203== Releasing lock... [2025-01-08 10:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:33:29] Production.INFO: 49.25 MB #Memory Used# [2025-01-08 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:34:04 [end_date_ymd] => 2025-01-08 10:34:04 [RateCDR] => 1 ) [2025-01-08 10:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:34:04' and `end` < '2025-01-08 10:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:34:22] Production.INFO: count ==2793 [2025-01-08 10:34:23] Production.ERROR: pbx CDR StartTime 2025-01-08 07:34:04 - End Time 2025-01-08 10:34:04 [2025-01-08 10:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201656', 'tblTempUsageDetail_20' ) start [2025-01-08 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201656', 'tblTempUsageDetail_20' ) end [2025-01-08 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201656', 'tblTempVendorCDR_20' ) start [2025-01-08 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201656', 'tblTempVendorCDR_20' ) end [2025-01-08 10:34:23] Production.INFO: ProcessCDR(1,14201656,1,1,2) [2025-01-08 10:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201656', 'tblTempUsageDetail_20' ) start [2025-01-08 10:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201656', 'tblTempUsageDetail_20' ) end [2025-01-08 10:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:34:28] Production.INFO: ==28276== Releasing lock... [2025-01-08 10:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:34:28] Production.INFO: 49.5 MB #Memory Used# [2025-01-08 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:35:05 [end_date_ymd] => 2025-01-08 10:35:05 [RateCDR] => 1 ) [2025-01-08 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:35:05' and `end` < '2025-01-08 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:35:32] Production.INFO: count ==2809 [2025-01-08 10:35:33] Production.ERROR: pbx CDR StartTime 2025-01-08 07:35:05 - End Time 2025-01-08 10:35:05 [2025-01-08 10:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201661', 'tblTempUsageDetail_20' ) start [2025-01-08 10:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201661', 'tblTempUsageDetail_20' ) end [2025-01-08 10:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201661', 'tblTempVendorCDR_20' ) start [2025-01-08 10:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201661', 'tblTempVendorCDR_20' ) end [2025-01-08 10:35:33] Production.INFO: ProcessCDR(1,14201661,1,1,2) [2025-01-08 10:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201661', 'tblTempUsageDetail_20' ) start [2025-01-08 10:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201661', 'tblTempUsageDetail_20' ) end [2025-01-08 10:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:35:38] Production.INFO: ==28346== Releasing lock... [2025-01-08 10:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:35:38] Production.INFO: 49.75 MB #Memory Used# [2025-01-08 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:36:05 [end_date_ymd] => 2025-01-08 10:36:05 [RateCDR] => 1 ) [2025-01-08 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:36:05' and `end` < '2025-01-08 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:36:32] Production.INFO: count ==2860 [2025-01-08 10:36:33] Production.ERROR: pbx CDR StartTime 2025-01-08 07:36:05 - End Time 2025-01-08 10:36:05 [2025-01-08 10:36:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201666', 'tblTempUsageDetail_20' ) start [2025-01-08 10:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201666', 'tblTempUsageDetail_20' ) end [2025-01-08 10:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201666', 'tblTempVendorCDR_20' ) start [2025-01-08 10:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201666', 'tblTempVendorCDR_20' ) end [2025-01-08 10:36:33] Production.INFO: ProcessCDR(1,14201666,1,1,2) [2025-01-08 10:36:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:36:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:36:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201666', 'tblTempUsageDetail_20' ) start [2025-01-08 10:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201666', 'tblTempUsageDetail_20' ) end [2025-01-08 10:36:38] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:36:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:36:38] Production.INFO: ==28417== Releasing lock... [2025-01-08 10:36:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:36:38] Production.INFO: 49.5 MB #Memory Used# [2025-01-08 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:37:05 [end_date_ymd] => 2025-01-08 10:37:05 [RateCDR] => 1 ) [2025-01-08 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:37:05' and `end` < '2025-01-08 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:37:24] Production.INFO: count ==2930 [2025-01-08 10:37:25] Production.ERROR: pbx CDR StartTime 2025-01-08 07:37:05 - End Time 2025-01-08 10:37:05 [2025-01-08 10:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201671', 'tblTempUsageDetail_20' ) start [2025-01-08 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201671', 'tblTempUsageDetail_20' ) end [2025-01-08 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201671', 'tblTempVendorCDR_20' ) start [2025-01-08 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201671', 'tblTempVendorCDR_20' ) end [2025-01-08 10:37:25] Production.INFO: ProcessCDR(1,14201671,1,1,2) [2025-01-08 10:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201671', 'tblTempUsageDetail_20' ) start [2025-01-08 10:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201671', 'tblTempUsageDetail_20' ) end [2025-01-08 10:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:37:30] Production.INFO: ==28487== Releasing lock... [2025-01-08 10:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:37:30] Production.INFO: 50.25 MB #Memory Used# [2025-01-08 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:38:05 [end_date_ymd] => 2025-01-08 10:38:05 [RateCDR] => 1 ) [2025-01-08 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:38:05' and `end` < '2025-01-08 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:38:26] Production.INFO: count ==2945 [2025-01-08 10:38:27] Production.ERROR: pbx CDR StartTime 2025-01-08 07:38:05 - End Time 2025-01-08 10:38:05 [2025-01-08 10:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201676', 'tblTempUsageDetail_20' ) start [2025-01-08 10:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201676', 'tblTempUsageDetail_20' ) end [2025-01-08 10:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201676', 'tblTempVendorCDR_20' ) start [2025-01-08 10:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201676', 'tblTempVendorCDR_20' ) end [2025-01-08 10:38:27] Production.INFO: ProcessCDR(1,14201676,1,1,2) [2025-01-08 10:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201676', 'tblTempUsageDetail_20' ) start [2025-01-08 10:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201676', 'tblTempUsageDetail_20' ) end [2025-01-08 10:38:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:38:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:38:31] Production.INFO: ==28558== Releasing lock... [2025-01-08 10:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:38:31] Production.INFO: 50.5 MB #Memory Used# [2025-01-08 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:39:04 [end_date_ymd] => 2025-01-08 10:39:04 [RateCDR] => 1 ) [2025-01-08 10:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:39:04' and `end` < '2025-01-08 10:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:39:26] Production.INFO: count ==2977 [2025-01-08 10:39:27] Production.ERROR: pbx CDR StartTime 2025-01-08 07:39:04 - End Time 2025-01-08 10:39:04 [2025-01-08 10:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201681', 'tblTempUsageDetail_20' ) start [2025-01-08 10:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201681', 'tblTempUsageDetail_20' ) end [2025-01-08 10:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201681', 'tblTempVendorCDR_20' ) start [2025-01-08 10:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201681', 'tblTempVendorCDR_20' ) end [2025-01-08 10:39:27] Production.INFO: ProcessCDR(1,14201681,1,1,2) [2025-01-08 10:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201681', 'tblTempUsageDetail_20' ) start [2025-01-08 10:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201681', 'tblTempUsageDetail_20' ) end [2025-01-08 10:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:39:32] Production.INFO: ==28627== Releasing lock... [2025-01-08 10:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:39:32] Production.INFO: 50.5 MB #Memory Used# [2025-01-08 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:40:05 [end_date_ymd] => 2025-01-08 10:40:05 [RateCDR] => 1 ) [2025-01-08 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:40:05' and `end` < '2025-01-08 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:40:33] Production.INFO: count ==3023 [2025-01-08 10:40:34] Production.ERROR: pbx CDR StartTime 2025-01-08 07:40:05 - End Time 2025-01-08 10:40:05 [2025-01-08 10:40:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201686', 'tblTempUsageDetail_20' ) start [2025-01-08 10:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201686', 'tblTempUsageDetail_20' ) end [2025-01-08 10:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201686', 'tblTempVendorCDR_20' ) start [2025-01-08 10:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201686', 'tblTempVendorCDR_20' ) end [2025-01-08 10:40:34] Production.INFO: ProcessCDR(1,14201686,1,1,2) [2025-01-08 10:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:40:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:40:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:40:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201686', 'tblTempUsageDetail_20' ) start [2025-01-08 10:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201686', 'tblTempUsageDetail_20' ) end [2025-01-08 10:40:39] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:40:39] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:40:39] Production.INFO: ==28702== Releasing lock... [2025-01-08 10:40:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:40:39] Production.INFO: 51 MB #Memory Used# [2025-01-08 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:41:05 [end_date_ymd] => 2025-01-08 10:41:05 [RateCDR] => 1 ) [2025-01-08 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:41:05' and `end` < '2025-01-08 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:41:25] Production.INFO: count ==3157 [2025-01-08 10:41:26] Production.ERROR: pbx CDR StartTime 2025-01-08 07:41:05 - End Time 2025-01-08 10:41:05 [2025-01-08 10:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201692', 'tblTempUsageDetail_20' ) start [2025-01-08 10:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201692', 'tblTempUsageDetail_20' ) end [2025-01-08 10:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201692', 'tblTempVendorCDR_20' ) start [2025-01-08 10:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201692', 'tblTempVendorCDR_20' ) end [2025-01-08 10:41:27] Production.INFO: ProcessCDR(1,14201692,1,1,2) [2025-01-08 10:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201692', 'tblTempUsageDetail_20' ) start [2025-01-08 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201692', 'tblTempUsageDetail_20' ) end [2025-01-08 10:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:41:31] Production.INFO: ==28779== Releasing lock... [2025-01-08 10:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:41:31] Production.INFO: 52 MB #Memory Used# [2025-01-08 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:42:04 [end_date_ymd] => 2025-01-08 10:42:04 [RateCDR] => 1 ) [2025-01-08 10:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:42:04' and `end` < '2025-01-08 10:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:42:26] Production.INFO: count ==3197 [2025-01-08 10:42:27] Production.ERROR: pbx CDR StartTime 2025-01-08 07:42:04 - End Time 2025-01-08 10:42:04 [2025-01-08 10:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201697', 'tblTempUsageDetail_20' ) start [2025-01-08 10:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201697', 'tblTempUsageDetail_20' ) end [2025-01-08 10:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201697', 'tblTempVendorCDR_20' ) start [2025-01-08 10:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201697', 'tblTempVendorCDR_20' ) end [2025-01-08 10:42:27] Production.INFO: ProcessCDR(1,14201697,1,1,2) [2025-01-08 10:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201697', 'tblTempUsageDetail_20' ) start [2025-01-08 10:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201697', 'tblTempUsageDetail_20' ) end [2025-01-08 10:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:42:32] Production.INFO: ==28849== Releasing lock... [2025-01-08 10:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:42:32] Production.INFO: 52.5 MB #Memory Used# [2025-01-08 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:43:05 [end_date_ymd] => 2025-01-08 10:43:05 [RateCDR] => 1 ) [2025-01-08 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:43:05' and `end` < '2025-01-08 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:43:23] Production.INFO: count ==3205 [2025-01-08 10:43:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:43:05 - End Time 2025-01-08 10:43:05 [2025-01-08 10:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201702', 'tblTempUsageDetail_20' ) start [2025-01-08 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201702', 'tblTempUsageDetail_20' ) end [2025-01-08 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201702', 'tblTempVendorCDR_20' ) start [2025-01-08 10:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201702', 'tblTempVendorCDR_20' ) end [2025-01-08 10:43:24] Production.INFO: ProcessCDR(1,14201702,1,1,2) [2025-01-08 10:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201702', 'tblTempUsageDetail_20' ) start [2025-01-08 10:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201702', 'tblTempUsageDetail_20' ) end [2025-01-08 10:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:43:29] Production.INFO: ==28920== Releasing lock... [2025-01-08 10:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:43:29] Production.INFO: 52 MB #Memory Used# [2025-01-08 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:44:04 [end_date_ymd] => 2025-01-08 10:44:04 [RateCDR] => 1 ) [2025-01-08 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:44:04' and `end` < '2025-01-08 10:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:44:30] Production.INFO: count ==3235 [2025-01-08 10:44:31] Production.ERROR: pbx CDR StartTime 2025-01-08 07:44:04 - End Time 2025-01-08 10:44:04 [2025-01-08 10:44:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201707', 'tblTempUsageDetail_20' ) start [2025-01-08 10:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201707', 'tblTempUsageDetail_20' ) end [2025-01-08 10:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201707', 'tblTempVendorCDR_20' ) start [2025-01-08 10:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201707', 'tblTempVendorCDR_20' ) end [2025-01-08 10:44:31] Production.INFO: ProcessCDR(1,14201707,1,1,2) [2025-01-08 10:44:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:44:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:44:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201707', 'tblTempUsageDetail_20' ) start [2025-01-08 10:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201707', 'tblTempUsageDetail_20' ) end [2025-01-08 10:44:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:44:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:44:35] Production.INFO: ==28989== Releasing lock... [2025-01-08 10:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:44:35] Production.INFO: 52.5 MB #Memory Used# [2025-01-08 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:45:05 [end_date_ymd] => 2025-01-08 10:45:05 [RateCDR] => 1 ) [2025-01-08 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:45:05' and `end` < '2025-01-08 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:45:22] Production.INFO: count ==3265 [2025-01-08 10:45:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:45:05 - End Time 2025-01-08 10:45:05 [2025-01-08 10:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201712', 'tblTempUsageDetail_20' ) start [2025-01-08 10:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201712', 'tblTempUsageDetail_20' ) end [2025-01-08 10:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201712', 'tblTempVendorCDR_20' ) start [2025-01-08 10:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201712', 'tblTempVendorCDR_20' ) end [2025-01-08 10:45:24] Production.INFO: ProcessCDR(1,14201712,1,1,2) [2025-01-08 10:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201712', 'tblTempUsageDetail_20' ) start [2025-01-08 10:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201712', 'tblTempUsageDetail_20' ) end [2025-01-08 10:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:45:28] Production.INFO: ==29061== Releasing lock... [2025-01-08 10:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:45:28] Production.INFO: 52.5 MB #Memory Used# [2025-01-08 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:46:05 [end_date_ymd] => 2025-01-08 10:46:05 [RateCDR] => 1 ) [2025-01-08 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:46:05' and `end` < '2025-01-08 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:46:24] Production.INFO: count ==3299 [2025-01-08 10:46:25] Production.ERROR: pbx CDR StartTime 2025-01-08 07:46:05 - End Time 2025-01-08 10:46:05 [2025-01-08 10:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201717', 'tblTempUsageDetail_20' ) start [2025-01-08 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201717', 'tblTempUsageDetail_20' ) end [2025-01-08 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201717', 'tblTempVendorCDR_20' ) start [2025-01-08 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201717', 'tblTempVendorCDR_20' ) end [2025-01-08 10:46:25] Production.INFO: ProcessCDR(1,14201717,1,1,2) [2025-01-08 10:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201717', 'tblTempUsageDetail_20' ) start [2025-01-08 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201717', 'tblTempUsageDetail_20' ) end [2025-01-08 10:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:46:31] Production.INFO: ==29169== Releasing lock... [2025-01-08 10:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:46:31] Production.INFO: 52.75 MB #Memory Used# [2025-01-08 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:47:05 [end_date_ymd] => 2025-01-08 10:47:05 [RateCDR] => 1 ) [2025-01-08 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:47:05' and `end` < '2025-01-08 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:47:26] Production.INFO: count ==3314 [2025-01-08 10:47:27] Production.ERROR: pbx CDR StartTime 2025-01-08 07:47:05 - End Time 2025-01-08 10:47:05 [2025-01-08 10:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201722', 'tblTempUsageDetail_20' ) start [2025-01-08 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201722', 'tblTempUsageDetail_20' ) end [2025-01-08 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201722', 'tblTempVendorCDR_20' ) start [2025-01-08 10:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201722', 'tblTempVendorCDR_20' ) end [2025-01-08 10:47:27] Production.INFO: ProcessCDR(1,14201722,1,1,2) [2025-01-08 10:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201722', 'tblTempUsageDetail_20' ) start [2025-01-08 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201722', 'tblTempUsageDetail_20' ) end [2025-01-08 10:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:47:32] Production.INFO: ==29239== Releasing lock... [2025-01-08 10:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:47:32] Production.INFO: 53.5 MB #Memory Used# [2025-01-08 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:48:05 [end_date_ymd] => 2025-01-08 10:48:05 [RateCDR] => 1 ) [2025-01-08 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:48:05' and `end` < '2025-01-08 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:48:23] Production.INFO: count ==3324 [2025-01-08 10:48:25] Production.ERROR: pbx CDR StartTime 2025-01-08 07:48:05 - End Time 2025-01-08 10:48:05 [2025-01-08 10:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201727', 'tblTempUsageDetail_20' ) start [2025-01-08 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201727', 'tblTempUsageDetail_20' ) end [2025-01-08 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201727', 'tblTempVendorCDR_20' ) start [2025-01-08 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201727', 'tblTempVendorCDR_20' ) end [2025-01-08 10:48:25] Production.INFO: ProcessCDR(1,14201727,1,1,2) [2025-01-08 10:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201727', 'tblTempUsageDetail_20' ) start [2025-01-08 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201727', 'tblTempUsageDetail_20' ) end [2025-01-08 10:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:48:30] Production.INFO: ==29309== Releasing lock... [2025-01-08 10:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:48:30] Production.INFO: 53.25 MB #Memory Used# [2025-01-08 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:49:04 [end_date_ymd] => 2025-01-08 10:49:04 [RateCDR] => 1 ) [2025-01-08 10:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:49:04' and `end` < '2025-01-08 10:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:49:21] Production.INFO: count ==3340 [2025-01-08 10:49:22] Production.ERROR: pbx CDR StartTime 2025-01-08 07:49:04 - End Time 2025-01-08 10:49:04 [2025-01-08 10:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201732', 'tblTempUsageDetail_20' ) start [2025-01-08 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201732', 'tblTempUsageDetail_20' ) end [2025-01-08 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201732', 'tblTempVendorCDR_20' ) start [2025-01-08 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201732', 'tblTempVendorCDR_20' ) end [2025-01-08 10:49:22] Production.INFO: ProcessCDR(1,14201732,1,1,2) [2025-01-08 10:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201732', 'tblTempUsageDetail_20' ) start [2025-01-08 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201732', 'tblTempUsageDetail_20' ) end [2025-01-08 10:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:49:27] Production.INFO: ==29384== Releasing lock... [2025-01-08 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:49:27] Production.INFO: 54.25 MB #Memory Used# [2025-01-08 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:50:05 [end_date_ymd] => 2025-01-08 10:50:05 [RateCDR] => 1 ) [2025-01-08 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:50:05' and `end` < '2025-01-08 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:50:19] Production.INFO: count ==3348 [2025-01-08 10:50:20] Production.ERROR: pbx CDR StartTime 2025-01-08 07:50:05 - End Time 2025-01-08 10:50:05 [2025-01-08 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201738', 'tblTempUsageDetail_20' ) start [2025-01-08 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201738', 'tblTempUsageDetail_20' ) end [2025-01-08 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201738', 'tblTempVendorCDR_20' ) start [2025-01-08 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201738', 'tblTempVendorCDR_20' ) end [2025-01-08 10:50:20] Production.INFO: ProcessCDR(1,14201738,1,1,2) [2025-01-08 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201738', 'tblTempUsageDetail_20' ) start [2025-01-08 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201738', 'tblTempUsageDetail_20' ) end [2025-01-08 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:50:25] Production.INFO: ==29457== Releasing lock... [2025-01-08 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:50:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-08 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:51:05 [end_date_ymd] => 2025-01-08 10:51:05 [RateCDR] => 1 ) [2025-01-08 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:51:05' and `end` < '2025-01-08 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:51:20] Production.INFO: count ==3426 [2025-01-08 10:51:21] Production.ERROR: pbx CDR StartTime 2025-01-08 07:51:05 - End Time 2025-01-08 10:51:05 [2025-01-08 10:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201743', 'tblTempUsageDetail_20' ) start [2025-01-08 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201743', 'tblTempUsageDetail_20' ) end [2025-01-08 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201743', 'tblTempVendorCDR_20' ) start [2025-01-08 10:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201743', 'tblTempVendorCDR_20' ) end [2025-01-08 10:51:21] Production.INFO: ProcessCDR(1,14201743,1,1,2) [2025-01-08 10:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201743', 'tblTempUsageDetail_20' ) start [2025-01-08 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201743', 'tblTempUsageDetail_20' ) end [2025-01-08 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:51:26] Production.INFO: ==29530== Releasing lock... [2025-01-08 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:51:26] Production.INFO: 54.25 MB #Memory Used# [2025-01-08 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:52:04 [end_date_ymd] => 2025-01-08 10:52:04 [RateCDR] => 1 ) [2025-01-08 10:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:52:04' and `end` < '2025-01-08 10:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:52:23] Production.INFO: count ==3439 [2025-01-08 10:52:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:52:04 - End Time 2025-01-08 10:52:04 [2025-01-08 10:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201748', 'tblTempUsageDetail_20' ) start [2025-01-08 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201748', 'tblTempUsageDetail_20' ) end [2025-01-08 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201748', 'tblTempVendorCDR_20' ) start [2025-01-08 10:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201748', 'tblTempVendorCDR_20' ) end [2025-01-08 10:52:24] Production.INFO: ProcessCDR(1,14201748,1,1,2) [2025-01-08 10:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201748', 'tblTempUsageDetail_20' ) start [2025-01-08 10:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201748', 'tblTempUsageDetail_20' ) end [2025-01-08 10:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:52:29] Production.INFO: ==29603== Releasing lock... [2025-01-08 10:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:52:29] Production.INFO: 54.5 MB #Memory Used# [2025-01-08 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:53:05 [end_date_ymd] => 2025-01-08 10:53:05 [RateCDR] => 1 ) [2025-01-08 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:53:05' and `end` < '2025-01-08 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:53:22] Production.INFO: count ==3451 [2025-01-08 10:53:23] Production.ERROR: pbx CDR StartTime 2025-01-08 07:53:05 - End Time 2025-01-08 10:53:05 [2025-01-08 10:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201753', 'tblTempUsageDetail_20' ) start [2025-01-08 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201753', 'tblTempUsageDetail_20' ) end [2025-01-08 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201753', 'tblTempVendorCDR_20' ) start [2025-01-08 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201753', 'tblTempVendorCDR_20' ) end [2025-01-08 10:53:24] Production.INFO: ProcessCDR(1,14201753,1,1,2) [2025-01-08 10:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201753', 'tblTempUsageDetail_20' ) start [2025-01-08 10:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201753', 'tblTempUsageDetail_20' ) end [2025-01-08 10:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:53:28] Production.INFO: ==29674== Releasing lock... [2025-01-08 10:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:53:28] Production.INFO: 54.25 MB #Memory Used# [2025-01-08 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:54:05 [end_date_ymd] => 2025-01-08 10:54:05 [RateCDR] => 1 ) [2025-01-08 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:54:05' and `end` < '2025-01-08 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:54:20] Production.INFO: count ==3481 [2025-01-08 10:54:22] Production.ERROR: pbx CDR StartTime 2025-01-08 07:54:05 - End Time 2025-01-08 10:54:05 [2025-01-08 10:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201758', 'tblTempUsageDetail_20' ) start [2025-01-08 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201758', 'tblTempUsageDetail_20' ) end [2025-01-08 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201758', 'tblTempVendorCDR_20' ) start [2025-01-08 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201758', 'tblTempVendorCDR_20' ) end [2025-01-08 10:54:22] Production.INFO: ProcessCDR(1,14201758,1,1,2) [2025-01-08 10:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201758', 'tblTempUsageDetail_20' ) start [2025-01-08 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201758', 'tblTempUsageDetail_20' ) end [2025-01-08 10:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:54:27] Production.INFO: ==29751== Releasing lock... [2025-01-08 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:54:27] Production.INFO: 54.5 MB #Memory Used# [2025-01-08 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:55:05 [end_date_ymd] => 2025-01-08 10:55:05 [RateCDR] => 1 ) [2025-01-08 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:55:05' and `end` < '2025-01-08 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:55:28] Production.INFO: count ==3488 [2025-01-08 10:55:29] Production.ERROR: pbx CDR StartTime 2025-01-08 07:55:05 - End Time 2025-01-08 10:55:05 [2025-01-08 10:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201763', 'tblTempUsageDetail_20' ) start [2025-01-08 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201763', 'tblTempUsageDetail_20' ) end [2025-01-08 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201763', 'tblTempVendorCDR_20' ) start [2025-01-08 10:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201763', 'tblTempVendorCDR_20' ) end [2025-01-08 10:55:29] Production.INFO: ProcessCDR(1,14201763,1,1,2) [2025-01-08 10:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201763', 'tblTempUsageDetail_20' ) start [2025-01-08 10:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201763', 'tblTempUsageDetail_20' ) end [2025-01-08 10:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:55:34] Production.INFO: ==29826== Releasing lock... [2025-01-08 10:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:55:34] Production.INFO: 54.5 MB #Memory Used# [2025-01-08 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:56:05 [end_date_ymd] => 2025-01-08 10:56:05 [RateCDR] => 1 ) [2025-01-08 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:56:05' and `end` < '2025-01-08 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:56:21] Production.INFO: count ==3504 [2025-01-08 10:56:23] Production.ERROR: pbx CDR StartTime 2025-01-08 07:56:05 - End Time 2025-01-08 10:56:05 [2025-01-08 10:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201768', 'tblTempUsageDetail_20' ) start [2025-01-08 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201768', 'tblTempUsageDetail_20' ) end [2025-01-08 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201768', 'tblTempVendorCDR_20' ) start [2025-01-08 10:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201768', 'tblTempVendorCDR_20' ) end [2025-01-08 10:56:23] Production.INFO: ProcessCDR(1,14201768,1,1,2) [2025-01-08 10:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201768', 'tblTempUsageDetail_20' ) start [2025-01-08 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201768', 'tblTempUsageDetail_20' ) end [2025-01-08 10:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:56:28] Production.INFO: ==29899== Releasing lock... [2025-01-08 10:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:56:28] Production.INFO: 54.5 MB #Memory Used# [2025-01-08 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:57:05 [end_date_ymd] => 2025-01-08 10:57:05 [RateCDR] => 1 ) [2025-01-08 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:57:05' and `end` < '2025-01-08 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:57:24] Production.INFO: count ==3520 [2025-01-08 10:57:25] Production.ERROR: pbx CDR StartTime 2025-01-08 07:57:05 - End Time 2025-01-08 10:57:05 [2025-01-08 10:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201773', 'tblTempUsageDetail_20' ) start [2025-01-08 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201773', 'tblTempUsageDetail_20' ) end [2025-01-08 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201773', 'tblTempVendorCDR_20' ) start [2025-01-08 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201773', 'tblTempVendorCDR_20' ) end [2025-01-08 10:57:25] Production.INFO: ProcessCDR(1,14201773,1,1,2) [2025-01-08 10:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201773', 'tblTempUsageDetail_20' ) start [2025-01-08 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201773', 'tblTempUsageDetail_20' ) end [2025-01-08 10:57:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:57:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:57:30] Production.INFO: ==29972== Releasing lock... [2025-01-08 10:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:57:30] Production.INFO: 55.25 MB #Memory Used# [2025-01-08 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:58:05 [end_date_ymd] => 2025-01-08 10:58:05 [RateCDR] => 1 ) [2025-01-08 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:58:05' and `end` < '2025-01-08 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:58:22] Production.INFO: count ==3536 [2025-01-08 10:58:24] Production.ERROR: pbx CDR StartTime 2025-01-08 07:58:05 - End Time 2025-01-08 10:58:05 [2025-01-08 10:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201778', 'tblTempUsageDetail_20' ) start [2025-01-08 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201778', 'tblTempUsageDetail_20' ) end [2025-01-08 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201778', 'tblTempVendorCDR_20' ) start [2025-01-08 10:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201778', 'tblTempVendorCDR_20' ) end [2025-01-08 10:58:24] Production.INFO: ProcessCDR(1,14201778,1,1,2) [2025-01-08 10:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201778', 'tblTempUsageDetail_20' ) start [2025-01-08 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201778', 'tblTempUsageDetail_20' ) end [2025-01-08 10:58:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:58:29] Production.INFO: ==30042== Releasing lock... [2025-01-08 10:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:58:29] Production.INFO: 54.75 MB #Memory Used# [2025-01-08 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 07:59:04 [end_date_ymd] => 2025-01-08 10:59:04 [RateCDR] => 1 ) [2025-01-08 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 07:59:04' and `end` < '2025-01-08 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 10:59:20] Production.INFO: count ==3533 [2025-01-08 10:59:21] Production.ERROR: pbx CDR StartTime 2025-01-08 07:59:04 - End Time 2025-01-08 10:59:04 [2025-01-08 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201783', 'tblTempUsageDetail_20' ) start [2025-01-08 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201783', 'tblTempUsageDetail_20' ) end [2025-01-08 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201783', 'tblTempVendorCDR_20' ) start [2025-01-08 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201783', 'tblTempVendorCDR_20' ) end [2025-01-08 10:59:21] Production.INFO: ProcessCDR(1,14201783,1,1,2) [2025-01-08 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 10:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201783', 'tblTempUsageDetail_20' ) start [2025-01-08 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201783', 'tblTempUsageDetail_20' ) end [2025-01-08 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 10:59:26] Production.INFO: ==30112== Releasing lock... [2025-01-08 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 10:59:26] Production.INFO: 55.25 MB #Memory Used# [2025-01-08 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:00:06 [end_date_ymd] => 2025-01-08 11:00:06 [RateCDR] => 1 ) [2025-01-08 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:00:06' and `end` < '2025-01-08 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:00:25] Production.INFO: count ==3551 [2025-01-08 11:00:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:00:06 - End Time 2025-01-08 11:00:06 [2025-01-08 11:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201789', 'tblTempUsageDetail_20' ) start [2025-01-08 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201789', 'tblTempUsageDetail_20' ) end [2025-01-08 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201789', 'tblTempVendorCDR_20' ) start [2025-01-08 11:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201789', 'tblTempVendorCDR_20' ) end [2025-01-08 11:00:26] Production.INFO: ProcessCDR(1,14201789,1,1,2) [2025-01-08 11:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201789', 'tblTempUsageDetail_20' ) start [2025-01-08 11:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201789', 'tblTempUsageDetail_20' ) end [2025-01-08 11:00:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:00:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:00:31] Production.INFO: ==30185== Releasing lock... [2025-01-08 11:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:00:31] Production.INFO: 55.5 MB #Memory Used# [2025-01-08 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:01:05 [end_date_ymd] => 2025-01-08 11:01:05 [RateCDR] => 1 ) [2025-01-08 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:01:05' and `end` < '2025-01-08 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:01:20] Production.INFO: count ==3643 [2025-01-08 11:01:21] Production.ERROR: pbx CDR StartTime 2025-01-08 08:01:05 - End Time 2025-01-08 11:01:05 [2025-01-08 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201794', 'tblTempUsageDetail_20' ) start [2025-01-08 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201794', 'tblTempUsageDetail_20' ) end [2025-01-08 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201794', 'tblTempVendorCDR_20' ) start [2025-01-08 11:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201794', 'tblTempVendorCDR_20' ) end [2025-01-08 11:01:22] Production.INFO: ProcessCDR(1,14201794,1,1,2) [2025-01-08 11:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201794', 'tblTempUsageDetail_20' ) start [2025-01-08 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201794', 'tblTempUsageDetail_20' ) end [2025-01-08 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:01:26] Production.INFO: ==30310== Releasing lock... [2025-01-08 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:01:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-08 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:02:05 [end_date_ymd] => 2025-01-08 11:02:05 [RateCDR] => 1 ) [2025-01-08 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:02:05' and `end` < '2025-01-08 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:02:25] Production.INFO: count ==3654 [2025-01-08 11:02:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:02:05 - End Time 2025-01-08 11:02:05 [2025-01-08 11:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201799', 'tblTempUsageDetail_20' ) start [2025-01-08 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201799', 'tblTempUsageDetail_20' ) end [2025-01-08 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201799', 'tblTempVendorCDR_20' ) start [2025-01-08 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201799', 'tblTempVendorCDR_20' ) end [2025-01-08 11:02:26] Production.INFO: ProcessCDR(1,14201799,1,1,2) [2025-01-08 11:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201799', 'tblTempUsageDetail_20' ) start [2025-01-08 11:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201799', 'tblTempUsageDetail_20' ) end [2025-01-08 11:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:02:32] Production.INFO: ==30460== Releasing lock... [2025-01-08 11:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:02:32] Production.INFO: 55.25 MB #Memory Used# [2025-01-08 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:03:05 [end_date_ymd] => 2025-01-08 11:03:05 [RateCDR] => 1 ) [2025-01-08 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:03:05' and `end` < '2025-01-08 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:03:24] Production.INFO: count ==3664 [2025-01-08 11:03:25] Production.ERROR: pbx CDR StartTime 2025-01-08 08:03:05 - End Time 2025-01-08 11:03:05 [2025-01-08 11:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201804', 'tblTempUsageDetail_20' ) start [2025-01-08 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201804', 'tblTempUsageDetail_20' ) end [2025-01-08 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201804', 'tblTempVendorCDR_20' ) start [2025-01-08 11:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201804', 'tblTempVendorCDR_20' ) end [2025-01-08 11:03:25] Production.INFO: ProcessCDR(1,14201804,1,1,2) [2025-01-08 11:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201804', 'tblTempUsageDetail_20' ) start [2025-01-08 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201804', 'tblTempUsageDetail_20' ) end [2025-01-08 11:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:03:30] Production.INFO: ==30533== Releasing lock... [2025-01-08 11:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:03:30] Production.INFO: 55.5 MB #Memory Used# [2025-01-08 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:04:05 [end_date_ymd] => 2025-01-08 11:04:05 [RateCDR] => 1 ) [2025-01-08 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:04:05' and `end` < '2025-01-08 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:04:30] Production.INFO: count ==3678 [2025-01-08 11:04:32] Production.ERROR: pbx CDR StartTime 2025-01-08 08:04:05 - End Time 2025-01-08 11:04:05 [2025-01-08 11:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201809', 'tblTempUsageDetail_20' ) start [2025-01-08 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201809', 'tblTempUsageDetail_20' ) end [2025-01-08 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201809', 'tblTempVendorCDR_20' ) start [2025-01-08 11:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201809', 'tblTempVendorCDR_20' ) end [2025-01-08 11:04:32] Production.INFO: ProcessCDR(1,14201809,1,1,2) [2025-01-08 11:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201809', 'tblTempUsageDetail_20' ) start [2025-01-08 11:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201809', 'tblTempUsageDetail_20' ) end [2025-01-08 11:04:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:04:37] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:04:37] Production.INFO: ==30604== Releasing lock... [2025-01-08 11:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:04:37] Production.INFO: 56 MB #Memory Used# [2025-01-08 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:05:04 [end_date_ymd] => 2025-01-08 11:05:04 [RateCDR] => 1 ) [2025-01-08 11:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:05:04' and `end` < '2025-01-08 11:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:05:26] Production.INFO: count ==3713 [2025-01-08 11:05:28] Production.ERROR: pbx CDR StartTime 2025-01-08 08:05:04 - End Time 2025-01-08 11:05:04 [2025-01-08 11:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201814', 'tblTempUsageDetail_20' ) start [2025-01-08 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201814', 'tblTempUsageDetail_20' ) end [2025-01-08 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201814', 'tblTempVendorCDR_20' ) start [2025-01-08 11:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201814', 'tblTempVendorCDR_20' ) end [2025-01-08 11:05:28] Production.INFO: ProcessCDR(1,14201814,1,1,2) [2025-01-08 11:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201814', 'tblTempUsageDetail_20' ) start [2025-01-08 11:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201814', 'tblTempUsageDetail_20' ) end [2025-01-08 11:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:05:33] Production.INFO: ==30752== Releasing lock... [2025-01-08 11:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:05:33] Production.INFO: 55.75 MB #Memory Used# [2025-01-08 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:06:05 [end_date_ymd] => 2025-01-08 11:06:05 [RateCDR] => 1 ) [2025-01-08 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:06:05' and `end` < '2025-01-08 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:06:24] Production.INFO: count ==3769 [2025-01-08 11:06:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:06:05 - End Time 2025-01-08 11:06:05 [2025-01-08 11:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201819', 'tblTempUsageDetail_20' ) start [2025-01-08 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201819', 'tblTempUsageDetail_20' ) end [2025-01-08 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201819', 'tblTempVendorCDR_20' ) start [2025-01-08 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201819', 'tblTempVendorCDR_20' ) end [2025-01-08 11:06:26] Production.INFO: ProcessCDR(1,14201819,1,1,2) [2025-01-08 11:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201819', 'tblTempUsageDetail_20' ) start [2025-01-08 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201819', 'tblTempUsageDetail_20' ) end [2025-01-08 11:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:06:31] Production.INFO: ==30823== Releasing lock... [2025-01-08 11:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:06:31] Production.INFO: 56.25 MB #Memory Used# [2025-01-08 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:07:04 [end_date_ymd] => 2025-01-08 11:07:04 [RateCDR] => 1 ) [2025-01-08 11:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:07:04' and `end` < '2025-01-08 11:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:07:23] Production.INFO: count ==3799 [2025-01-08 11:07:24] Production.ERROR: pbx CDR StartTime 2025-01-08 08:07:04 - End Time 2025-01-08 11:07:04 [2025-01-08 11:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201824', 'tblTempUsageDetail_20' ) start [2025-01-08 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201824', 'tblTempUsageDetail_20' ) end [2025-01-08 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201824', 'tblTempVendorCDR_20' ) start [2025-01-08 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201824', 'tblTempVendorCDR_20' ) end [2025-01-08 11:07:24] Production.INFO: ProcessCDR(1,14201824,1,1,2) [2025-01-08 11:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201824', 'tblTempUsageDetail_20' ) start [2025-01-08 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201824', 'tblTempUsageDetail_20' ) end [2025-01-08 11:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:07:29] Production.INFO: ==30892== Releasing lock... [2025-01-08 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:07:29] Production.INFO: 56.25 MB #Memory Used# [2025-01-08 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:08:05 [end_date_ymd] => 2025-01-08 11:08:05 [RateCDR] => 1 ) [2025-01-08 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:08:05' and `end` < '2025-01-08 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:08:20] Production.INFO: count ==3806 [2025-01-08 11:08:22] Production.ERROR: pbx CDR StartTime 2025-01-08 08:08:05 - End Time 2025-01-08 11:08:05 [2025-01-08 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201829', 'tblTempUsageDetail_20' ) start [2025-01-08 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201829', 'tblTempUsageDetail_20' ) end [2025-01-08 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201829', 'tblTempVendorCDR_20' ) start [2025-01-08 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201829', 'tblTempVendorCDR_20' ) end [2025-01-08 11:08:22] Production.INFO: ProcessCDR(1,14201829,1,1,2) [2025-01-08 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201829', 'tblTempUsageDetail_20' ) start [2025-01-08 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201829', 'tblTempUsageDetail_20' ) end [2025-01-08 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:08:28] Production.INFO: ==31042== Releasing lock... [2025-01-08 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:08:28] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:09:05 [end_date_ymd] => 2025-01-08 11:09:05 [RateCDR] => 1 ) [2025-01-08 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:09:05' and `end` < '2025-01-08 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:09:22] Production.INFO: count ==3812 [2025-01-08 11:09:24] Production.ERROR: pbx CDR StartTime 2025-01-08 08:09:05 - End Time 2025-01-08 11:09:05 [2025-01-08 11:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201834', 'tblTempUsageDetail_20' ) start [2025-01-08 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201834', 'tblTempUsageDetail_20' ) end [2025-01-08 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201834', 'tblTempVendorCDR_20' ) start [2025-01-08 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201834', 'tblTempVendorCDR_20' ) end [2025-01-08 11:09:24] Production.INFO: ProcessCDR(1,14201834,1,1,2) [2025-01-08 11:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201834', 'tblTempUsageDetail_20' ) start [2025-01-08 11:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201834', 'tblTempUsageDetail_20' ) end [2025-01-08 11:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:09:29] Production.INFO: ==31116== Releasing lock... [2025-01-08 11:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:09:29] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:10:05 [end_date_ymd] => 2025-01-08 11:10:05 [RateCDR] => 1 ) [2025-01-08 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:10:05' and `end` < '2025-01-08 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:10:24] Production.INFO: count ==3826 [2025-01-08 11:10:25] Production.ERROR: pbx CDR StartTime 2025-01-08 08:10:05 - End Time 2025-01-08 11:10:05 [2025-01-08 11:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201839', 'tblTempUsageDetail_20' ) start [2025-01-08 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201839', 'tblTempUsageDetail_20' ) end [2025-01-08 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201839', 'tblTempVendorCDR_20' ) start [2025-01-08 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201839', 'tblTempVendorCDR_20' ) end [2025-01-08 11:10:25] Production.INFO: ProcessCDR(1,14201839,1,1,2) [2025-01-08 11:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201839', 'tblTempUsageDetail_20' ) start [2025-01-08 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201839', 'tblTempUsageDetail_20' ) end [2025-01-08 11:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:10:31] Production.INFO: ==31189== Releasing lock... [2025-01-08 11:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:10:31] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:11:05 [end_date_ymd] => 2025-01-08 11:11:05 [RateCDR] => 1 ) [2025-01-08 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:11:05' and `end` < '2025-01-08 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:11:23] Production.INFO: count ==3891 [2025-01-08 11:11:25] Production.ERROR: pbx CDR StartTime 2025-01-08 08:11:05 - End Time 2025-01-08 11:11:05 [2025-01-08 11:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201845', 'tblTempUsageDetail_20' ) start [2025-01-08 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201845', 'tblTempUsageDetail_20' ) end [2025-01-08 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201845', 'tblTempVendorCDR_20' ) start [2025-01-08 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201845', 'tblTempVendorCDR_20' ) end [2025-01-08 11:11:25] Production.INFO: ProcessCDR(1,14201845,1,1,2) [2025-01-08 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201845', 'tblTempUsageDetail_20' ) start [2025-01-08 11:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201845', 'tblTempUsageDetail_20' ) end [2025-01-08 11:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:11:29] Production.INFO: ==31262== Releasing lock... [2025-01-08 11:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:11:29] Production.INFO: 57 MB #Memory Used# [2025-01-08 11:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:12:04 [end_date_ymd] => 2025-01-08 11:12:04 [RateCDR] => 1 ) [2025-01-08 11:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:12:04' and `end` < '2025-01-08 11:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:12:29] Production.INFO: count ==3932 [2025-01-08 11:12:30] Production.ERROR: pbx CDR StartTime 2025-01-08 08:12:04 - End Time 2025-01-08 11:12:04 [2025-01-08 11:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201850', 'tblTempUsageDetail_20' ) start [2025-01-08 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201850', 'tblTempUsageDetail_20' ) end [2025-01-08 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201850', 'tblTempVendorCDR_20' ) start [2025-01-08 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201850', 'tblTempVendorCDR_20' ) end [2025-01-08 11:12:30] Production.INFO: ProcessCDR(1,14201850,1,1,2) [2025-01-08 11:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:12:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:12:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:12:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201850', 'tblTempUsageDetail_20' ) start [2025-01-08 11:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201850', 'tblTempUsageDetail_20' ) end [2025-01-08 11:12:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:12:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:12:35] Production.INFO: ==31410== Releasing lock... [2025-01-08 11:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:12:35] Production.INFO: 57.5 MB #Memory Used# [2025-01-08 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:13:05 [end_date_ymd] => 2025-01-08 11:13:05 [RateCDR] => 1 ) [2025-01-08 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:13:05' and `end` < '2025-01-08 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:13:23] Production.INFO: count ==3956 [2025-01-08 11:13:24] Production.ERROR: pbx CDR StartTime 2025-01-08 08:13:05 - End Time 2025-01-08 11:13:05 [2025-01-08 11:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201855', 'tblTempUsageDetail_20' ) start [2025-01-08 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201855', 'tblTempUsageDetail_20' ) end [2025-01-08 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201855', 'tblTempVendorCDR_20' ) start [2025-01-08 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201855', 'tblTempVendorCDR_20' ) end [2025-01-08 11:13:25] Production.INFO: ProcessCDR(1,14201855,1,1,2) [2025-01-08 11:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201855', 'tblTempUsageDetail_20' ) start [2025-01-08 11:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201855', 'tblTempUsageDetail_20' ) end [2025-01-08 11:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:13:30] Production.INFO: ==31481== Releasing lock... [2025-01-08 11:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:13:30] Production.INFO: 57.5 MB #Memory Used# [2025-01-08 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:14:05 [end_date_ymd] => 2025-01-08 11:14:05 [RateCDR] => 1 ) [2025-01-08 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:14:05' and `end` < '2025-01-08 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:14:39] Production.INFO: count ==3975 [2025-01-08 11:14:41] Production.ERROR: pbx CDR StartTime 2025-01-08 08:14:05 - End Time 2025-01-08 11:14:05 [2025-01-08 11:14:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:14:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201860', 'tblTempUsageDetail_20' ) start [2025-01-08 11:14:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201860', 'tblTempUsageDetail_20' ) end [2025-01-08 11:14:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201860', 'tblTempVendorCDR_20' ) start [2025-01-08 11:14:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201860', 'tblTempVendorCDR_20' ) end [2025-01-08 11:14:41] Production.INFO: ProcessCDR(1,14201860,1,1,2) [2025-01-08 11:14:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:14:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:14:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:14:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:14:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201860', 'tblTempUsageDetail_20' ) start [2025-01-08 11:14:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201860', 'tblTempUsageDetail_20' ) end [2025-01-08 11:14:45] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:14:45] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:14:45] Production.INFO: ==31551== Releasing lock... [2025-01-08 11:14:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:14:45] Production.INFO: 57.75 MB #Memory Used# [2025-01-08 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:15:05 [end_date_ymd] => 2025-01-08 11:15:05 [RateCDR] => 1 ) [2025-01-08 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:15:05' and `end` < '2025-01-08 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:15:26] Production.INFO: count ==3996 [2025-01-08 11:15:28] Production.ERROR: pbx CDR StartTime 2025-01-08 08:15:05 - End Time 2025-01-08 11:15:05 [2025-01-08 11:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201865', 'tblTempUsageDetail_20' ) start [2025-01-08 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201865', 'tblTempUsageDetail_20' ) end [2025-01-08 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201865', 'tblTempVendorCDR_20' ) start [2025-01-08 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201865', 'tblTempVendorCDR_20' ) end [2025-01-08 11:15:28] Production.INFO: ProcessCDR(1,14201865,1,1,2) [2025-01-08 11:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201865', 'tblTempUsageDetail_20' ) start [2025-01-08 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201865', 'tblTempUsageDetail_20' ) end [2025-01-08 11:15:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:15:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:15:33] Production.INFO: ==31699== Releasing lock... [2025-01-08 11:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:15:33] Production.INFO: 58 MB #Memory Used# [2025-01-08 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:16:05 [end_date_ymd] => 2025-01-08 11:16:05 [RateCDR] => 1 ) [2025-01-08 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:16:05' and `end` < '2025-01-08 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:16:27] Production.INFO: count ==4003 [2025-01-08 11:16:29] Production.ERROR: pbx CDR StartTime 2025-01-08 08:16:05 - End Time 2025-01-08 11:16:05 [2025-01-08 11:16:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201870', 'tblTempUsageDetail_20' ) start [2025-01-08 11:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201870', 'tblTempUsageDetail_20' ) end [2025-01-08 11:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201870', 'tblTempVendorCDR_20' ) start [2025-01-08 11:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201870', 'tblTempVendorCDR_20' ) end [2025-01-08 11:16:29] Production.INFO: ProcessCDR(1,14201870,1,1,2) [2025-01-08 11:16:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201870', 'tblTempUsageDetail_20' ) start [2025-01-08 11:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201870', 'tblTempUsageDetail_20' ) end [2025-01-08 11:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:16:33] Production.INFO: ==31771== Releasing lock... [2025-01-08 11:16:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:16:34] Production.INFO: 58 MB #Memory Used# [2025-01-08 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:17:05 [end_date_ymd] => 2025-01-08 11:17:05 [RateCDR] => 1 ) [2025-01-08 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:17:05' and `end` < '2025-01-08 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:17:24] Production.INFO: count ==4038 [2025-01-08 11:17:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:17:05 - End Time 2025-01-08 11:17:05 [2025-01-08 11:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201875', 'tblTempUsageDetail_20' ) start [2025-01-08 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201875', 'tblTempUsageDetail_20' ) end [2025-01-08 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201875', 'tblTempVendorCDR_20' ) start [2025-01-08 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201875', 'tblTempVendorCDR_20' ) end [2025-01-08 11:17:26] Production.INFO: ProcessCDR(1,14201875,1,1,2) [2025-01-08 11:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201875', 'tblTempUsageDetail_20' ) start [2025-01-08 11:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201875', 'tblTempUsageDetail_20' ) end [2025-01-08 11:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:17:30] Production.INFO: ==31882== Releasing lock... [2025-01-08 11:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:17:30] Production.INFO: 58.25 MB #Memory Used# [2025-01-08 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:18:05 [end_date_ymd] => 2025-01-08 11:18:05 [RateCDR] => 1 ) [2025-01-08 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:18:05' and `end` < '2025-01-08 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:18:20] Production.INFO: count ==4063 [2025-01-08 11:18:22] Production.ERROR: pbx CDR StartTime 2025-01-08 08:18:05 - End Time 2025-01-08 11:18:05 [2025-01-08 11:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201880', 'tblTempUsageDetail_20' ) start [2025-01-08 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201880', 'tblTempUsageDetail_20' ) end [2025-01-08 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201880', 'tblTempVendorCDR_20' ) start [2025-01-08 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201880', 'tblTempVendorCDR_20' ) end [2025-01-08 11:18:22] Production.INFO: ProcessCDR(1,14201880,1,1,2) [2025-01-08 11:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201880', 'tblTempUsageDetail_20' ) start [2025-01-08 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201880', 'tblTempUsageDetail_20' ) end [2025-01-08 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:18:26] Production.INFO: ==31953== Releasing lock... [2025-01-08 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:18:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-08 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:19:04 [end_date_ymd] => 2025-01-08 11:19:04 [RateCDR] => 1 ) [2025-01-08 11:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:19:04' and `end` < '2025-01-08 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:19:29] Production.INFO: count ==4108 [2025-01-08 11:19:30] Production.ERROR: pbx CDR StartTime 2025-01-08 08:19:04 - End Time 2025-01-08 11:19:04 [2025-01-08 11:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201885', 'tblTempUsageDetail_20' ) start [2025-01-08 11:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201885', 'tblTempUsageDetail_20' ) end [2025-01-08 11:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201885', 'tblTempVendorCDR_20' ) start [2025-01-08 11:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201885', 'tblTempVendorCDR_20' ) end [2025-01-08 11:19:30] Production.INFO: ProcessCDR(1,14201885,1,1,2) [2025-01-08 11:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201885', 'tblTempUsageDetail_20' ) start [2025-01-08 11:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201885', 'tblTempUsageDetail_20' ) end [2025-01-08 11:19:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:19:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:19:35] Production.INFO: ==32024== Releasing lock... [2025-01-08 11:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:19:35] Production.INFO: 58.75 MB #Memory Used# [2025-01-08 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:20:05 [end_date_ymd] => 2025-01-08 11:20:05 [RateCDR] => 1 ) [2025-01-08 11:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:20:05' and `end` < '2025-01-08 11:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:20:26] Production.INFO: count ==4149 [2025-01-08 11:20:27] Production.ERROR: pbx CDR StartTime 2025-01-08 08:20:05 - End Time 2025-01-08 11:20:05 [2025-01-08 11:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201891', 'tblTempUsageDetail_20' ) start [2025-01-08 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201891', 'tblTempUsageDetail_20' ) end [2025-01-08 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201891', 'tblTempVendorCDR_20' ) start [2025-01-08 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201891', 'tblTempVendorCDR_20' ) end [2025-01-08 11:20:27] Production.INFO: ProcessCDR(1,14201891,1,1,2) [2025-01-08 11:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201891', 'tblTempUsageDetail_20' ) start [2025-01-08 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201891', 'tblTempUsageDetail_20' ) end [2025-01-08 11:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:20:32] Production.INFO: ==32097== Releasing lock... [2025-01-08 11:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:20:32] Production.INFO: 59 MB #Memory Used# [2025-01-08 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:21:05 [end_date_ymd] => 2025-01-08 11:21:05 [RateCDR] => 1 ) [2025-01-08 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:21:05' and `end` < '2025-01-08 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:21:19] Production.INFO: count ==4223 [2025-01-08 11:21:21] Production.ERROR: pbx CDR StartTime 2025-01-08 08:21:05 - End Time 2025-01-08 11:21:05 [2025-01-08 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201896', 'tblTempUsageDetail_20' ) start [2025-01-08 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201896', 'tblTempUsageDetail_20' ) end [2025-01-08 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201896', 'tblTempVendorCDR_20' ) start [2025-01-08 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201896', 'tblTempVendorCDR_20' ) end [2025-01-08 11:21:21] Production.INFO: ProcessCDR(1,14201896,1,1,2) [2025-01-08 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201896', 'tblTempUsageDetail_20' ) start [2025-01-08 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201896', 'tblTempUsageDetail_20' ) end [2025-01-08 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:21:26] Production.INFO: ==32169== Releasing lock... [2025-01-08 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:21:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-08 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:22:05 [end_date_ymd] => 2025-01-08 11:22:05 [RateCDR] => 1 ) [2025-01-08 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:22:05' and `end` < '2025-01-08 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:22:28] Production.INFO: count ==4259 [2025-01-08 11:22:30] Production.ERROR: pbx CDR StartTime 2025-01-08 08:22:05 - End Time 2025-01-08 11:22:05 [2025-01-08 11:22:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201901', 'tblTempUsageDetail_20' ) start [2025-01-08 11:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201901', 'tblTempUsageDetail_20' ) end [2025-01-08 11:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201901', 'tblTempVendorCDR_20' ) start [2025-01-08 11:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201901', 'tblTempVendorCDR_20' ) end [2025-01-08 11:22:30] Production.INFO: ProcessCDR(1,14201901,1,1,2) [2025-01-08 11:22:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201901', 'tblTempUsageDetail_20' ) start [2025-01-08 11:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201901', 'tblTempUsageDetail_20' ) end [2025-01-08 11:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:22:34] Production.INFO: ==32242== Releasing lock... [2025-01-08 11:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:22:34] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:23:05 [end_date_ymd] => 2025-01-08 11:23:05 [RateCDR] => 1 ) [2025-01-08 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:23:05' and `end` < '2025-01-08 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:23:25] Production.INFO: count ==4277 [2025-01-08 11:23:27] Production.ERROR: pbx CDR StartTime 2025-01-08 08:23:05 - End Time 2025-01-08 11:23:05 [2025-01-08 11:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201906', 'tblTempUsageDetail_20' ) start [2025-01-08 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201906', 'tblTempUsageDetail_20' ) end [2025-01-08 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201906', 'tblTempVendorCDR_20' ) start [2025-01-08 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201906', 'tblTempVendorCDR_20' ) end [2025-01-08 11:23:27] Production.INFO: ProcessCDR(1,14201906,1,1,2) [2025-01-08 11:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201906', 'tblTempUsageDetail_20' ) start [2025-01-08 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201906', 'tblTempUsageDetail_20' ) end [2025-01-08 11:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:23:32] Production.INFO: ==32317== Releasing lock... [2025-01-08 11:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:23:32] Production.INFO: 60 MB #Memory Used# [2025-01-08 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:24:05 [end_date_ymd] => 2025-01-08 11:24:05 [RateCDR] => 1 ) [2025-01-08 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:24:05' and `end` < '2025-01-08 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:24:22] Production.INFO: count ==4305 [2025-01-08 11:24:24] Production.ERROR: pbx CDR StartTime 2025-01-08 08:24:05 - End Time 2025-01-08 11:24:05 [2025-01-08 11:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201911', 'tblTempUsageDetail_20' ) start [2025-01-08 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201911', 'tblTempUsageDetail_20' ) end [2025-01-08 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201911', 'tblTempVendorCDR_20' ) start [2025-01-08 11:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201911', 'tblTempVendorCDR_20' ) end [2025-01-08 11:24:24] Production.INFO: ProcessCDR(1,14201911,1,1,2) [2025-01-08 11:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201911', 'tblTempUsageDetail_20' ) start [2025-01-08 11:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201911', 'tblTempUsageDetail_20' ) end [2025-01-08 11:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:24:29] Production.INFO: ==32387== Releasing lock... [2025-01-08 11:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:24:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-08 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:25:05 [end_date_ymd] => 2025-01-08 11:25:05 [RateCDR] => 1 ) [2025-01-08 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:25:05' and `end` < '2025-01-08 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:25:28] Production.INFO: count ==4341 [2025-01-08 11:25:30] Production.ERROR: pbx CDR StartTime 2025-01-08 08:25:05 - End Time 2025-01-08 11:25:05 [2025-01-08 11:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201916', 'tblTempUsageDetail_20' ) start [2025-01-08 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201916', 'tblTempUsageDetail_20' ) end [2025-01-08 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201916', 'tblTempVendorCDR_20' ) start [2025-01-08 11:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201916', 'tblTempVendorCDR_20' ) end [2025-01-08 11:25:30] Production.INFO: ProcessCDR(1,14201916,1,1,2) [2025-01-08 11:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201916', 'tblTempUsageDetail_20' ) start [2025-01-08 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201916', 'tblTempUsageDetail_20' ) end [2025-01-08 11:25:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:25:34] Production.INFO: ==32457== Releasing lock... [2025-01-08 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:25:34] Production.INFO: 60.5 MB #Memory Used# [2025-01-08 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:26:04 [end_date_ymd] => 2025-01-08 11:26:04 [RateCDR] => 1 ) [2025-01-08 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:26:04' and `end` < '2025-01-08 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:26:35] Production.INFO: count ==4332 [2025-01-08 11:26:37] Production.ERROR: pbx CDR StartTime 2025-01-08 08:26:04 - End Time 2025-01-08 11:26:04 [2025-01-08 11:26:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201921', 'tblTempUsageDetail_20' ) start [2025-01-08 11:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201921', 'tblTempUsageDetail_20' ) end [2025-01-08 11:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201921', 'tblTempVendorCDR_20' ) start [2025-01-08 11:26:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201921', 'tblTempVendorCDR_20' ) end [2025-01-08 11:26:37] Production.INFO: ProcessCDR(1,14201921,1,1,2) [2025-01-08 11:26:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:26:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:26:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:26:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:26:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201921', 'tblTempUsageDetail_20' ) start [2025-01-08 11:26:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201921', 'tblTempUsageDetail_20' ) end [2025-01-08 11:26:42] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:26:42] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:26:42] Production.INFO: ==32529== Releasing lock... [2025-01-08 11:26:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:26:42] Production.INFO: 60.5 MB #Memory Used# [2025-01-08 11:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:27:04 [end_date_ymd] => 2025-01-08 11:27:04 [RateCDR] => 1 ) [2025-01-08 11:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:27:04' and `end` < '2025-01-08 11:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:27:22] Production.INFO: count ==4354 [2025-01-08 11:27:24] Production.ERROR: pbx CDR StartTime 2025-01-08 08:27:04 - End Time 2025-01-08 11:27:04 [2025-01-08 11:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201926', 'tblTempUsageDetail_20' ) start [2025-01-08 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201926', 'tblTempUsageDetail_20' ) end [2025-01-08 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201926', 'tblTempVendorCDR_20' ) start [2025-01-08 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201926', 'tblTempVendorCDR_20' ) end [2025-01-08 11:27:24] Production.INFO: ProcessCDR(1,14201926,1,1,2) [2025-01-08 11:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201926', 'tblTempUsageDetail_20' ) start [2025-01-08 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201926', 'tblTempUsageDetail_20' ) end [2025-01-08 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:27:28] Production.INFO: ==32599== Releasing lock... [2025-01-08 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:27:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-08 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:28:05 [end_date_ymd] => 2025-01-08 11:28:05 [RateCDR] => 1 ) [2025-01-08 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:28:05' and `end` < '2025-01-08 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:28:24] Production.INFO: count ==4392 [2025-01-08 11:28:25] Production.ERROR: pbx CDR StartTime 2025-01-08 08:28:05 - End Time 2025-01-08 11:28:05 [2025-01-08 11:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201931', 'tblTempUsageDetail_20' ) start [2025-01-08 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201931', 'tblTempUsageDetail_20' ) end [2025-01-08 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201931', 'tblTempVendorCDR_20' ) start [2025-01-08 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201931', 'tblTempVendorCDR_20' ) end [2025-01-08 11:28:26] Production.INFO: ProcessCDR(1,14201931,1,1,2) [2025-01-08 11:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201931', 'tblTempUsageDetail_20' ) start [2025-01-08 11:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201931', 'tblTempUsageDetail_20' ) end [2025-01-08 11:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:28:30] Production.INFO: ==32670== Releasing lock... [2025-01-08 11:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:28:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-08 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:29:04 [end_date_ymd] => 2025-01-08 11:29:04 [RateCDR] => 1 ) [2025-01-08 11:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:29:04' and `end` < '2025-01-08 11:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:29:22] Production.INFO: count ==4395 [2025-01-08 11:29:24] Production.ERROR: pbx CDR StartTime 2025-01-08 08:29:04 - End Time 2025-01-08 11:29:04 [2025-01-08 11:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201936', 'tblTempUsageDetail_20' ) start [2025-01-08 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201936', 'tblTempUsageDetail_20' ) end [2025-01-08 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201936', 'tblTempVendorCDR_20' ) start [2025-01-08 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201936', 'tblTempVendorCDR_20' ) end [2025-01-08 11:29:24] Production.INFO: ProcessCDR(1,14201936,1,1,2) [2025-01-08 11:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201936', 'tblTempUsageDetail_20' ) start [2025-01-08 11:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201936', 'tblTempUsageDetail_20' ) end [2025-01-08 11:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:29:28] Production.INFO: ==32741== Releasing lock... [2025-01-08 11:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:29:28] Production.INFO: 61 MB #Memory Used# [2025-01-08 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:30:06 [end_date_ymd] => 2025-01-08 11:30:06 [RateCDR] => 1 ) [2025-01-08 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:30:06' and `end` < '2025-01-08 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:30:24] Production.INFO: count ==4399 [2025-01-08 11:30:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:30:06 - End Time 2025-01-08 11:30:06 [2025-01-08 11:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201941', 'tblTempUsageDetail_20' ) start [2025-01-08 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201941', 'tblTempUsageDetail_20' ) end [2025-01-08 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201941', 'tblTempVendorCDR_20' ) start [2025-01-08 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201941', 'tblTempVendorCDR_20' ) end [2025-01-08 11:30:26] Production.INFO: ProcessCDR(1,14201941,1,1,2) [2025-01-08 11:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201941', 'tblTempUsageDetail_20' ) start [2025-01-08 11:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201941', 'tblTempUsageDetail_20' ) end [2025-01-08 11:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:30:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:30:31] Production.INFO: ==367== Releasing lock... [2025-01-08 11:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:30:31] Production.INFO: 61 MB #Memory Used# [2025-01-08 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:31:04 [end_date_ymd] => 2025-01-08 11:31:04 [RateCDR] => 1 ) [2025-01-08 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:31:04' and `end` < '2025-01-08 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:31:25] Production.INFO: count ==4488 [2025-01-08 11:31:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:31:04 - End Time 2025-01-08 11:31:04 [2025-01-08 11:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201947', 'tblTempUsageDetail_20' ) start [2025-01-08 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201947', 'tblTempUsageDetail_20' ) end [2025-01-08 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201947', 'tblTempVendorCDR_20' ) start [2025-01-08 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201947', 'tblTempVendorCDR_20' ) end [2025-01-08 11:31:26] Production.INFO: ProcessCDR(1,14201947,1,1,2) [2025-01-08 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201947', 'tblTempUsageDetail_20' ) start [2025-01-08 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201947', 'tblTempUsageDetail_20' ) end [2025-01-08 11:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:31:31] Production.INFO: ==445== Releasing lock... [2025-01-08 11:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:31:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-08 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:32:05 [end_date_ymd] => 2025-01-08 11:32:05 [RateCDR] => 1 ) [2025-01-08 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:32:05' and `end` < '2025-01-08 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:32:24] Production.INFO: count ==4488 [2025-01-08 11:32:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:32:05 - End Time 2025-01-08 11:32:05 [2025-01-08 11:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201952', 'tblTempUsageDetail_20' ) start [2025-01-08 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201952', 'tblTempUsageDetail_20' ) end [2025-01-08 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201952', 'tblTempVendorCDR_20' ) start [2025-01-08 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201952', 'tblTempVendorCDR_20' ) end [2025-01-08 11:32:26] Production.INFO: ProcessCDR(1,14201952,1,1,2) [2025-01-08 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201952', 'tblTempUsageDetail_20' ) start [2025-01-08 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201952', 'tblTempUsageDetail_20' ) end [2025-01-08 11:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:32:30] Production.INFO: ==519== Releasing lock... [2025-01-08 11:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:32:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-08 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:33:04 [end_date_ymd] => 2025-01-08 11:33:04 [RateCDR] => 1 ) [2025-01-08 11:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:33:04' and `end` < '2025-01-08 11:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:33:20] Production.INFO: count ==4501 [2025-01-08 11:33:22] Production.ERROR: pbx CDR StartTime 2025-01-08 08:33:04 - End Time 2025-01-08 11:33:04 [2025-01-08 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201957', 'tblTempUsageDetail_20' ) start [2025-01-08 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201957', 'tblTempUsageDetail_20' ) end [2025-01-08 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201957', 'tblTempVendorCDR_20' ) start [2025-01-08 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201957', 'tblTempVendorCDR_20' ) end [2025-01-08 11:33:22] Production.INFO: ProcessCDR(1,14201957,1,1,2) [2025-01-08 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201957', 'tblTempUsageDetail_20' ) start [2025-01-08 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201957', 'tblTempUsageDetail_20' ) end [2025-01-08 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:33:27] Production.INFO: ==638== Releasing lock... [2025-01-08 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:33:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-08 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:34:04 [end_date_ymd] => 2025-01-08 11:34:04 [RateCDR] => 1 ) [2025-01-08 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:34:04' and `end` < '2025-01-08 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:34:22] Production.INFO: count ==4512 [2025-01-08 11:34:24] Production.ERROR: pbx CDR StartTime 2025-01-08 08:34:04 - End Time 2025-01-08 11:34:04 [2025-01-08 11:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201962', 'tblTempUsageDetail_20' ) start [2025-01-08 11:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201962', 'tblTempUsageDetail_20' ) end [2025-01-08 11:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201962', 'tblTempVendorCDR_20' ) start [2025-01-08 11:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201962', 'tblTempVendorCDR_20' ) end [2025-01-08 11:34:24] Production.INFO: ProcessCDR(1,14201962,1,1,2) [2025-01-08 11:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201962', 'tblTempUsageDetail_20' ) start [2025-01-08 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201962', 'tblTempUsageDetail_20' ) end [2025-01-08 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:34:28] Production.INFO: ==733== Releasing lock... [2025-01-08 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:34:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-08 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:35:05 [end_date_ymd] => 2025-01-08 11:35:05 [RateCDR] => 1 ) [2025-01-08 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:35:05' and `end` < '2025-01-08 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:35:26] Production.INFO: count ==4515 [2025-01-08 11:35:27] Production.ERROR: pbx CDR StartTime 2025-01-08 08:35:05 - End Time 2025-01-08 11:35:05 [2025-01-08 11:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201967', 'tblTempUsageDetail_20' ) start [2025-01-08 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201967', 'tblTempUsageDetail_20' ) end [2025-01-08 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201967', 'tblTempVendorCDR_20' ) start [2025-01-08 11:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201967', 'tblTempVendorCDR_20' ) end [2025-01-08 11:35:27] Production.INFO: ProcessCDR(1,14201967,1,1,2) [2025-01-08 11:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201967', 'tblTempUsageDetail_20' ) start [2025-01-08 11:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201967', 'tblTempUsageDetail_20' ) end [2025-01-08 11:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:35:32] Production.INFO: ==806== Releasing lock... [2025-01-08 11:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:35:32] Production.INFO: 61.75 MB #Memory Used# [2025-01-08 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:36:05 [end_date_ymd] => 2025-01-08 11:36:05 [RateCDR] => 1 ) [2025-01-08 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:36:05' and `end` < '2025-01-08 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:36:25] Production.INFO: count ==4532 [2025-01-08 11:36:27] Production.ERROR: pbx CDR StartTime 2025-01-08 08:36:05 - End Time 2025-01-08 11:36:05 [2025-01-08 11:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201972', 'tblTempUsageDetail_20' ) start [2025-01-08 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201972', 'tblTempUsageDetail_20' ) end [2025-01-08 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201972', 'tblTempVendorCDR_20' ) start [2025-01-08 11:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201972', 'tblTempVendorCDR_20' ) end [2025-01-08 11:36:27] Production.INFO: ProcessCDR(1,14201972,1,1,2) [2025-01-08 11:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201972', 'tblTempUsageDetail_20' ) start [2025-01-08 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201972', 'tblTempUsageDetail_20' ) end [2025-01-08 11:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:36:31] Production.INFO: ==879== Releasing lock... [2025-01-08 11:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:36:31] Production.INFO: 62 MB #Memory Used# [2025-01-08 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:37:05 [end_date_ymd] => 2025-01-08 11:37:05 [RateCDR] => 1 ) [2025-01-08 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:37:05' and `end` < '2025-01-08 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:37:27] Production.INFO: count ==4546 [2025-01-08 11:37:29] Production.ERROR: pbx CDR StartTime 2025-01-08 08:37:05 - End Time 2025-01-08 11:37:05 [2025-01-08 11:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201977', 'tblTempUsageDetail_20' ) start [2025-01-08 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201977', 'tblTempUsageDetail_20' ) end [2025-01-08 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201977', 'tblTempVendorCDR_20' ) start [2025-01-08 11:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201977', 'tblTempVendorCDR_20' ) end [2025-01-08 11:37:29] Production.INFO: ProcessCDR(1,14201977,1,1,2) [2025-01-08 11:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201977', 'tblTempUsageDetail_20' ) start [2025-01-08 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201977', 'tblTempUsageDetail_20' ) end [2025-01-08 11:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:37:33] Production.INFO: ==949== Releasing lock... [2025-01-08 11:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:37:33] Production.INFO: 62 MB #Memory Used# [2025-01-08 11:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:38:04 [end_date_ymd] => 2025-01-08 11:38:04 [RateCDR] => 1 ) [2025-01-08 11:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:38:04' and `end` < '2025-01-08 11:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:38:21] Production.INFO: count ==4552 [2025-01-08 11:38:23] Production.ERROR: pbx CDR StartTime 2025-01-08 08:38:04 - End Time 2025-01-08 11:38:04 [2025-01-08 11:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201982', 'tblTempUsageDetail_20' ) start [2025-01-08 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201982', 'tblTempUsageDetail_20' ) end [2025-01-08 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201982', 'tblTempVendorCDR_20' ) start [2025-01-08 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201982', 'tblTempVendorCDR_20' ) end [2025-01-08 11:38:23] Production.INFO: ProcessCDR(1,14201982,1,1,2) [2025-01-08 11:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201982', 'tblTempUsageDetail_20' ) start [2025-01-08 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201982', 'tblTempUsageDetail_20' ) end [2025-01-08 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:38:28] Production.INFO: ==1019== Releasing lock... [2025-01-08 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:38:28] Production.INFO: 62 MB #Memory Used# [2025-01-08 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:39:05 [end_date_ymd] => 2025-01-08 11:39:05 [RateCDR] => 1 ) [2025-01-08 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:39:05' and `end` < '2025-01-08 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:39:19] Production.INFO: count ==4557 [2025-01-08 11:39:21] Production.ERROR: pbx CDR StartTime 2025-01-08 08:39:05 - End Time 2025-01-08 11:39:05 [2025-01-08 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201987', 'tblTempUsageDetail_20' ) start [2025-01-08 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201987', 'tblTempUsageDetail_20' ) end [2025-01-08 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201987', 'tblTempVendorCDR_20' ) start [2025-01-08 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201987', 'tblTempVendorCDR_20' ) end [2025-01-08 11:39:21] Production.INFO: ProcessCDR(1,14201987,1,1,2) [2025-01-08 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201987', 'tblTempUsageDetail_20' ) start [2025-01-08 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201987', 'tblTempUsageDetail_20' ) end [2025-01-08 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:39:26] Production.INFO: ==1092== Releasing lock... [2025-01-08 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:39:26] Production.INFO: 62 MB #Memory Used# [2025-01-08 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:40:05 [end_date_ymd] => 2025-01-08 11:40:05 [RateCDR] => 1 ) [2025-01-08 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:40:05' and `end` < '2025-01-08 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:40:25] Production.INFO: count ==4579 [2025-01-08 11:40:27] Production.ERROR: pbx CDR StartTime 2025-01-08 08:40:05 - End Time 2025-01-08 11:40:05 [2025-01-08 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201993', 'tblTempUsageDetail_20' ) start [2025-01-08 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201993', 'tblTempUsageDetail_20' ) end [2025-01-08 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201993', 'tblTempVendorCDR_20' ) start [2025-01-08 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201993', 'tblTempVendorCDR_20' ) end [2025-01-08 11:40:27] Production.INFO: ProcessCDR(1,14201993,1,1,2) [2025-01-08 11:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201993', 'tblTempUsageDetail_20' ) start [2025-01-08 11:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201993', 'tblTempUsageDetail_20' ) end [2025-01-08 11:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:40:32] Production.INFO: ==1172== Releasing lock... [2025-01-08 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:40:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-08 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:41:04 [end_date_ymd] => 2025-01-08 11:41:04 [RateCDR] => 1 ) [2025-01-08 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:41:04' and `end` < '2025-01-08 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:41:25] Production.INFO: count ==4698 [2025-01-08 11:41:27] Production.ERROR: pbx CDR StartTime 2025-01-08 08:41:04 - End Time 2025-01-08 11:41:04 [2025-01-08 11:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201998', 'tblTempUsageDetail_20' ) start [2025-01-08 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14201998', 'tblTempUsageDetail_20' ) end [2025-01-08 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201998', 'tblTempVendorCDR_20' ) start [2025-01-08 11:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14201998', 'tblTempVendorCDR_20' ) end [2025-01-08 11:41:27] Production.INFO: ProcessCDR(1,14201998,1,1,2) [2025-01-08 11:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14201998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14201998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14201998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14201998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201998', 'tblTempUsageDetail_20' ) start [2025-01-08 11:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14201998', 'tblTempUsageDetail_20' ) end [2025-01-08 11:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:41:32] Production.INFO: ==1255== Releasing lock... [2025-01-08 11:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:41:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-08 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:42:05 [end_date_ymd] => 2025-01-08 11:42:05 [RateCDR] => 1 ) [2025-01-08 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:42:05' and `end` < '2025-01-08 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:42:22] Production.INFO: count ==4713 [2025-01-08 11:42:24] Production.ERROR: pbx CDR StartTime 2025-01-08 08:42:05 - End Time 2025-01-08 11:42:05 [2025-01-08 11:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202003', 'tblTempUsageDetail_20' ) start [2025-01-08 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202003', 'tblTempUsageDetail_20' ) end [2025-01-08 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202003', 'tblTempVendorCDR_20' ) start [2025-01-08 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202003', 'tblTempVendorCDR_20' ) end [2025-01-08 11:42:24] Production.INFO: ProcessCDR(1,14202003,1,1,2) [2025-01-08 11:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202003', 'tblTempUsageDetail_20' ) start [2025-01-08 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202003', 'tblTempUsageDetail_20' ) end [2025-01-08 11:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:42:29] Production.INFO: ==1328== Releasing lock... [2025-01-08 11:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:42:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-08 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:43:04 [end_date_ymd] => 2025-01-08 11:43:04 [RateCDR] => 1 ) [2025-01-08 11:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:43:04' and `end` < '2025-01-08 11:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:43:21] Production.INFO: count ==4704 [2025-01-08 11:43:23] Production.ERROR: pbx CDR StartTime 2025-01-08 08:43:04 - End Time 2025-01-08 11:43:04 [2025-01-08 11:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202008', 'tblTempUsageDetail_20' ) start [2025-01-08 11:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202008', 'tblTempUsageDetail_20' ) end [2025-01-08 11:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202008', 'tblTempVendorCDR_20' ) start [2025-01-08 11:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202008', 'tblTempVendorCDR_20' ) end [2025-01-08 11:43:23] Production.INFO: ProcessCDR(1,14202008,1,1,2) [2025-01-08 11:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202008', 'tblTempUsageDetail_20' ) start [2025-01-08 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202008', 'tblTempUsageDetail_20' ) end [2025-01-08 11:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:43:28] Production.INFO: ==1397== Releasing lock... [2025-01-08 11:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:43:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-08 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:44:05 [end_date_ymd] => 2025-01-08 11:44:05 [RateCDR] => 1 ) [2025-01-08 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:44:05' and `end` < '2025-01-08 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:44:29] Production.INFO: count ==4744 [2025-01-08 11:44:31] Production.ERROR: pbx CDR StartTime 2025-01-08 08:44:05 - End Time 2025-01-08 11:44:05 [2025-01-08 11:44:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202013', 'tblTempUsageDetail_20' ) start [2025-01-08 11:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202013', 'tblTempUsageDetail_20' ) end [2025-01-08 11:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202013', 'tblTempVendorCDR_20' ) start [2025-01-08 11:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202013', 'tblTempVendorCDR_20' ) end [2025-01-08 11:44:31] Production.INFO: ProcessCDR(1,14202013,1,1,2) [2025-01-08 11:44:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202013', 'tblTempUsageDetail_20' ) start [2025-01-08 11:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202013', 'tblTempUsageDetail_20' ) end [2025-01-08 11:44:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:44:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:44:36] Production.INFO: ==1473== Releasing lock... [2025-01-08 11:44:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:44:36] Production.INFO: 63.5 MB #Memory Used# [2025-01-08 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:45:05 [end_date_ymd] => 2025-01-08 11:45:05 [RateCDR] => 1 ) [2025-01-08 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:45:05' and `end` < '2025-01-08 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:45:40] Production.INFO: count ==4793 [2025-01-08 11:45:42] Production.ERROR: pbx CDR StartTime 2025-01-08 08:45:05 - End Time 2025-01-08 11:45:05 [2025-01-08 11:45:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:45:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202018', 'tblTempUsageDetail_20' ) start [2025-01-08 11:45:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202018', 'tblTempUsageDetail_20' ) end [2025-01-08 11:45:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202018', 'tblTempVendorCDR_20' ) start [2025-01-08 11:45:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202018', 'tblTempVendorCDR_20' ) end [2025-01-08 11:45:42] Production.INFO: ProcessCDR(1,14202018,1,1,2) [2025-01-08 11:45:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:45:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:45:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:45:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:45:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202018', 'tblTempUsageDetail_20' ) start [2025-01-08 11:45:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202018', 'tblTempUsageDetail_20' ) end [2025-01-08 11:45:47] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:45:47] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:45:47] Production.INFO: ==1582== Releasing lock... [2025-01-08 11:45:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:45:47] Production.INFO: 64 MB #Memory Used# [2025-01-08 11:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:46:04 [end_date_ymd] => 2025-01-08 11:46:04 [RateCDR] => 1 ) [2025-01-08 11:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:46:04' and `end` < '2025-01-08 11:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:46:24] Production.INFO: count ==4804 [2025-01-08 11:46:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:46:04 - End Time 2025-01-08 11:46:04 [2025-01-08 11:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202023', 'tblTempUsageDetail_20' ) start [2025-01-08 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202023', 'tblTempUsageDetail_20' ) end [2025-01-08 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202023', 'tblTempVendorCDR_20' ) start [2025-01-08 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202023', 'tblTempVendorCDR_20' ) end [2025-01-08 11:46:26] Production.INFO: ProcessCDR(1,14202023,1,1,2) [2025-01-08 11:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202023', 'tblTempUsageDetail_20' ) start [2025-01-08 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202023', 'tblTempUsageDetail_20' ) end [2025-01-08 11:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:46:30] Production.INFO: ==1652== Releasing lock... [2025-01-08 11:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:46:30] Production.INFO: 64 MB #Memory Used# [2025-01-08 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:47:05 [end_date_ymd] => 2025-01-08 11:47:05 [RateCDR] => 1 ) [2025-01-08 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:47:05' and `end` < '2025-01-08 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:47:25] Production.INFO: count ==4820 [2025-01-08 11:47:27] Production.ERROR: pbx CDR StartTime 2025-01-08 08:47:05 - End Time 2025-01-08 11:47:05 [2025-01-08 11:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202028', 'tblTempUsageDetail_20' ) start [2025-01-08 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202028', 'tblTempUsageDetail_20' ) end [2025-01-08 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202028', 'tblTempVendorCDR_20' ) start [2025-01-08 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202028', 'tblTempVendorCDR_20' ) end [2025-01-08 11:47:27] Production.INFO: ProcessCDR(1,14202028,1,1,2) [2025-01-08 11:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202028', 'tblTempUsageDetail_20' ) start [2025-01-08 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202028', 'tblTempUsageDetail_20' ) end [2025-01-08 11:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:47:32] Production.INFO: ==1727== Releasing lock... [2025-01-08 11:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:47:32] Production.INFO: 64 MB #Memory Used# [2025-01-08 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:48:05 [end_date_ymd] => 2025-01-08 11:48:05 [RateCDR] => 1 ) [2025-01-08 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:48:05' and `end` < '2025-01-08 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:48:33] Production.INFO: count ==4822 [2025-01-08 11:48:35] Production.ERROR: pbx CDR StartTime 2025-01-08 08:48:05 - End Time 2025-01-08 11:48:05 [2025-01-08 11:48:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202033', 'tblTempUsageDetail_20' ) start [2025-01-08 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202033', 'tblTempUsageDetail_20' ) end [2025-01-08 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202033', 'tblTempVendorCDR_20' ) start [2025-01-08 11:48:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202033', 'tblTempVendorCDR_20' ) end [2025-01-08 11:48:35] Production.INFO: ProcessCDR(1,14202033,1,1,2) [2025-01-08 11:48:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:48:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:48:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:48:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202033', 'tblTempUsageDetail_20' ) start [2025-01-08 11:48:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202033', 'tblTempUsageDetail_20' ) end [2025-01-08 11:48:40] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:48:40] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:48:40] Production.INFO: ==1852== Releasing lock... [2025-01-08 11:48:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:48:40] Production.INFO: 64 MB #Memory Used# [2025-01-08 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:49:05 [end_date_ymd] => 2025-01-08 11:49:05 [RateCDR] => 1 ) [2025-01-08 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:49:05' and `end` < '2025-01-08 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:49:27] Production.INFO: count ==4827 [2025-01-08 11:49:29] Production.ERROR: pbx CDR StartTime 2025-01-08 08:49:05 - End Time 2025-01-08 11:49:05 [2025-01-08 11:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202038', 'tblTempUsageDetail_20' ) start [2025-01-08 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202038', 'tblTempUsageDetail_20' ) end [2025-01-08 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202038', 'tblTempVendorCDR_20' ) start [2025-01-08 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202038', 'tblTempVendorCDR_20' ) end [2025-01-08 11:49:29] Production.INFO: ProcessCDR(1,14202038,1,1,2) [2025-01-08 11:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202038', 'tblTempUsageDetail_20' ) start [2025-01-08 11:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202038', 'tblTempUsageDetail_20' ) end [2025-01-08 11:49:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:49:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:49:34] Production.INFO: ==1935== Releasing lock... [2025-01-08 11:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:49:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:50:05 [end_date_ymd] => 2025-01-08 11:50:05 [RateCDR] => 1 ) [2025-01-08 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:50:05' and `end` < '2025-01-08 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:50:26] Production.INFO: count ==4876 [2025-01-08 11:50:28] Production.ERROR: pbx CDR StartTime 2025-01-08 08:50:05 - End Time 2025-01-08 11:50:05 [2025-01-08 11:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202043', 'tblTempUsageDetail_20' ) start [2025-01-08 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202043', 'tblTempUsageDetail_20' ) end [2025-01-08 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202043', 'tblTempVendorCDR_20' ) start [2025-01-08 11:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202043', 'tblTempVendorCDR_20' ) end [2025-01-08 11:50:28] Production.INFO: ProcessCDR(1,14202043,1,1,2) [2025-01-08 11:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202043', 'tblTempUsageDetail_20' ) start [2025-01-08 11:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202043', 'tblTempUsageDetail_20' ) end [2025-01-08 11:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:50:33] Production.INFO: ==2031== Releasing lock... [2025-01-08 11:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:50:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:51:05 [end_date_ymd] => 2025-01-08 11:51:05 [RateCDR] => 1 ) [2025-01-08 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:51:05' and `end` < '2025-01-08 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:51:24] Production.INFO: count ==4952 [2025-01-08 11:51:26] Production.ERROR: pbx CDR StartTime 2025-01-08 08:51:05 - End Time 2025-01-08 11:51:05 [2025-01-08 11:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202049', 'tblTempUsageDetail_20' ) start [2025-01-08 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202049', 'tblTempUsageDetail_20' ) end [2025-01-08 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202049', 'tblTempVendorCDR_20' ) start [2025-01-08 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202049', 'tblTempVendorCDR_20' ) end [2025-01-08 11:51:26] Production.INFO: ProcessCDR(1,14202049,1,1,2) [2025-01-08 11:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202049', 'tblTempUsageDetail_20' ) start [2025-01-08 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202049', 'tblTempUsageDetail_20' ) end [2025-01-08 11:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:51:30] Production.INFO: ==2113== Releasing lock... [2025-01-08 11:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:51:30] Production.INFO: 65 MB #Memory Used# [2025-01-08 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:52:05 [end_date_ymd] => 2025-01-08 11:52:05 [RateCDR] => 1 ) [2025-01-08 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:52:05' and `end` < '2025-01-08 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:52:28] Production.INFO: count ==4970 [2025-01-08 11:52:30] Production.ERROR: pbx CDR StartTime 2025-01-08 08:52:05 - End Time 2025-01-08 11:52:05 [2025-01-08 11:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202054', 'tblTempUsageDetail_20' ) start [2025-01-08 11:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202054', 'tblTempUsageDetail_20' ) end [2025-01-08 11:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202054', 'tblTempVendorCDR_20' ) start [2025-01-08 11:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202054', 'tblTempVendorCDR_20' ) end [2025-01-08 11:52:30] Production.INFO: ProcessCDR(1,14202054,1,1,2) [2025-01-08 11:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202054', 'tblTempUsageDetail_20' ) start [2025-01-08 11:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202054', 'tblTempUsageDetail_20' ) end [2025-01-08 11:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:52:35] Production.INFO: ==2202== Releasing lock... [2025-01-08 11:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:52:35] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:53:04 [end_date_ymd] => 2025-01-08 11:53:04 [RateCDR] => 1 ) [2025-01-08 11:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:53:04' and `end` < '2025-01-08 11:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:53:29] Production.INFO: count ==5000 [2025-01-08 11:53:31] Production.ERROR: pbx CDR StartTime 2025-01-08 08:53:04 - End Time 2025-01-08 11:53:04 [2025-01-08 11:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202059', 'tblTempUsageDetail_20' ) start [2025-01-08 11:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202059', 'tblTempUsageDetail_20' ) end [2025-01-08 11:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202059', 'tblTempVendorCDR_20' ) start [2025-01-08 11:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202059', 'tblTempVendorCDR_20' ) end [2025-01-08 11:53:31] Production.INFO: ProcessCDR(1,14202059,1,1,2) [2025-01-08 11:53:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202059', 'tblTempUsageDetail_20' ) start [2025-01-08 11:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202059', 'tblTempUsageDetail_20' ) end [2025-01-08 11:53:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:53:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:53:36] Production.INFO: ==2296== Releasing lock... [2025-01-08 11:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:53:36] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:54:05 [end_date_ymd] => 2025-01-08 11:54:05 [RateCDR] => 1 ) [2025-01-08 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:54:05' and `end` < '2025-01-08 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:54:32] Production.INFO: count ==5035 [2025-01-08 11:54:34] Production.ERROR: pbx CDR StartTime 2025-01-08 08:54:05 - End Time 2025-01-08 11:54:05 [2025-01-08 11:54:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202064', 'tblTempUsageDetail_20' ) start [2025-01-08 11:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202064', 'tblTempUsageDetail_20' ) end [2025-01-08 11:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202064', 'tblTempVendorCDR_20' ) start [2025-01-08 11:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202064', 'tblTempVendorCDR_20' ) end [2025-01-08 11:54:34] Production.INFO: ProcessCDR(1,14202064,1,1,2) [2025-01-08 11:54:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:54:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:54:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:54:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202064', 'tblTempUsageDetail_20' ) start [2025-01-08 11:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202064', 'tblTempUsageDetail_20' ) end [2025-01-08 11:54:39] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:54:39] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:54:39] Production.INFO: ==2393== Releasing lock... [2025-01-08 11:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:54:39] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:55:05 [end_date_ymd] => 2025-01-08 11:55:05 [RateCDR] => 1 ) [2025-01-08 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:55:05' and `end` < '2025-01-08 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:55:36] Production.INFO: count ==5111 [2025-01-08 11:55:38] Production.ERROR: pbx CDR StartTime 2025-01-08 08:55:05 - End Time 2025-01-08 11:55:05 [2025-01-08 11:55:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202069', 'tblTempUsageDetail_20' ) start [2025-01-08 11:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202069', 'tblTempUsageDetail_20' ) end [2025-01-08 11:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202069', 'tblTempVendorCDR_20' ) start [2025-01-08 11:55:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202069', 'tblTempVendorCDR_20' ) end [2025-01-08 11:55:38] Production.INFO: ProcessCDR(1,14202069,1,1,2) [2025-01-08 11:55:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:55:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:55:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:55:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:55:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202069', 'tblTempUsageDetail_20' ) start [2025-01-08 11:55:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202069', 'tblTempUsageDetail_20' ) end [2025-01-08 11:55:43] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:55:43] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:55:43] Production.INFO: ==2483== Releasing lock... [2025-01-08 11:55:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:55:43] Production.INFO: 66.25 MB #Memory Used# [2025-01-08 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:56:04 [end_date_ymd] => 2025-01-08 11:56:04 [RateCDR] => 1 ) [2025-01-08 11:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:56:04' and `end` < '2025-01-08 11:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:56:25] Production.INFO: count ==5142 [2025-01-08 11:56:27] Production.ERROR: pbx CDR StartTime 2025-01-08 08:56:04 - End Time 2025-01-08 11:56:04 [2025-01-08 11:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202074', 'tblTempUsageDetail_20' ) start [2025-01-08 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202074', 'tblTempUsageDetail_20' ) end [2025-01-08 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202074', 'tblTempVendorCDR_20' ) start [2025-01-08 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202074', 'tblTempVendorCDR_20' ) end [2025-01-08 11:56:27] Production.INFO: ProcessCDR(1,14202074,1,1,2) [2025-01-08 11:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202074', 'tblTempUsageDetail_20' ) start [2025-01-08 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202074', 'tblTempUsageDetail_20' ) end [2025-01-08 11:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:56:32] Production.INFO: ==2578== Releasing lock... [2025-01-08 11:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:56:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 11:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:57:04 [end_date_ymd] => 2025-01-08 11:57:04 [RateCDR] => 1 ) [2025-01-08 11:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:57:04' and `end` < '2025-01-08 11:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:57:28] Production.INFO: count ==5144 [2025-01-08 11:57:30] Production.ERROR: pbx CDR StartTime 2025-01-08 08:57:04 - End Time 2025-01-08 11:57:04 [2025-01-08 11:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202079', 'tblTempUsageDetail_20' ) start [2025-01-08 11:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202079', 'tblTempUsageDetail_20' ) end [2025-01-08 11:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202079', 'tblTempVendorCDR_20' ) start [2025-01-08 11:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202079', 'tblTempVendorCDR_20' ) end [2025-01-08 11:57:30] Production.INFO: ProcessCDR(1,14202079,1,1,2) [2025-01-08 11:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202079', 'tblTempUsageDetail_20' ) start [2025-01-08 11:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202079', 'tblTempUsageDetail_20' ) end [2025-01-08 11:57:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:57:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:57:35] Production.INFO: ==2674== Releasing lock... [2025-01-08 11:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:57:35] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 11:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:58:04 [end_date_ymd] => 2025-01-08 11:58:04 [RateCDR] => 1 ) [2025-01-08 11:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:58:04' and `end` < '2025-01-08 11:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:58:21] Production.INFO: count ==5146 [2025-01-08 11:58:23] Production.ERROR: pbx CDR StartTime 2025-01-08 08:58:04 - End Time 2025-01-08 11:58:04 [2025-01-08 11:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202084', 'tblTempUsageDetail_20' ) start [2025-01-08 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202084', 'tblTempUsageDetail_20' ) end [2025-01-08 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202084', 'tblTempVendorCDR_20' ) start [2025-01-08 11:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202084', 'tblTempVendorCDR_20' ) end [2025-01-08 11:58:23] Production.INFO: ProcessCDR(1,14202084,1,1,2) [2025-01-08 11:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202084', 'tblTempUsageDetail_20' ) start [2025-01-08 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202084', 'tblTempUsageDetail_20' ) end [2025-01-08 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:58:26] Production.INFO: ==2771== Releasing lock... [2025-01-08 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:58:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 08:59:06 [end_date_ymd] => 2025-01-08 11:59:06 [RateCDR] => 1 ) [2025-01-08 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 08:59:06' and `end` < '2025-01-08 11:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 11:59:21] Production.INFO: count ==5125 [2025-01-08 11:59:23] Production.ERROR: pbx CDR StartTime 2025-01-08 08:59:06 - End Time 2025-01-08 11:59:06 [2025-01-08 11:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202089', 'tblTempUsageDetail_20' ) start [2025-01-08 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202089', 'tblTempUsageDetail_20' ) end [2025-01-08 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202089', 'tblTempVendorCDR_20' ) start [2025-01-08 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202089', 'tblTempVendorCDR_20' ) end [2025-01-08 11:59:23] Production.INFO: ProcessCDR(1,14202089,1,1,2) [2025-01-08 11:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 11:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202089', 'tblTempUsageDetail_20' ) start [2025-01-08 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202089', 'tblTempUsageDetail_20' ) end [2025-01-08 11:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 11:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 11:59:28] Production.INFO: ==2864== Releasing lock... [2025-01-08 11:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 11:59:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:00:05 [end_date_ymd] => 2025-01-08 12:00:05 [RateCDR] => 1 ) [2025-01-08 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:00:05' and `end` < '2025-01-08 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:00:36] Production.INFO: count ==5137 [2025-01-08 12:00:38] Production.ERROR: pbx CDR StartTime 2025-01-08 09:00:05 - End Time 2025-01-08 12:00:05 [2025-01-08 12:00:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202095', 'tblTempUsageDetail_20' ) start [2025-01-08 12:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202095', 'tblTempUsageDetail_20' ) end [2025-01-08 12:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202095', 'tblTempVendorCDR_20' ) start [2025-01-08 12:00:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202095', 'tblTempVendorCDR_20' ) end [2025-01-08 12:00:38] Production.INFO: ProcessCDR(1,14202095,1,1,2) [2025-01-08 12:00:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:00:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:00:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:00:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:00:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202095', 'tblTempUsageDetail_20' ) start [2025-01-08 12:00:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202095', 'tblTempUsageDetail_20' ) end [2025-01-08 12:00:43] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:00:43] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:00:43] Production.INFO: ==2961== Releasing lock... [2025-01-08 12:00:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:00:43] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:01:04 [end_date_ymd] => 2025-01-08 12:01:04 [RateCDR] => 1 ) [2025-01-08 12:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:01:04' and `end` < '2025-01-08 12:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:01:21] Production.INFO: count ==5179 [2025-01-08 12:01:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:01:04 - End Time 2025-01-08 12:01:04 [2025-01-08 12:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202100', 'tblTempUsageDetail_20' ) start [2025-01-08 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202100', 'tblTempUsageDetail_20' ) end [2025-01-08 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202100', 'tblTempVendorCDR_20' ) start [2025-01-08 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202100', 'tblTempVendorCDR_20' ) end [2025-01-08 12:01:23] Production.INFO: ProcessCDR(1,14202100,1,1,2) [2025-01-08 12:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202100', 'tblTempUsageDetail_20' ) start [2025-01-08 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202100', 'tblTempUsageDetail_20' ) end [2025-01-08 12:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:01:28] Production.INFO: ==3083== Releasing lock... [2025-01-08 12:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:01:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-08 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:02:05 [end_date_ymd] => 2025-01-08 12:02:05 [RateCDR] => 1 ) [2025-01-08 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:02:05' and `end` < '2025-01-08 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:02:21] Production.INFO: count ==5182 [2025-01-08 12:02:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:02:05 - End Time 2025-01-08 12:02:05 [2025-01-08 12:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202105', 'tblTempUsageDetail_20' ) start [2025-01-08 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202105', 'tblTempUsageDetail_20' ) end [2025-01-08 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202105', 'tblTempVendorCDR_20' ) start [2025-01-08 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202105', 'tblTempVendorCDR_20' ) end [2025-01-08 12:02:23] Production.INFO: ProcessCDR(1,14202105,1,1,2) [2025-01-08 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202105', 'tblTempUsageDetail_20' ) start [2025-01-08 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202105', 'tblTempUsageDetail_20' ) end [2025-01-08 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:02:27] Production.INFO: ==3202== Releasing lock... [2025-01-08 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:02:27] Production.INFO: 66.75 MB #Memory Used# [2025-01-08 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:03:05 [end_date_ymd] => 2025-01-08 12:03:05 [RateCDR] => 1 ) [2025-01-08 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:03:05' and `end` < '2025-01-08 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:03:22] Production.INFO: count ==5235 [2025-01-08 12:03:25] Production.ERROR: pbx CDR StartTime 2025-01-08 09:03:05 - End Time 2025-01-08 12:03:05 [2025-01-08 12:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202110', 'tblTempUsageDetail_20' ) start [2025-01-08 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202110', 'tblTempUsageDetail_20' ) end [2025-01-08 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202110', 'tblTempVendorCDR_20' ) start [2025-01-08 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202110', 'tblTempVendorCDR_20' ) end [2025-01-08 12:03:25] Production.INFO: ProcessCDR(1,14202110,1,1,2) [2025-01-08 12:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202110', 'tblTempUsageDetail_20' ) start [2025-01-08 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202110', 'tblTempUsageDetail_20' ) end [2025-01-08 12:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:03:30] Production.INFO: ==3303== Releasing lock... [2025-01-08 12:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:03:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:04:05 [end_date_ymd] => 2025-01-08 12:04:05 [RateCDR] => 1 ) [2025-01-08 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:04:05' and `end` < '2025-01-08 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:04:23] Production.INFO: count ==5242 [2025-01-08 12:04:26] Production.ERROR: pbx CDR StartTime 2025-01-08 09:04:05 - End Time 2025-01-08 12:04:05 [2025-01-08 12:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202115', 'tblTempUsageDetail_20' ) start [2025-01-08 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202115', 'tblTempUsageDetail_20' ) end [2025-01-08 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202115', 'tblTempVendorCDR_20' ) start [2025-01-08 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202115', 'tblTempVendorCDR_20' ) end [2025-01-08 12:04:26] Production.INFO: ProcessCDR(1,14202115,1,1,2) [2025-01-08 12:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202115', 'tblTempUsageDetail_20' ) start [2025-01-08 12:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202115', 'tblTempUsageDetail_20' ) end [2025-01-08 12:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:04:31] Production.INFO: ==3453== Releasing lock... [2025-01-08 12:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:04:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:05:05 [end_date_ymd] => 2025-01-08 12:05:05 [RateCDR] => 1 ) [2025-01-08 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:05:05' and `end` < '2025-01-08 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:05:25] Production.INFO: count ==5241 [2025-01-08 12:05:27] Production.ERROR: pbx CDR StartTime 2025-01-08 09:05:05 - End Time 2025-01-08 12:05:05 [2025-01-08 12:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202120', 'tblTempUsageDetail_20' ) start [2025-01-08 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202120', 'tblTempUsageDetail_20' ) end [2025-01-08 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202120', 'tblTempVendorCDR_20' ) start [2025-01-08 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202120', 'tblTempVendorCDR_20' ) end [2025-01-08 12:05:28] Production.INFO: ProcessCDR(1,14202120,1,1,2) [2025-01-08 12:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202120', 'tblTempUsageDetail_20' ) start [2025-01-08 12:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202120', 'tblTempUsageDetail_20' ) end [2025-01-08 12:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:05:33] Production.INFO: ==3570== Releasing lock... [2025-01-08 12:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:05:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:06:05 [end_date_ymd] => 2025-01-08 12:06:05 [RateCDR] => 1 ) [2025-01-08 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:06:05' and `end` < '2025-01-08 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:06:28] Production.INFO: count ==5267 [2025-01-08 12:06:30] Production.ERROR: pbx CDR StartTime 2025-01-08 09:06:05 - End Time 2025-01-08 12:06:05 [2025-01-08 12:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202125', 'tblTempUsageDetail_20' ) start [2025-01-08 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202125', 'tblTempUsageDetail_20' ) end [2025-01-08 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202125', 'tblTempVendorCDR_20' ) start [2025-01-08 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202125', 'tblTempVendorCDR_20' ) end [2025-01-08 12:06:30] Production.INFO: ProcessCDR(1,14202125,1,1,2) [2025-01-08 12:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202125', 'tblTempUsageDetail_20' ) start [2025-01-08 12:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202125', 'tblTempUsageDetail_20' ) end [2025-01-08 12:06:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:06:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:06:35] Production.INFO: ==3677== Releasing lock... [2025-01-08 12:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:06:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:07:05 [end_date_ymd] => 2025-01-08 12:07:05 [RateCDR] => 1 ) [2025-01-08 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:07:05' and `end` < '2025-01-08 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:07:23] Production.INFO: count ==5256 [2025-01-08 12:07:25] Production.ERROR: pbx CDR StartTime 2025-01-08 09:07:05 - End Time 2025-01-08 12:07:05 [2025-01-08 12:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202130', 'tblTempUsageDetail_20' ) start [2025-01-08 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202130', 'tblTempUsageDetail_20' ) end [2025-01-08 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202130', 'tblTempVendorCDR_20' ) start [2025-01-08 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202130', 'tblTempVendorCDR_20' ) end [2025-01-08 12:07:25] Production.INFO: ProcessCDR(1,14202130,1,1,2) [2025-01-08 12:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202130', 'tblTempUsageDetail_20' ) start [2025-01-08 12:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202130', 'tblTempUsageDetail_20' ) end [2025-01-08 12:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:07:29] Production.INFO: ==3769== Releasing lock... [2025-01-08 12:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:07:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:08:05 [end_date_ymd] => 2025-01-08 12:08:05 [RateCDR] => 1 ) [2025-01-08 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:08:05' and `end` < '2025-01-08 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:08:23] Production.INFO: count ==5268 [2025-01-08 12:08:26] Production.ERROR: pbx CDR StartTime 2025-01-08 09:08:05 - End Time 2025-01-08 12:08:05 [2025-01-08 12:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202135', 'tblTempUsageDetail_20' ) start [2025-01-08 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202135', 'tblTempUsageDetail_20' ) end [2025-01-08 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202135', 'tblTempVendorCDR_20' ) start [2025-01-08 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202135', 'tblTempVendorCDR_20' ) end [2025-01-08 12:08:26] Production.INFO: ProcessCDR(1,14202135,1,1,2) [2025-01-08 12:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202135', 'tblTempUsageDetail_20' ) start [2025-01-08 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202135', 'tblTempUsageDetail_20' ) end [2025-01-08 12:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:08:31] Production.INFO: ==3875== Releasing lock... [2025-01-08 12:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:08:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:09:05 [end_date_ymd] => 2025-01-08 12:09:05 [RateCDR] => 1 ) [2025-01-08 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:09:05' and `end` < '2025-01-08 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:09:21] Production.INFO: count ==5258 [2025-01-08 12:09:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:09:05 - End Time 2025-01-08 12:09:05 [2025-01-08 12:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202140', 'tblTempUsageDetail_20' ) start [2025-01-08 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202140', 'tblTempUsageDetail_20' ) end [2025-01-08 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202140', 'tblTempVendorCDR_20' ) start [2025-01-08 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202140', 'tblTempVendorCDR_20' ) end [2025-01-08 12:09:23] Production.INFO: ProcessCDR(1,14202140,1,1,2) [2025-01-08 12:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202140', 'tblTempUsageDetail_20' ) start [2025-01-08 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202140', 'tblTempUsageDetail_20' ) end [2025-01-08 12:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:09:28] Production.INFO: ==3979== Releasing lock... [2025-01-08 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:09:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:10:06 [end_date_ymd] => 2025-01-08 12:10:06 [RateCDR] => 1 ) [2025-01-08 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:10:06' and `end` < '2025-01-08 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:10:20] Production.INFO: count ==5234 [2025-01-08 12:10:22] Production.ERROR: pbx CDR StartTime 2025-01-08 09:10:06 - End Time 2025-01-08 12:10:06 [2025-01-08 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202145', 'tblTempUsageDetail_20' ) start [2025-01-08 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202145', 'tblTempUsageDetail_20' ) end [2025-01-08 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202145', 'tblTempVendorCDR_20' ) start [2025-01-08 12:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202145', 'tblTempVendorCDR_20' ) end [2025-01-08 12:10:23] Production.INFO: ProcessCDR(1,14202145,1,1,2) [2025-01-08 12:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202145', 'tblTempUsageDetail_20' ) start [2025-01-08 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202145', 'tblTempUsageDetail_20' ) end [2025-01-08 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:10:27] Production.INFO: ==4087== Releasing lock... [2025-01-08 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:10:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:11:04 [end_date_ymd] => 2025-01-08 12:11:04 [RateCDR] => 1 ) [2025-01-08 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:11:04' and `end` < '2025-01-08 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:11:21] Production.INFO: count ==5272 [2025-01-08 12:11:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:11:04 - End Time 2025-01-08 12:11:04 [2025-01-08 12:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202151', 'tblTempUsageDetail_20' ) start [2025-01-08 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202151', 'tblTempUsageDetail_20' ) end [2025-01-08 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202151', 'tblTempVendorCDR_20' ) start [2025-01-08 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202151', 'tblTempVendorCDR_20' ) end [2025-01-08 12:11:23] Production.INFO: ProcessCDR(1,14202151,1,1,2) [2025-01-08 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202151', 'tblTempUsageDetail_20' ) start [2025-01-08 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202151', 'tblTempUsageDetail_20' ) end [2025-01-08 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:11:28] Production.INFO: ==4188== Releasing lock... [2025-01-08 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:11:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:12:05 [end_date_ymd] => 2025-01-08 12:12:05 [RateCDR] => 1 ) [2025-01-08 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:12:05' and `end` < '2025-01-08 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:12:34] Production.INFO: count ==5289 [2025-01-08 12:12:36] Production.ERROR: pbx CDR StartTime 2025-01-08 09:12:05 - End Time 2025-01-08 12:12:05 [2025-01-08 12:12:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202156', 'tblTempUsageDetail_20' ) start [2025-01-08 12:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202156', 'tblTempUsageDetail_20' ) end [2025-01-08 12:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202156', 'tblTempVendorCDR_20' ) start [2025-01-08 12:12:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202156', 'tblTempVendorCDR_20' ) end [2025-01-08 12:12:36] Production.INFO: ProcessCDR(1,14202156,1,1,2) [2025-01-08 12:12:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:12:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:12:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:12:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202156', 'tblTempUsageDetail_20' ) start [2025-01-08 12:12:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202156', 'tblTempUsageDetail_20' ) end [2025-01-08 12:12:41] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:12:41] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:12:41] Production.INFO: ==4288== Releasing lock... [2025-01-08 12:12:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:12:41] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:13:04 [end_date_ymd] => 2025-01-08 12:13:04 [RateCDR] => 1 ) [2025-01-08 12:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:13:04' and `end` < '2025-01-08 12:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:13:22] Production.INFO: count ==5259 [2025-01-08 12:13:24] Production.ERROR: pbx CDR StartTime 2025-01-08 09:13:04 - End Time 2025-01-08 12:13:04 [2025-01-08 12:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202161', 'tblTempUsageDetail_20' ) start [2025-01-08 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202161', 'tblTempUsageDetail_20' ) end [2025-01-08 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202161', 'tblTempVendorCDR_20' ) start [2025-01-08 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202161', 'tblTempVendorCDR_20' ) end [2025-01-08 12:13:25] Production.INFO: ProcessCDR(1,14202161,1,1,2) [2025-01-08 12:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202161', 'tblTempUsageDetail_20' ) start [2025-01-08 12:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202161', 'tblTempUsageDetail_20' ) end [2025-01-08 12:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:13:29] Production.INFO: ==4381== Releasing lock... [2025-01-08 12:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:13:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:14:05 [end_date_ymd] => 2025-01-08 12:14:05 [RateCDR] => 1 ) [2025-01-08 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:14:05' and `end` < '2025-01-08 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:14:24] Production.INFO: count ==5247 [2025-01-08 12:14:26] Production.ERROR: pbx CDR StartTime 2025-01-08 09:14:05 - End Time 2025-01-08 12:14:05 [2025-01-08 12:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202166', 'tblTempUsageDetail_20' ) start [2025-01-08 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202166', 'tblTempUsageDetail_20' ) end [2025-01-08 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202166', 'tblTempVendorCDR_20' ) start [2025-01-08 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202166', 'tblTempVendorCDR_20' ) end [2025-01-08 12:14:26] Production.INFO: ProcessCDR(1,14202166,1,1,2) [2025-01-08 12:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202166', 'tblTempUsageDetail_20' ) start [2025-01-08 12:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202166', 'tblTempUsageDetail_20' ) end [2025-01-08 12:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:14:31] Production.INFO: ==4469== Releasing lock... [2025-01-08 12:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:14:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:15:04 [end_date_ymd] => 2025-01-08 12:15:04 [RateCDR] => 1 ) [2025-01-08 12:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:15:04' and `end` < '2025-01-08 12:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:15:18] Production.INFO: count ==5251 [2025-01-08 12:15:20] Production.ERROR: pbx CDR StartTime 2025-01-08 09:15:04 - End Time 2025-01-08 12:15:04 [2025-01-08 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202171', 'tblTempUsageDetail_20' ) start [2025-01-08 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202171', 'tblTempUsageDetail_20' ) end [2025-01-08 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202171', 'tblTempVendorCDR_20' ) start [2025-01-08 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202171', 'tblTempVendorCDR_20' ) end [2025-01-08 12:15:20] Production.INFO: ProcessCDR(1,14202171,1,1,2) [2025-01-08 12:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202171', 'tblTempUsageDetail_20' ) start [2025-01-08 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202171', 'tblTempUsageDetail_20' ) end [2025-01-08 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:15:25] Production.INFO: ==4556== Releasing lock... [2025-01-08 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:15:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:16:04 [end_date_ymd] => 2025-01-08 12:16:04 [RateCDR] => 1 ) [2025-01-08 12:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:16:04' and `end` < '2025-01-08 12:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:16:23] Production.INFO: count ==5264 [2025-01-08 12:16:25] Production.ERROR: pbx CDR StartTime 2025-01-08 09:16:04 - End Time 2025-01-08 12:16:04 [2025-01-08 12:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202176', 'tblTempUsageDetail_20' ) start [2025-01-08 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202176', 'tblTempUsageDetail_20' ) end [2025-01-08 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202176', 'tblTempVendorCDR_20' ) start [2025-01-08 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202176', 'tblTempVendorCDR_20' ) end [2025-01-08 12:16:25] Production.INFO: ProcessCDR(1,14202176,1,1,2) [2025-01-08 12:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202176', 'tblTempUsageDetail_20' ) start [2025-01-08 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202176', 'tblTempUsageDetail_20' ) end [2025-01-08 12:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:16:30] Production.INFO: ==4649== Releasing lock... [2025-01-08 12:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:16:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:17:05 [end_date_ymd] => 2025-01-08 12:17:05 [RateCDR] => 1 ) [2025-01-08 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:17:05' and `end` < '2025-01-08 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:17:23] Production.INFO: count ==5280 [2025-01-08 12:17:25] Production.ERROR: pbx CDR StartTime 2025-01-08 09:17:05 - End Time 2025-01-08 12:17:05 [2025-01-08 12:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202181', 'tblTempUsageDetail_20' ) start [2025-01-08 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202181', 'tblTempUsageDetail_20' ) end [2025-01-08 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202181', 'tblTempVendorCDR_20' ) start [2025-01-08 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202181', 'tblTempVendorCDR_20' ) end [2025-01-08 12:17:25] Production.INFO: ProcessCDR(1,14202181,1,1,2) [2025-01-08 12:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202181', 'tblTempUsageDetail_20' ) start [2025-01-08 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202181', 'tblTempUsageDetail_20' ) end [2025-01-08 12:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:17:30] Production.INFO: ==4731== Releasing lock... [2025-01-08 12:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:17:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:18:05 [end_date_ymd] => 2025-01-08 12:18:05 [RateCDR] => 1 ) [2025-01-08 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:18:05' and `end` < '2025-01-08 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:18:21] Production.INFO: count ==5261 [2025-01-08 12:18:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:18:05 - End Time 2025-01-08 12:18:05 [2025-01-08 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202186', 'tblTempUsageDetail_20' ) start [2025-01-08 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202186', 'tblTempUsageDetail_20' ) end [2025-01-08 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202186', 'tblTempVendorCDR_20' ) start [2025-01-08 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202186', 'tblTempVendorCDR_20' ) end [2025-01-08 12:18:23] Production.INFO: ProcessCDR(1,14202186,1,1,2) [2025-01-08 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202186', 'tblTempUsageDetail_20' ) start [2025-01-08 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202186', 'tblTempUsageDetail_20' ) end [2025-01-08 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:18:28] Production.INFO: ==4827== Releasing lock... [2025-01-08 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:18:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:19:05 [end_date_ymd] => 2025-01-08 12:19:05 [RateCDR] => 1 ) [2025-01-08 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:19:05' and `end` < '2025-01-08 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:19:24] Production.INFO: count ==5270 [2025-01-08 12:19:26] Production.ERROR: pbx CDR StartTime 2025-01-08 09:19:05 - End Time 2025-01-08 12:19:05 [2025-01-08 12:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202191', 'tblTempUsageDetail_20' ) start [2025-01-08 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202191', 'tblTempUsageDetail_20' ) end [2025-01-08 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202191', 'tblTempVendorCDR_20' ) start [2025-01-08 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202191', 'tblTempVendorCDR_20' ) end [2025-01-08 12:19:26] Production.INFO: ProcessCDR(1,14202191,1,1,2) [2025-01-08 12:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202191', 'tblTempUsageDetail_20' ) start [2025-01-08 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202191', 'tblTempUsageDetail_20' ) end [2025-01-08 12:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:19:30] Production.INFO: ==4947== Releasing lock... [2025-01-08 12:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:19:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:20:05 [end_date_ymd] => 2025-01-08 12:20:05 [RateCDR] => 1 ) [2025-01-08 12:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:20:05' and `end` < '2025-01-08 12:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:20:22] Production.INFO: count ==5283 [2025-01-08 12:20:24] Production.ERROR: pbx CDR StartTime 2025-01-08 09:20:05 - End Time 2025-01-08 12:20:05 [2025-01-08 12:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202196', 'tblTempUsageDetail_20' ) start [2025-01-08 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202196', 'tblTempUsageDetail_20' ) end [2025-01-08 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202196', 'tblTempVendorCDR_20' ) start [2025-01-08 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202196', 'tblTempVendorCDR_20' ) end [2025-01-08 12:20:24] Production.INFO: ProcessCDR(1,14202196,1,1,2) [2025-01-08 12:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202196', 'tblTempUsageDetail_20' ) start [2025-01-08 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202196', 'tblTempUsageDetail_20' ) end [2025-01-08 12:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:20:29] Production.INFO: ==5029== Releasing lock... [2025-01-08 12:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:20:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:21:05 [end_date_ymd] => 2025-01-08 12:21:05 [RateCDR] => 1 ) [2025-01-08 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:21:05' and `end` < '2025-01-08 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:21:20] Production.INFO: count ==5309 [2025-01-08 12:21:22] Production.ERROR: pbx CDR StartTime 2025-01-08 09:21:05 - End Time 2025-01-08 12:21:05 [2025-01-08 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202202', 'tblTempUsageDetail_20' ) start [2025-01-08 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202202', 'tblTempUsageDetail_20' ) end [2025-01-08 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202202', 'tblTempVendorCDR_20' ) start [2025-01-08 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202202', 'tblTempVendorCDR_20' ) end [2025-01-08 12:21:23] Production.INFO: ProcessCDR(1,14202202,1,1,2) [2025-01-08 12:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202202', 'tblTempUsageDetail_20' ) start [2025-01-08 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202202', 'tblTempUsageDetail_20' ) end [2025-01-08 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:21:27] Production.INFO: ==5115== Releasing lock... [2025-01-08 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:21:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:22:04 [end_date_ymd] => 2025-01-08 12:22:04 [RateCDR] => 1 ) [2025-01-08 12:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:22:04' and `end` < '2025-01-08 12:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:22:27] Production.INFO: count ==5308 [2025-01-08 12:22:30] Production.ERROR: pbx CDR StartTime 2025-01-08 09:22:04 - End Time 2025-01-08 12:22:04 [2025-01-08 12:22:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202207', 'tblTempUsageDetail_20' ) start [2025-01-08 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202207', 'tblTempUsageDetail_20' ) end [2025-01-08 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202207', 'tblTempVendorCDR_20' ) start [2025-01-08 12:22:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202207', 'tblTempVendorCDR_20' ) end [2025-01-08 12:22:30] Production.INFO: ProcessCDR(1,14202207,1,1,2) [2025-01-08 12:22:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:22:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202207', 'tblTempUsageDetail_20' ) start [2025-01-08 12:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202207', 'tblTempUsageDetail_20' ) end [2025-01-08 12:22:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:22:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:22:35] Production.INFO: ==5190== Releasing lock... [2025-01-08 12:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:22:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:23:05 [end_date_ymd] => 2025-01-08 12:23:05 [RateCDR] => 1 ) [2025-01-08 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:23:05' and `end` < '2025-01-08 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:23:33] Production.INFO: count ==5306 [2025-01-08 12:23:35] Production.ERROR: pbx CDR StartTime 2025-01-08 09:23:05 - End Time 2025-01-08 12:23:05 [2025-01-08 12:23:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202212', 'tblTempUsageDetail_20' ) start [2025-01-08 12:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202212', 'tblTempUsageDetail_20' ) end [2025-01-08 12:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202212', 'tblTempVendorCDR_20' ) start [2025-01-08 12:23:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202212', 'tblTempVendorCDR_20' ) end [2025-01-08 12:23:35] Production.INFO: ProcessCDR(1,14202212,1,1,2) [2025-01-08 12:23:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:23:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:23:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:23:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:23:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202212', 'tblTempUsageDetail_20' ) start [2025-01-08 12:23:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202212', 'tblTempUsageDetail_20' ) end [2025-01-08 12:23:40] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:23:40] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:23:40] Production.INFO: ==5269== Releasing lock... [2025-01-08 12:23:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:23:40] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:24:04 [end_date_ymd] => 2025-01-08 12:24:04 [RateCDR] => 1 ) [2025-01-08 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:24:04' and `end` < '2025-01-08 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:24:28] Production.INFO: count ==5308 [2025-01-08 12:24:30] Production.ERROR: pbx CDR StartTime 2025-01-08 09:24:04 - End Time 2025-01-08 12:24:04 [2025-01-08 12:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202217', 'tblTempUsageDetail_20' ) start [2025-01-08 12:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202217', 'tblTempUsageDetail_20' ) end [2025-01-08 12:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202217', 'tblTempVendorCDR_20' ) start [2025-01-08 12:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202217', 'tblTempVendorCDR_20' ) end [2025-01-08 12:24:30] Production.INFO: ProcessCDR(1,14202217,1,1,2) [2025-01-08 12:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202217', 'tblTempUsageDetail_20' ) start [2025-01-08 12:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202217', 'tblTempUsageDetail_20' ) end [2025-01-08 12:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:24:35] Production.INFO: ==5343== Releasing lock... [2025-01-08 12:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:24:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:25:05 [end_date_ymd] => 2025-01-08 12:25:05 [RateCDR] => 1 ) [2025-01-08 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:25:05' and `end` < '2025-01-08 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:25:28] Production.INFO: count ==5310 [2025-01-08 12:25:30] Production.ERROR: pbx CDR StartTime 2025-01-08 09:25:05 - End Time 2025-01-08 12:25:05 [2025-01-08 12:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202222', 'tblTempUsageDetail_20' ) start [2025-01-08 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202222', 'tblTempUsageDetail_20' ) end [2025-01-08 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202222', 'tblTempVendorCDR_20' ) start [2025-01-08 12:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202222', 'tblTempVendorCDR_20' ) end [2025-01-08 12:25:30] Production.INFO: ProcessCDR(1,14202222,1,1,2) [2025-01-08 12:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202222', 'tblTempUsageDetail_20' ) start [2025-01-08 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202222', 'tblTempUsageDetail_20' ) end [2025-01-08 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:25:35] Production.INFO: ==5417== Releasing lock... [2025-01-08 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:25:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:26:05 [end_date_ymd] => 2025-01-08 12:26:05 [RateCDR] => 1 ) [2025-01-08 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:26:05' and `end` < '2025-01-08 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:26:20] Production.INFO: count ==5304 [2025-01-08 12:26:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:26:05 - End Time 2025-01-08 12:26:05 [2025-01-08 12:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202227', 'tblTempUsageDetail_20' ) start [2025-01-08 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202227', 'tblTempUsageDetail_20' ) end [2025-01-08 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202227', 'tblTempVendorCDR_20' ) start [2025-01-08 12:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202227', 'tblTempVendorCDR_20' ) end [2025-01-08 12:26:23] Production.INFO: ProcessCDR(1,14202227,1,1,2) [2025-01-08 12:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202227', 'tblTempUsageDetail_20' ) start [2025-01-08 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202227', 'tblTempUsageDetail_20' ) end [2025-01-08 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:26:28] Production.INFO: ==5493== Releasing lock... [2025-01-08 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:26:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:27:05 [end_date_ymd] => 2025-01-08 12:27:05 [RateCDR] => 1 ) [2025-01-08 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:27:05' and `end` < '2025-01-08 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:27:21] Production.INFO: count ==5287 [2025-01-08 12:27:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:27:05 - End Time 2025-01-08 12:27:05 [2025-01-08 12:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202232', 'tblTempUsageDetail_20' ) start [2025-01-08 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202232', 'tblTempUsageDetail_20' ) end [2025-01-08 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202232', 'tblTempVendorCDR_20' ) start [2025-01-08 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202232', 'tblTempVendorCDR_20' ) end [2025-01-08 12:27:24] Production.INFO: ProcessCDR(1,14202232,1,1,2) [2025-01-08 12:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202232', 'tblTempUsageDetail_20' ) start [2025-01-08 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202232', 'tblTempUsageDetail_20' ) end [2025-01-08 12:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:27:28] Production.INFO: ==5568== Releasing lock... [2025-01-08 12:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:27:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:28:06 [end_date_ymd] => 2025-01-08 12:28:06 [RateCDR] => 1 ) [2025-01-08 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:28:06' and `end` < '2025-01-08 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:28:30] Production.INFO: count ==5309 [2025-01-08 12:28:32] Production.ERROR: pbx CDR StartTime 2025-01-08 09:28:06 - End Time 2025-01-08 12:28:06 [2025-01-08 12:28:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202237', 'tblTempUsageDetail_20' ) start [2025-01-08 12:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202237', 'tblTempUsageDetail_20' ) end [2025-01-08 12:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202237', 'tblTempVendorCDR_20' ) start [2025-01-08 12:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202237', 'tblTempVendorCDR_20' ) end [2025-01-08 12:28:32] Production.INFO: ProcessCDR(1,14202237,1,1,2) [2025-01-08 12:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:28:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:28:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:28:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202237', 'tblTempUsageDetail_20' ) start [2025-01-08 12:28:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202237', 'tblTempUsageDetail_20' ) end [2025-01-08 12:28:37] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:28:37] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:28:37] Production.INFO: ==5640== Releasing lock... [2025-01-08 12:28:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:28:37] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:29:05 [end_date_ymd] => 2025-01-08 12:29:05 [RateCDR] => 1 ) [2025-01-08 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:29:05' and `end` < '2025-01-08 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:29:23] Production.INFO: count ==5308 [2025-01-08 12:29:25] Production.ERROR: pbx CDR StartTime 2025-01-08 09:29:05 - End Time 2025-01-08 12:29:05 [2025-01-08 12:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202242', 'tblTempUsageDetail_20' ) start [2025-01-08 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202242', 'tblTempUsageDetail_20' ) end [2025-01-08 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202242', 'tblTempVendorCDR_20' ) start [2025-01-08 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202242', 'tblTempVendorCDR_20' ) end [2025-01-08 12:29:25] Production.INFO: ProcessCDR(1,14202242,1,1,2) [2025-01-08 12:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202242', 'tblTempUsageDetail_20' ) start [2025-01-08 12:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202242', 'tblTempUsageDetail_20' ) end [2025-01-08 12:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:29:29] Production.INFO: ==5714== Releasing lock... [2025-01-08 12:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:29:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:30:05 [end_date_ymd] => 2025-01-08 12:30:05 [RateCDR] => 1 ) [2025-01-08 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:30:05' and `end` < '2025-01-08 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:30:23] Production.INFO: count ==5305 [2025-01-08 12:30:25] Production.ERROR: pbx CDR StartTime 2025-01-08 09:30:05 - End Time 2025-01-08 12:30:05 [2025-01-08 12:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202248', 'tblTempUsageDetail_20' ) start [2025-01-08 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202248', 'tblTempUsageDetail_20' ) end [2025-01-08 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202248', 'tblTempVendorCDR_20' ) start [2025-01-08 12:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202248', 'tblTempVendorCDR_20' ) end [2025-01-08 12:30:25] Production.INFO: ProcessCDR(1,14202248,1,1,2) [2025-01-08 12:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202248', 'tblTempUsageDetail_20' ) start [2025-01-08 12:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202248', 'tblTempUsageDetail_20' ) end [2025-01-08 12:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:30:30] Production.INFO: ==5788== Releasing lock... [2025-01-08 12:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:30:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:31:05 [end_date_ymd] => 2025-01-08 12:31:05 [RateCDR] => 1 ) [2025-01-08 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:31:05' and `end` < '2025-01-08 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:31:19] Production.INFO: count ==5320 [2025-01-08 12:31:21] Production.ERROR: pbx CDR StartTime 2025-01-08 09:31:05 - End Time 2025-01-08 12:31:05 [2025-01-08 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202253', 'tblTempUsageDetail_20' ) start [2025-01-08 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202253', 'tblTempUsageDetail_20' ) end [2025-01-08 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202253', 'tblTempVendorCDR_20' ) start [2025-01-08 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202253', 'tblTempVendorCDR_20' ) end [2025-01-08 12:31:21] Production.INFO: ProcessCDR(1,14202253,1,1,2) [2025-01-08 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202253', 'tblTempUsageDetail_20' ) start [2025-01-08 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202253', 'tblTempUsageDetail_20' ) end [2025-01-08 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:31:26] Production.INFO: ==5866== Releasing lock... [2025-01-08 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:31:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:32:05 [end_date_ymd] => 2025-01-08 12:32:05 [RateCDR] => 1 ) [2025-01-08 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:32:05' and `end` < '2025-01-08 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:32:19] Production.INFO: count ==5309 [2025-01-08 12:32:21] Production.ERROR: pbx CDR StartTime 2025-01-08 09:32:05 - End Time 2025-01-08 12:32:05 [2025-01-08 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202258', 'tblTempUsageDetail_20' ) start [2025-01-08 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202258', 'tblTempUsageDetail_20' ) end [2025-01-08 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202258', 'tblTempVendorCDR_20' ) start [2025-01-08 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202258', 'tblTempVendorCDR_20' ) end [2025-01-08 12:32:21] Production.INFO: ProcessCDR(1,14202258,1,1,2) [2025-01-08 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202258', 'tblTempUsageDetail_20' ) start [2025-01-08 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202258', 'tblTempUsageDetail_20' ) end [2025-01-08 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:32:26] Production.INFO: ==5943== Releasing lock... [2025-01-08 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:32:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:33:04 [end_date_ymd] => 2025-01-08 12:33:04 [RateCDR] => 1 ) [2025-01-08 12:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:33:04' and `end` < '2025-01-08 12:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:33:21] Production.INFO: count ==5280 [2025-01-08 12:33:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:33:04 - End Time 2025-01-08 12:33:04 [2025-01-08 12:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202263', 'tblTempUsageDetail_20' ) start [2025-01-08 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202263', 'tblTempUsageDetail_20' ) end [2025-01-08 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202263', 'tblTempVendorCDR_20' ) start [2025-01-08 12:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202263', 'tblTempVendorCDR_20' ) end [2025-01-08 12:33:23] Production.INFO: ProcessCDR(1,14202263,1,1,2) [2025-01-08 12:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202263', 'tblTempUsageDetail_20' ) start [2025-01-08 12:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202263', 'tblTempUsageDetail_20' ) end [2025-01-08 12:33:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:33:28] Production.INFO: ==6020== Releasing lock... [2025-01-08 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:33:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:34:04 [end_date_ymd] => 2025-01-08 12:34:04 [RateCDR] => 1 ) [2025-01-08 12:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:34:04' and `end` < '2025-01-08 12:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:34:19] Production.INFO: count ==5261 [2025-01-08 12:34:21] Production.ERROR: pbx CDR StartTime 2025-01-08 09:34:04 - End Time 2025-01-08 12:34:04 [2025-01-08 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202268', 'tblTempUsageDetail_20' ) start [2025-01-08 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202268', 'tblTempUsageDetail_20' ) end [2025-01-08 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202268', 'tblTempVendorCDR_20' ) start [2025-01-08 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202268', 'tblTempVendorCDR_20' ) end [2025-01-08 12:34:21] Production.INFO: ProcessCDR(1,14202268,1,1,2) [2025-01-08 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202268', 'tblTempUsageDetail_20' ) start [2025-01-08 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202268', 'tblTempUsageDetail_20' ) end [2025-01-08 12:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:34:26] Production.INFO: ==6096== Releasing lock... [2025-01-08 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:34:26] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:35:05 [end_date_ymd] => 2025-01-08 12:35:05 [RateCDR] => 1 ) [2025-01-08 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:35:05' and `end` < '2025-01-08 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:35:19] Production.INFO: count ==5238 [2025-01-08 12:35:21] Production.ERROR: pbx CDR StartTime 2025-01-08 09:35:05 - End Time 2025-01-08 12:35:05 [2025-01-08 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202273', 'tblTempUsageDetail_20' ) start [2025-01-08 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202273', 'tblTempUsageDetail_20' ) end [2025-01-08 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202273', 'tblTempVendorCDR_20' ) start [2025-01-08 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202273', 'tblTempVendorCDR_20' ) end [2025-01-08 12:35:21] Production.INFO: ProcessCDR(1,14202273,1,1,2) [2025-01-08 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202273', 'tblTempUsageDetail_20' ) start [2025-01-08 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202273', 'tblTempUsageDetail_20' ) end [2025-01-08 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:35:26] Production.INFO: ==6208== Releasing lock... [2025-01-08 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:35:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:36:04 [end_date_ymd] => 2025-01-08 12:36:04 [RateCDR] => 1 ) [2025-01-08 12:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:36:04' and `end` < '2025-01-08 12:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:36:28] Production.INFO: count ==5245 [2025-01-08 12:36:30] Production.ERROR: pbx CDR StartTime 2025-01-08 09:36:04 - End Time 2025-01-08 12:36:04 [2025-01-08 12:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202278', 'tblTempUsageDetail_20' ) start [2025-01-08 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202278', 'tblTempUsageDetail_20' ) end [2025-01-08 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202278', 'tblTempVendorCDR_20' ) start [2025-01-08 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202278', 'tblTempVendorCDR_20' ) end [2025-01-08 12:36:30] Production.INFO: ProcessCDR(1,14202278,1,1,2) [2025-01-08 12:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:36:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:36:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:36:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202278', 'tblTempUsageDetail_20' ) start [2025-01-08 12:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202278', 'tblTempUsageDetail_20' ) end [2025-01-08 12:36:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:36:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:36:35] Production.INFO: ==6278== Releasing lock... [2025-01-08 12:36:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:36:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:37:05 [end_date_ymd] => 2025-01-08 12:37:05 [RateCDR] => 1 ) [2025-01-08 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:37:05' and `end` < '2025-01-08 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:37:25] Production.INFO: count ==5222 [2025-01-08 12:37:27] Production.ERROR: pbx CDR StartTime 2025-01-08 09:37:05 - End Time 2025-01-08 12:37:05 [2025-01-08 12:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202283', 'tblTempUsageDetail_20' ) start [2025-01-08 12:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202283', 'tblTempUsageDetail_20' ) end [2025-01-08 12:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202283', 'tblTempVendorCDR_20' ) start [2025-01-08 12:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202283', 'tblTempVendorCDR_20' ) end [2025-01-08 12:37:27] Production.INFO: ProcessCDR(1,14202283,1,1,2) [2025-01-08 12:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202283', 'tblTempUsageDetail_20' ) start [2025-01-08 12:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202283', 'tblTempUsageDetail_20' ) end [2025-01-08 12:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:37:32] Production.INFO: ==6349== Releasing lock... [2025-01-08 12:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:37:32] Production.INFO: 67 MB #Memory Used# [2025-01-08 12:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:38:04 [end_date_ymd] => 2025-01-08 12:38:04 [RateCDR] => 1 ) [2025-01-08 12:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:38:04' and `end` < '2025-01-08 12:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:38:22] Production.INFO: count ==5224 [2025-01-08 12:38:24] Production.ERROR: pbx CDR StartTime 2025-01-08 09:38:04 - End Time 2025-01-08 12:38:04 [2025-01-08 12:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202288', 'tblTempUsageDetail_20' ) start [2025-01-08 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202288', 'tblTempUsageDetail_20' ) end [2025-01-08 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202288', 'tblTempVendorCDR_20' ) start [2025-01-08 12:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202288', 'tblTempVendorCDR_20' ) end [2025-01-08 12:38:24] Production.INFO: ProcessCDR(1,14202288,1,1,2) [2025-01-08 12:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202288', 'tblTempUsageDetail_20' ) start [2025-01-08 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202288', 'tblTempUsageDetail_20' ) end [2025-01-08 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:38:27] Production.INFO: ==6421== Releasing lock... [2025-01-08 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:38:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:39:05 [end_date_ymd] => 2025-01-08 12:39:05 [RateCDR] => 1 ) [2025-01-08 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:39:05' and `end` < '2025-01-08 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:39:18] Production.INFO: count ==5191 [2025-01-08 12:39:21] Production.ERROR: pbx CDR StartTime 2025-01-08 09:39:05 - End Time 2025-01-08 12:39:05 [2025-01-08 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202293', 'tblTempUsageDetail_20' ) start [2025-01-08 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202293', 'tblTempUsageDetail_20' ) end [2025-01-08 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202293', 'tblTempVendorCDR_20' ) start [2025-01-08 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202293', 'tblTempVendorCDR_20' ) end [2025-01-08 12:39:21] Production.INFO: ProcessCDR(1,14202293,1,1,2) [2025-01-08 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202293', 'tblTempUsageDetail_20' ) start [2025-01-08 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202293', 'tblTempUsageDetail_20' ) end [2025-01-08 12:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:39:25] Production.INFO: ==6494== Releasing lock... [2025-01-08 12:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:39:25] Production.INFO: 67 MB #Memory Used# [2025-01-08 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:40:05 [end_date_ymd] => 2025-01-08 12:40:05 [RateCDR] => 1 ) [2025-01-08 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:40:05' and `end` < '2025-01-08 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:40:21] Production.INFO: count ==5188 [2025-01-08 12:40:24] Production.ERROR: pbx CDR StartTime 2025-01-08 09:40:05 - End Time 2025-01-08 12:40:05 [2025-01-08 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202299', 'tblTempUsageDetail_20' ) start [2025-01-08 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202299', 'tblTempUsageDetail_20' ) end [2025-01-08 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202299', 'tblTempVendorCDR_20' ) start [2025-01-08 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202299', 'tblTempVendorCDR_20' ) end [2025-01-08 12:40:24] Production.INFO: ProcessCDR(1,14202299,1,1,2) [2025-01-08 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202299', 'tblTempUsageDetail_20' ) start [2025-01-08 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202299', 'tblTempUsageDetail_20' ) end [2025-01-08 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:40:28] Production.INFO: ==6566== Releasing lock... [2025-01-08 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:40:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-08 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:41:04 [end_date_ymd] => 2025-01-08 12:41:04 [RateCDR] => 1 ) [2025-01-08 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:41:04' and `end` < '2025-01-08 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:41:21] Production.INFO: count ==5213 [2025-01-08 12:41:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:41:04 - End Time 2025-01-08 12:41:04 [2025-01-08 12:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202304', 'tblTempUsageDetail_20' ) start [2025-01-08 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202304', 'tblTempUsageDetail_20' ) end [2025-01-08 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202304', 'tblTempVendorCDR_20' ) start [2025-01-08 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202304', 'tblTempVendorCDR_20' ) end [2025-01-08 12:41:23] Production.INFO: ProcessCDR(1,14202304,1,1,2) [2025-01-08 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202304', 'tblTempUsageDetail_20' ) start [2025-01-08 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202304', 'tblTempUsageDetail_20' ) end [2025-01-08 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:41:28] Production.INFO: ==6659== Releasing lock... [2025-01-08 12:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:41:28] Production.INFO: 67 MB #Memory Used# [2025-01-08 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:42:05 [end_date_ymd] => 2025-01-08 12:42:05 [RateCDR] => 1 ) [2025-01-08 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:42:05' and `end` < '2025-01-08 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:42:20] Production.INFO: count ==5232 [2025-01-08 12:42:22] Production.ERROR: pbx CDR StartTime 2025-01-08 09:42:05 - End Time 2025-01-08 12:42:05 [2025-01-08 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202309', 'tblTempUsageDetail_20' ) start [2025-01-08 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202309', 'tblTempUsageDetail_20' ) end [2025-01-08 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202309', 'tblTempVendorCDR_20' ) start [2025-01-08 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202309', 'tblTempVendorCDR_20' ) end [2025-01-08 12:42:22] Production.INFO: ProcessCDR(1,14202309,1,1,2) [2025-01-08 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202309', 'tblTempUsageDetail_20' ) start [2025-01-08 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202309', 'tblTempUsageDetail_20' ) end [2025-01-08 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:42:27] Production.INFO: ==6759== Releasing lock... [2025-01-08 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:42:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:43:05 [end_date_ymd] => 2025-01-08 12:43:05 [RateCDR] => 1 ) [2025-01-08 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:43:05' and `end` < '2025-01-08 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:43:22] Production.INFO: count ==5254 [2025-01-08 12:43:24] Production.ERROR: pbx CDR StartTime 2025-01-08 09:43:05 - End Time 2025-01-08 12:43:05 [2025-01-08 12:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202314', 'tblTempUsageDetail_20' ) start [2025-01-08 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202314', 'tblTempUsageDetail_20' ) end [2025-01-08 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202314', 'tblTempVendorCDR_20' ) start [2025-01-08 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202314', 'tblTempVendorCDR_20' ) end [2025-01-08 12:43:24] Production.INFO: ProcessCDR(1,14202314,1,1,2) [2025-01-08 12:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202314', 'tblTempUsageDetail_20' ) start [2025-01-08 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202314', 'tblTempUsageDetail_20' ) end [2025-01-08 12:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:43:29] Production.INFO: ==6858== Releasing lock... [2025-01-08 12:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:43:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:44:04 [end_date_ymd] => 2025-01-08 12:44:04 [RateCDR] => 1 ) [2025-01-08 12:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:44:04' and `end` < '2025-01-08 12:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:44:21] Production.INFO: count ==5252 [2025-01-08 12:44:24] Production.ERROR: pbx CDR StartTime 2025-01-08 09:44:04 - End Time 2025-01-08 12:44:04 [2025-01-08 12:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202319', 'tblTempUsageDetail_20' ) start [2025-01-08 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202319', 'tblTempUsageDetail_20' ) end [2025-01-08 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202319', 'tblTempVendorCDR_20' ) start [2025-01-08 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202319', 'tblTempVendorCDR_20' ) end [2025-01-08 12:44:24] Production.INFO: ProcessCDR(1,14202319,1,1,2) [2025-01-08 12:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202319', 'tblTempUsageDetail_20' ) start [2025-01-08 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202319', 'tblTempUsageDetail_20' ) end [2025-01-08 12:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:44:29] Production.INFO: ==6955== Releasing lock... [2025-01-08 12:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:44:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:45:05 [end_date_ymd] => 2025-01-08 12:45:05 [RateCDR] => 1 ) [2025-01-08 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:45:05' and `end` < '2025-01-08 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:45:19] Production.INFO: count ==5244 [2025-01-08 12:45:21] Production.ERROR: pbx CDR StartTime 2025-01-08 09:45:05 - End Time 2025-01-08 12:45:05 [2025-01-08 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202324', 'tblTempUsageDetail_20' ) start [2025-01-08 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202324', 'tblTempUsageDetail_20' ) end [2025-01-08 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202324', 'tblTempVendorCDR_20' ) start [2025-01-08 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202324', 'tblTempVendorCDR_20' ) end [2025-01-08 12:45:21] Production.INFO: ProcessCDR(1,14202324,1,1,2) [2025-01-08 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202324', 'tblTempUsageDetail_20' ) start [2025-01-08 12:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202324', 'tblTempUsageDetail_20' ) end [2025-01-08 12:45:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:45:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:45:25] Production.INFO: ==7055== Releasing lock... [2025-01-08 12:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:45:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:46:05 [end_date_ymd] => 2025-01-08 12:46:05 [RateCDR] => 1 ) [2025-01-08 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:46:05' and `end` < '2025-01-08 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:46:23] Production.INFO: count ==5236 [2025-01-08 12:46:25] Production.ERROR: pbx CDR StartTime 2025-01-08 09:46:05 - End Time 2025-01-08 12:46:05 [2025-01-08 12:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202329', 'tblTempUsageDetail_20' ) start [2025-01-08 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202329', 'tblTempUsageDetail_20' ) end [2025-01-08 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202329', 'tblTempVendorCDR_20' ) start [2025-01-08 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202329', 'tblTempVendorCDR_20' ) end [2025-01-08 12:46:25] Production.INFO: ProcessCDR(1,14202329,1,1,2) [2025-01-08 12:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202329', 'tblTempUsageDetail_20' ) start [2025-01-08 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202329', 'tblTempUsageDetail_20' ) end [2025-01-08 12:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:46:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:46:30] Production.INFO: ==7152== Releasing lock... [2025-01-08 12:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:46:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:47:05 [end_date_ymd] => 2025-01-08 12:47:05 [RateCDR] => 1 ) [2025-01-08 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:47:05' and `end` < '2025-01-08 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:47:31] Production.INFO: count ==5251 [2025-01-08 12:47:33] Production.ERROR: pbx CDR StartTime 2025-01-08 09:47:05 - End Time 2025-01-08 12:47:05 [2025-01-08 12:47:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202334', 'tblTempUsageDetail_20' ) start [2025-01-08 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202334', 'tblTempUsageDetail_20' ) end [2025-01-08 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202334', 'tblTempVendorCDR_20' ) start [2025-01-08 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202334', 'tblTempVendorCDR_20' ) end [2025-01-08 12:47:33] Production.INFO: ProcessCDR(1,14202334,1,1,2) [2025-01-08 12:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:47:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:47:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:47:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202334', 'tblTempUsageDetail_20' ) start [2025-01-08 12:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202334', 'tblTempUsageDetail_20' ) end [2025-01-08 12:47:38] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:47:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:47:38] Production.INFO: ==7251== Releasing lock... [2025-01-08 12:47:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:47:38] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:48:05 [end_date_ymd] => 2025-01-08 12:48:05 [RateCDR] => 1 ) [2025-01-08 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:48:05' and `end` < '2025-01-08 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:48:25] Production.INFO: count ==5261 [2025-01-08 12:48:27] Production.ERROR: pbx CDR StartTime 2025-01-08 09:48:05 - End Time 2025-01-08 12:48:05 [2025-01-08 12:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202339', 'tblTempUsageDetail_20' ) start [2025-01-08 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202339', 'tblTempUsageDetail_20' ) end [2025-01-08 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202339', 'tblTempVendorCDR_20' ) start [2025-01-08 12:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202339', 'tblTempVendorCDR_20' ) end [2025-01-08 12:48:27] Production.INFO: ProcessCDR(1,14202339,1,1,2) [2025-01-08 12:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202339', 'tblTempUsageDetail_20' ) start [2025-01-08 12:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202339', 'tblTempUsageDetail_20' ) end [2025-01-08 12:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:48:32] Production.INFO: ==7350== Releasing lock... [2025-01-08 12:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:48:32] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:49:05 [end_date_ymd] => 2025-01-08 12:49:05 [RateCDR] => 1 ) [2025-01-08 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:49:05' and `end` < '2025-01-08 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:49:22] Production.INFO: count ==5260 [2025-01-08 12:49:24] Production.ERROR: pbx CDR StartTime 2025-01-08 09:49:05 - End Time 2025-01-08 12:49:05 [2025-01-08 12:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202344', 'tblTempUsageDetail_20' ) start [2025-01-08 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202344', 'tblTempUsageDetail_20' ) end [2025-01-08 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202344', 'tblTempVendorCDR_20' ) start [2025-01-08 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202344', 'tblTempVendorCDR_20' ) end [2025-01-08 12:49:24] Production.INFO: ProcessCDR(1,14202344,1,1,2) [2025-01-08 12:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202344', 'tblTempUsageDetail_20' ) start [2025-01-08 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202344', 'tblTempUsageDetail_20' ) end [2025-01-08 12:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:49:29] Production.INFO: ==7448== Releasing lock... [2025-01-08 12:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:49:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:50:06 [end_date_ymd] => 2025-01-08 12:50:06 [RateCDR] => 1 ) [2025-01-08 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:50:06' and `end` < '2025-01-08 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:50:33] Production.INFO: count ==5247 [2025-01-08 12:50:35] Production.ERROR: pbx CDR StartTime 2025-01-08 09:50:06 - End Time 2025-01-08 12:50:06 [2025-01-08 12:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202350', 'tblTempUsageDetail_20' ) start [2025-01-08 12:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202350', 'tblTempUsageDetail_20' ) end [2025-01-08 12:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202350', 'tblTempVendorCDR_20' ) start [2025-01-08 12:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202350', 'tblTempVendorCDR_20' ) end [2025-01-08 12:50:35] Production.INFO: ProcessCDR(1,14202350,1,1,2) [2025-01-08 12:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202350', 'tblTempUsageDetail_20' ) start [2025-01-08 12:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202350', 'tblTempUsageDetail_20' ) end [2025-01-08 12:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:50:40] Production.INFO: ==7549== Releasing lock... [2025-01-08 12:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:50:40] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:51:05 [end_date_ymd] => 2025-01-08 12:51:05 [RateCDR] => 1 ) [2025-01-08 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:51:05' and `end` < '2025-01-08 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:51:22] Production.INFO: count ==5284 [2025-01-08 12:51:25] Production.ERROR: pbx CDR StartTime 2025-01-08 09:51:05 - End Time 2025-01-08 12:51:05 [2025-01-08 12:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202355', 'tblTempUsageDetail_20' ) start [2025-01-08 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202355', 'tblTempUsageDetail_20' ) end [2025-01-08 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202355', 'tblTempVendorCDR_20' ) start [2025-01-08 12:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202355', 'tblTempVendorCDR_20' ) end [2025-01-08 12:51:25] Production.INFO: ProcessCDR(1,14202355,1,1,2) [2025-01-08 12:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202355', 'tblTempUsageDetail_20' ) start [2025-01-08 12:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202355', 'tblTempUsageDetail_20' ) end [2025-01-08 12:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:51:30] Production.INFO: ==7688== Releasing lock... [2025-01-08 12:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:51:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:52:05 [end_date_ymd] => 2025-01-08 12:52:05 [RateCDR] => 1 ) [2025-01-08 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:52:05' and `end` < '2025-01-08 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:52:21] Production.INFO: count ==5289 [2025-01-08 12:52:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:52:05 - End Time 2025-01-08 12:52:05 [2025-01-08 12:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202360', 'tblTempUsageDetail_20' ) start [2025-01-08 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202360', 'tblTempUsageDetail_20' ) end [2025-01-08 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202360', 'tblTempVendorCDR_20' ) start [2025-01-08 12:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202360', 'tblTempVendorCDR_20' ) end [2025-01-08 12:52:23] Production.INFO: ProcessCDR(1,14202360,1,1,2) [2025-01-08 12:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202360', 'tblTempUsageDetail_20' ) start [2025-01-08 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202360', 'tblTempUsageDetail_20' ) end [2025-01-08 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:52:28] Production.INFO: ==7787== Releasing lock... [2025-01-08 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:52:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:53:05 [end_date_ymd] => 2025-01-08 12:53:05 [RateCDR] => 1 ) [2025-01-08 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:53:05' and `end` < '2025-01-08 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:53:19] Production.INFO: count ==5308 [2025-01-08 12:53:22] Production.ERROR: pbx CDR StartTime 2025-01-08 09:53:05 - End Time 2025-01-08 12:53:05 [2025-01-08 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202365', 'tblTempUsageDetail_20' ) start [2025-01-08 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202365', 'tblTempUsageDetail_20' ) end [2025-01-08 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202365', 'tblTempVendorCDR_20' ) start [2025-01-08 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202365', 'tblTempVendorCDR_20' ) end [2025-01-08 12:53:22] Production.INFO: ProcessCDR(1,14202365,1,1,2) [2025-01-08 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202365', 'tblTempUsageDetail_20' ) start [2025-01-08 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202365', 'tblTempUsageDetail_20' ) end [2025-01-08 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:53:27] Production.INFO: ==7884== Releasing lock... [2025-01-08 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:53:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:54:05 [end_date_ymd] => 2025-01-08 12:54:05 [RateCDR] => 1 ) [2025-01-08 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:54:05' and `end` < '2025-01-08 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:54:25] Production.INFO: count ==5306 [2025-01-08 12:54:27] Production.ERROR: pbx CDR StartTime 2025-01-08 09:54:05 - End Time 2025-01-08 12:54:05 [2025-01-08 12:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202370', 'tblTempUsageDetail_20' ) start [2025-01-08 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202370', 'tblTempUsageDetail_20' ) end [2025-01-08 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202370', 'tblTempVendorCDR_20' ) start [2025-01-08 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202370', 'tblTempVendorCDR_20' ) end [2025-01-08 12:54:28] Production.INFO: ProcessCDR(1,14202370,1,1,2) [2025-01-08 12:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202370', 'tblTempUsageDetail_20' ) start [2025-01-08 12:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202370', 'tblTempUsageDetail_20' ) end [2025-01-08 12:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:54:31] Production.INFO: ==7997== Releasing lock... [2025-01-08 12:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:54:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:55:04 [end_date_ymd] => 2025-01-08 12:55:04 [RateCDR] => 1 ) [2025-01-08 12:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:55:04' and `end` < '2025-01-08 12:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:55:25] Production.INFO: count ==5307 [2025-01-08 12:55:27] Production.ERROR: pbx CDR StartTime 2025-01-08 09:55:04 - End Time 2025-01-08 12:55:04 [2025-01-08 12:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202375', 'tblTempUsageDetail_20' ) start [2025-01-08 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202375', 'tblTempUsageDetail_20' ) end [2025-01-08 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202375', 'tblTempVendorCDR_20' ) start [2025-01-08 12:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202375', 'tblTempVendorCDR_20' ) end [2025-01-08 12:55:27] Production.INFO: ProcessCDR(1,14202375,1,1,2) [2025-01-08 12:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202375', 'tblTempUsageDetail_20' ) start [2025-01-08 12:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202375', 'tblTempUsageDetail_20' ) end [2025-01-08 12:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:55:32] Production.INFO: ==8095== Releasing lock... [2025-01-08 12:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:55:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:56:05 [end_date_ymd] => 2025-01-08 12:56:05 [RateCDR] => 1 ) [2025-01-08 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:56:05' and `end` < '2025-01-08 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:56:20] Production.INFO: count ==5307 [2025-01-08 12:56:23] Production.ERROR: pbx CDR StartTime 2025-01-08 09:56:05 - End Time 2025-01-08 12:56:05 [2025-01-08 12:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202380', 'tblTempUsageDetail_20' ) start [2025-01-08 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202380', 'tblTempUsageDetail_20' ) end [2025-01-08 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202380', 'tblTempVendorCDR_20' ) start [2025-01-08 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202380', 'tblTempVendorCDR_20' ) end [2025-01-08 12:56:23] Production.INFO: ProcessCDR(1,14202380,1,1,2) [2025-01-08 12:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202380', 'tblTempUsageDetail_20' ) start [2025-01-08 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202380', 'tblTempUsageDetail_20' ) end [2025-01-08 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:56:27] Production.INFO: ==8197== Releasing lock... [2025-01-08 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:56:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:57:04 [end_date_ymd] => 2025-01-08 12:57:04 [RateCDR] => 1 ) [2025-01-08 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:57:04' and `end` < '2025-01-08 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:57:30] Production.INFO: count ==5308 [2025-01-08 12:57:32] Production.ERROR: pbx CDR StartTime 2025-01-08 09:57:04 - End Time 2025-01-08 12:57:04 [2025-01-08 12:57:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202385', 'tblTempUsageDetail_20' ) start [2025-01-08 12:57:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202385', 'tblTempUsageDetail_20' ) end [2025-01-08 12:57:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202385', 'tblTempVendorCDR_20' ) start [2025-01-08 12:57:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202385', 'tblTempVendorCDR_20' ) end [2025-01-08 12:57:33] Production.INFO: ProcessCDR(1,14202385,1,1,2) [2025-01-08 12:57:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:57:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:57:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:57:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:57:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202385', 'tblTempUsageDetail_20' ) start [2025-01-08 12:57:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202385', 'tblTempUsageDetail_20' ) end [2025-01-08 12:57:37] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:57:37] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:57:37] Production.INFO: ==8296== Releasing lock... [2025-01-08 12:57:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:57:37] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:58:05 [end_date_ymd] => 2025-01-08 12:58:05 [RateCDR] => 1 ) [2025-01-08 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:58:05' and `end` < '2025-01-08 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:58:29] Production.INFO: count ==5327 [2025-01-08 12:58:32] Production.ERROR: pbx CDR StartTime 2025-01-08 09:58:05 - End Time 2025-01-08 12:58:05 [2025-01-08 12:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202390', 'tblTempUsageDetail_20' ) start [2025-01-08 12:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202390', 'tblTempUsageDetail_20' ) end [2025-01-08 12:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202390', 'tblTempVendorCDR_20' ) start [2025-01-08 12:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202390', 'tblTempVendorCDR_20' ) end [2025-01-08 12:58:32] Production.INFO: ProcessCDR(1,14202390,1,1,2) [2025-01-08 12:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:58:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202390', 'tblTempUsageDetail_20' ) start [2025-01-08 12:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202390', 'tblTempUsageDetail_20' ) end [2025-01-08 12:58:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:58:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:58:37] Production.INFO: ==8392== Releasing lock... [2025-01-08 12:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:58:37] Production.INFO: 68 MB #Memory Used# [2025-01-08 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 09:59:04 [end_date_ymd] => 2025-01-08 12:59:04 [RateCDR] => 1 ) [2025-01-08 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 09:59:04' and `end` < '2025-01-08 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 12:59:22] Production.INFO: count ==5337 [2025-01-08 12:59:24] Production.ERROR: pbx CDR StartTime 2025-01-08 09:59:04 - End Time 2025-01-08 12:59:04 [2025-01-08 12:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 12:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202395', 'tblTempUsageDetail_20' ) start [2025-01-08 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202395', 'tblTempUsageDetail_20' ) end [2025-01-08 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202395', 'tblTempVendorCDR_20' ) start [2025-01-08 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202395', 'tblTempVendorCDR_20' ) end [2025-01-08 12:59:25] Production.INFO: ProcessCDR(1,14202395,1,1,2) [2025-01-08 12:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 12:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 12:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202395', 'tblTempUsageDetail_20' ) start [2025-01-08 12:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202395', 'tblTempUsageDetail_20' ) end [2025-01-08 12:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 12:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 12:59:29] Production.INFO: ==8462== Releasing lock... [2025-01-08 12:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 12:59:29] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:00:05 [end_date_ymd] => 2025-01-08 13:00:05 [RateCDR] => 1 ) [2025-01-08 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:00:05' and `end` < '2025-01-08 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:00:25] Production.INFO: count ==5342 [2025-01-08 13:00:27] Production.ERROR: pbx CDR StartTime 2025-01-08 10:00:05 - End Time 2025-01-08 13:00:05 [2025-01-08 13:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202400', 'tblTempUsageDetail_20' ) start [2025-01-08 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202400', 'tblTempUsageDetail_20' ) end [2025-01-08 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202400', 'tblTempVendorCDR_20' ) start [2025-01-08 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202400', 'tblTempVendorCDR_20' ) end [2025-01-08 13:00:27] Production.INFO: ProcessCDR(1,14202400,1,1,2) [2025-01-08 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202400', 'tblTempUsageDetail_20' ) start [2025-01-08 13:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202400', 'tblTempUsageDetail_20' ) end [2025-01-08 13:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:00:32] Production.INFO: ==8534== Releasing lock... [2025-01-08 13:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:00:32] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:01:05 [end_date_ymd] => 2025-01-08 13:01:05 [RateCDR] => 1 ) [2025-01-08 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:01:05' and `end` < '2025-01-08 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:01:20] Production.INFO: count ==5335 [2025-01-08 13:01:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:01:05 - End Time 2025-01-08 13:01:05 [2025-01-08 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202405', 'tblTempUsageDetail_20' ) start [2025-01-08 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202405', 'tblTempUsageDetail_20' ) end [2025-01-08 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202405', 'tblTempVendorCDR_20' ) start [2025-01-08 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202405', 'tblTempVendorCDR_20' ) end [2025-01-08 13:01:22] Production.INFO: ProcessCDR(1,14202405,1,1,2) [2025-01-08 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202405', 'tblTempUsageDetail_20' ) start [2025-01-08 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202405', 'tblTempUsageDetail_20' ) end [2025-01-08 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:01:27] Production.INFO: ==8619== Releasing lock... [2025-01-08 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:01:27] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:02:04 [end_date_ymd] => 2025-01-08 13:02:04 [RateCDR] => 1 ) [2025-01-08 13:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:02:04' and `end` < '2025-01-08 13:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:02:22] Production.INFO: count ==5336 [2025-01-08 13:02:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:02:04 - End Time 2025-01-08 13:02:04 [2025-01-08 13:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202411', 'tblTempUsageDetail_20' ) start [2025-01-08 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202411', 'tblTempUsageDetail_20' ) end [2025-01-08 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202411', 'tblTempVendorCDR_20' ) start [2025-01-08 13:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202411', 'tblTempVendorCDR_20' ) end [2025-01-08 13:02:25] Production.INFO: ProcessCDR(1,14202411,1,1,2) [2025-01-08 13:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202411', 'tblTempUsageDetail_20' ) start [2025-01-08 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202411', 'tblTempUsageDetail_20' ) end [2025-01-08 13:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:02:29] Production.INFO: ==8690== Releasing lock... [2025-01-08 13:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:02:29] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:03:05 [end_date_ymd] => 2025-01-08 13:03:05 [RateCDR] => 1 ) [2025-01-08 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:03:05' and `end` < '2025-01-08 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:03:19] Production.INFO: count ==5327 [2025-01-08 13:03:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:03:05 - End Time 2025-01-08 13:03:05 [2025-01-08 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202416', 'tblTempUsageDetail_20' ) start [2025-01-08 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202416', 'tblTempUsageDetail_20' ) end [2025-01-08 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202416', 'tblTempVendorCDR_20' ) start [2025-01-08 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202416', 'tblTempVendorCDR_20' ) end [2025-01-08 13:03:21] Production.INFO: ProcessCDR(1,14202416,1,1,2) [2025-01-08 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202416', 'tblTempUsageDetail_20' ) start [2025-01-08 13:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202416', 'tblTempUsageDetail_20' ) end [2025-01-08 13:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:03:26] Production.INFO: ==8760== Releasing lock... [2025-01-08 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:03:26] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:04:04 [end_date_ymd] => 2025-01-08 13:04:04 [RateCDR] => 1 ) [2025-01-08 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:04:04' and `end` < '2025-01-08 13:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:04:19] Production.INFO: count ==5303 [2025-01-08 13:04:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:04:04 - End Time 2025-01-08 13:04:04 [2025-01-08 13:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202421', 'tblTempUsageDetail_20' ) start [2025-01-08 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202421', 'tblTempUsageDetail_20' ) end [2025-01-08 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202421', 'tblTempVendorCDR_20' ) start [2025-01-08 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202421', 'tblTempVendorCDR_20' ) end [2025-01-08 13:04:22] Production.INFO: ProcessCDR(1,14202421,1,1,2) [2025-01-08 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202421', 'tblTempUsageDetail_20' ) start [2025-01-08 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202421', 'tblTempUsageDetail_20' ) end [2025-01-08 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:04:26] Production.INFO: ==8831== Releasing lock... [2025-01-08 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:04:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:05:05 [end_date_ymd] => 2025-01-08 13:05:05 [RateCDR] => 1 ) [2025-01-08 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:05:05' and `end` < '2025-01-08 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:05:23] Production.INFO: count ==5307 [2025-01-08 13:05:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:05:05 - End Time 2025-01-08 13:05:05 [2025-01-08 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202426', 'tblTempUsageDetail_20' ) start [2025-01-08 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202426', 'tblTempUsageDetail_20' ) end [2025-01-08 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202426', 'tblTempVendorCDR_20' ) start [2025-01-08 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202426', 'tblTempVendorCDR_20' ) end [2025-01-08 13:05:25] Production.INFO: ProcessCDR(1,14202426,1,1,2) [2025-01-08 13:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202426', 'tblTempUsageDetail_20' ) start [2025-01-08 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202426', 'tblTempUsageDetail_20' ) end [2025-01-08 13:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:05:30] Production.INFO: ==8905== Releasing lock... [2025-01-08 13:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:05:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:06:05 [end_date_ymd] => 2025-01-08 13:06:05 [RateCDR] => 1 ) [2025-01-08 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:06:05' and `end` < '2025-01-08 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:06:23] Production.INFO: count ==5307 [2025-01-08 13:06:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:06:05 - End Time 2025-01-08 13:06:05 [2025-01-08 13:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202431', 'tblTempUsageDetail_20' ) start [2025-01-08 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202431', 'tblTempUsageDetail_20' ) end [2025-01-08 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202431', 'tblTempVendorCDR_20' ) start [2025-01-08 13:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202431', 'tblTempVendorCDR_20' ) end [2025-01-08 13:06:25] Production.INFO: ProcessCDR(1,14202431,1,1,2) [2025-01-08 13:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202431', 'tblTempUsageDetail_20' ) start [2025-01-08 13:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202431', 'tblTempUsageDetail_20' ) end [2025-01-08 13:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:06:30] Production.INFO: ==9017== Releasing lock... [2025-01-08 13:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:06:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:07:05 [end_date_ymd] => 2025-01-08 13:07:05 [RateCDR] => 1 ) [2025-01-08 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:07:05' and `end` < '2025-01-08 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:07:19] Production.INFO: count ==5296 [2025-01-08 13:07:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:07:05 - End Time 2025-01-08 13:07:05 [2025-01-08 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202436', 'tblTempUsageDetail_20' ) start [2025-01-08 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202436', 'tblTempUsageDetail_20' ) end [2025-01-08 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202436', 'tblTempVendorCDR_20' ) start [2025-01-08 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202436', 'tblTempVendorCDR_20' ) end [2025-01-08 13:07:22] Production.INFO: ProcessCDR(1,14202436,1,1,2) [2025-01-08 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202436', 'tblTempUsageDetail_20' ) start [2025-01-08 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202436', 'tblTempUsageDetail_20' ) end [2025-01-08 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:07:26] Production.INFO: ==9088== Releasing lock... [2025-01-08 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:07:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:08:04 [end_date_ymd] => 2025-01-08 13:08:04 [RateCDR] => 1 ) [2025-01-08 13:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:08:04' and `end` < '2025-01-08 13:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:08:18] Production.INFO: count ==5283 [2025-01-08 13:08:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:08:04 - End Time 2025-01-08 13:08:04 [2025-01-08 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202441', 'tblTempUsageDetail_20' ) start [2025-01-08 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202441', 'tblTempUsageDetail_20' ) end [2025-01-08 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202441', 'tblTempVendorCDR_20' ) start [2025-01-08 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202441', 'tblTempVendorCDR_20' ) end [2025-01-08 13:08:21] Production.INFO: ProcessCDR(1,14202441,1,1,2) [2025-01-08 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202441', 'tblTempUsageDetail_20' ) start [2025-01-08 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202441', 'tblTempUsageDetail_20' ) end [2025-01-08 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:08:25] Production.INFO: ==9157== Releasing lock... [2025-01-08 13:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:08:25] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:09:04 [end_date_ymd] => 2025-01-08 13:09:04 [RateCDR] => 1 ) [2025-01-08 13:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:09:04' and `end` < '2025-01-08 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:09:22] Production.INFO: count ==5283 [2025-01-08 13:09:24] Production.ERROR: pbx CDR StartTime 2025-01-08 10:09:04 - End Time 2025-01-08 13:09:04 [2025-01-08 13:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202445', 'tblTempUsageDetail_20' ) start [2025-01-08 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202445', 'tblTempUsageDetail_20' ) end [2025-01-08 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202445', 'tblTempVendorCDR_20' ) start [2025-01-08 13:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202445', 'tblTempVendorCDR_20' ) end [2025-01-08 13:09:24] Production.INFO: ProcessCDR(1,14202445,1,1,2) [2025-01-08 13:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202445', 'tblTempUsageDetail_20' ) start [2025-01-08 13:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202445', 'tblTempUsageDetail_20' ) end [2025-01-08 13:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:09:29] Production.INFO: ==9227== Releasing lock... [2025-01-08 13:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:09:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:10:05 [end_date_ymd] => 2025-01-08 13:10:05 [RateCDR] => 1 ) [2025-01-08 13:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:10:05' and `end` < '2025-01-08 13:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:10:29] Production.INFO: count ==5307 [2025-01-08 13:10:31] Production.ERROR: pbx CDR StartTime 2025-01-08 10:10:05 - End Time 2025-01-08 13:10:05 [2025-01-08 13:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202452', 'tblTempUsageDetail_20' ) start [2025-01-08 13:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202452', 'tblTempUsageDetail_20' ) end [2025-01-08 13:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202452', 'tblTempVendorCDR_20' ) start [2025-01-08 13:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202452', 'tblTempVendorCDR_20' ) end [2025-01-08 13:10:31] Production.INFO: ProcessCDR(1,14202452,1,1,2) [2025-01-08 13:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202452', 'tblTempUsageDetail_20' ) start [2025-01-08 13:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202452', 'tblTempUsageDetail_20' ) end [2025-01-08 13:10:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:10:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:10:36] Production.INFO: ==9301== Releasing lock... [2025-01-08 13:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:10:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:11:05 [end_date_ymd] => 2025-01-08 13:11:05 [RateCDR] => 1 ) [2025-01-08 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:11:05' and `end` < '2025-01-08 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:11:23] Production.INFO: count ==5329 [2025-01-08 13:11:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:11:05 - End Time 2025-01-08 13:11:05 [2025-01-08 13:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202457', 'tblTempUsageDetail_20' ) start [2025-01-08 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202457', 'tblTempUsageDetail_20' ) end [2025-01-08 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202457', 'tblTempVendorCDR_20' ) start [2025-01-08 13:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202457', 'tblTempVendorCDR_20' ) end [2025-01-08 13:11:25] Production.INFO: ProcessCDR(1,14202457,1,1,2) [2025-01-08 13:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202457', 'tblTempUsageDetail_20' ) start [2025-01-08 13:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202457', 'tblTempUsageDetail_20' ) end [2025-01-08 13:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:11:30] Production.INFO: ==9376== Releasing lock... [2025-01-08 13:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:11:30] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:12:05 [end_date_ymd] => 2025-01-08 13:12:05 [RateCDR] => 1 ) [2025-01-08 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:12:05' and `end` < '2025-01-08 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:12:22] Production.INFO: count ==5315 [2025-01-08 13:12:24] Production.ERROR: pbx CDR StartTime 2025-01-08 10:12:05 - End Time 2025-01-08 13:12:05 [2025-01-08 13:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202462', 'tblTempUsageDetail_20' ) start [2025-01-08 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202462', 'tblTempUsageDetail_20' ) end [2025-01-08 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202462', 'tblTempVendorCDR_20' ) start [2025-01-08 13:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202462', 'tblTempVendorCDR_20' ) end [2025-01-08 13:12:24] Production.INFO: ProcessCDR(1,14202462,1,1,2) [2025-01-08 13:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202462', 'tblTempUsageDetail_20' ) start [2025-01-08 13:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202462', 'tblTempUsageDetail_20' ) end [2025-01-08 13:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:12:29] Production.INFO: ==9450== Releasing lock... [2025-01-08 13:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:12:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:13:05 [end_date_ymd] => 2025-01-08 13:13:05 [RateCDR] => 1 ) [2025-01-08 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:13:05' and `end` < '2025-01-08 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:13:21] Production.INFO: count ==5299 [2025-01-08 13:13:24] Production.ERROR: pbx CDR StartTime 2025-01-08 10:13:05 - End Time 2025-01-08 13:13:05 [2025-01-08 13:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202467', 'tblTempUsageDetail_20' ) start [2025-01-08 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202467', 'tblTempUsageDetail_20' ) end [2025-01-08 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202467', 'tblTempVendorCDR_20' ) start [2025-01-08 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202467', 'tblTempVendorCDR_20' ) end [2025-01-08 13:13:24] Production.INFO: ProcessCDR(1,14202467,1,1,2) [2025-01-08 13:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202467', 'tblTempUsageDetail_20' ) start [2025-01-08 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202467', 'tblTempUsageDetail_20' ) end [2025-01-08 13:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:13:29] Production.INFO: ==9521== Releasing lock... [2025-01-08 13:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:13:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:14:05 [end_date_ymd] => 2025-01-08 13:14:05 [RateCDR] => 1 ) [2025-01-08 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:14:05' and `end` < '2025-01-08 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:14:23] Production.INFO: count ==5278 [2025-01-08 13:14:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:14:05 - End Time 2025-01-08 13:14:05 [2025-01-08 13:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202472', 'tblTempUsageDetail_20' ) start [2025-01-08 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202472', 'tblTempUsageDetail_20' ) end [2025-01-08 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202472', 'tblTempVendorCDR_20' ) start [2025-01-08 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202472', 'tblTempVendorCDR_20' ) end [2025-01-08 13:14:26] Production.INFO: ProcessCDR(1,14202472,1,1,2) [2025-01-08 13:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202472', 'tblTempUsageDetail_20' ) start [2025-01-08 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202472', 'tblTempUsageDetail_20' ) end [2025-01-08 13:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:14:31] Production.INFO: ==9591== Releasing lock... [2025-01-08 13:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:14:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:15:04 [end_date_ymd] => 2025-01-08 13:15:04 [RateCDR] => 1 ) [2025-01-08 13:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:15:04' and `end` < '2025-01-08 13:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:15:24] Production.INFO: count ==5305 [2025-01-08 13:15:26] Production.ERROR: pbx CDR StartTime 2025-01-08 10:15:04 - End Time 2025-01-08 13:15:04 [2025-01-08 13:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202477', 'tblTempUsageDetail_20' ) start [2025-01-08 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202477', 'tblTempUsageDetail_20' ) end [2025-01-08 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202477', 'tblTempVendorCDR_20' ) start [2025-01-08 13:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202477', 'tblTempVendorCDR_20' ) end [2025-01-08 13:15:27] Production.INFO: ProcessCDR(1,14202477,1,1,2) [2025-01-08 13:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202477', 'tblTempUsageDetail_20' ) start [2025-01-08 13:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202477', 'tblTempUsageDetail_20' ) end [2025-01-08 13:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:15:32] Production.INFO: ==9666== Releasing lock... [2025-01-08 13:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:15:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:16:05 [end_date_ymd] => 2025-01-08 13:16:05 [RateCDR] => 1 ) [2025-01-08 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:16:05' and `end` < '2025-01-08 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:16:22] Production.INFO: count ==5324 [2025-01-08 13:16:24] Production.ERROR: pbx CDR StartTime 2025-01-08 10:16:05 - End Time 2025-01-08 13:16:05 [2025-01-08 13:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202479', 'tblTempUsageDetail_20' ) start [2025-01-08 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202479', 'tblTempUsageDetail_20' ) end [2025-01-08 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202479', 'tblTempVendorCDR_20' ) start [2025-01-08 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202479', 'tblTempVendorCDR_20' ) end [2025-01-08 13:16:24] Production.INFO: ProcessCDR(1,14202479,1,1,2) [2025-01-08 13:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202479', 'tblTempUsageDetail_20' ) start [2025-01-08 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202479', 'tblTempUsageDetail_20' ) end [2025-01-08 13:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:16:29] Production.INFO: ==9737== Releasing lock... [2025-01-08 13:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:16:29] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:17:05 [end_date_ymd] => 2025-01-08 13:17:05 [RateCDR] => 1 ) [2025-01-08 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:17:05' and `end` < '2025-01-08 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:17:22] Production.INFO: count ==5331 [2025-01-08 13:17:24] Production.ERROR: pbx CDR StartTime 2025-01-08 10:17:05 - End Time 2025-01-08 13:17:05 [2025-01-08 13:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202487', 'tblTempUsageDetail_20' ) start [2025-01-08 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202487', 'tblTempUsageDetail_20' ) end [2025-01-08 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202487', 'tblTempVendorCDR_20' ) start [2025-01-08 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202487', 'tblTempVendorCDR_20' ) end [2025-01-08 13:17:24] Production.INFO: ProcessCDR(1,14202487,1,1,2) [2025-01-08 13:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202487', 'tblTempUsageDetail_20' ) start [2025-01-08 13:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202487', 'tblTempUsageDetail_20' ) end [2025-01-08 13:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:17:29] Production.INFO: ==9806== Releasing lock... [2025-01-08 13:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:17:29] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:18:04 [end_date_ymd] => 2025-01-08 13:18:04 [RateCDR] => 1 ) [2025-01-08 13:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:18:04' and `end` < '2025-01-08 13:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:18:26] Production.INFO: count ==5320 [2025-01-08 13:18:28] Production.ERROR: pbx CDR StartTime 2025-01-08 10:18:04 - End Time 2025-01-08 13:18:04 [2025-01-08 13:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202492', 'tblTempUsageDetail_20' ) start [2025-01-08 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202492', 'tblTempUsageDetail_20' ) end [2025-01-08 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202492', 'tblTempVendorCDR_20' ) start [2025-01-08 13:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202492', 'tblTempVendorCDR_20' ) end [2025-01-08 13:18:28] Production.INFO: ProcessCDR(1,14202492,1,1,2) [2025-01-08 13:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202492', 'tblTempUsageDetail_20' ) start [2025-01-08 13:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202492', 'tblTempUsageDetail_20' ) end [2025-01-08 13:18:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:18:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:18:33] Production.INFO: ==9875== Releasing lock... [2025-01-08 13:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:18:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:19:05 [end_date_ymd] => 2025-01-08 13:19:05 [RateCDR] => 1 ) [2025-01-08 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:19:05' and `end` < '2025-01-08 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:19:24] Production.INFO: count ==5324 [2025-01-08 13:19:26] Production.ERROR: pbx CDR StartTime 2025-01-08 10:19:05 - End Time 2025-01-08 13:19:05 [2025-01-08 13:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202497', 'tblTempUsageDetail_20' ) start [2025-01-08 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202497', 'tblTempUsageDetail_20' ) end [2025-01-08 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202497', 'tblTempVendorCDR_20' ) start [2025-01-08 13:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202497', 'tblTempVendorCDR_20' ) end [2025-01-08 13:19:26] Production.INFO: ProcessCDR(1,14202497,1,1,2) [2025-01-08 13:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202497', 'tblTempUsageDetail_20' ) start [2025-01-08 13:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202497', 'tblTempUsageDetail_20' ) end [2025-01-08 13:19:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:19:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:19:31] Production.INFO: ==9946== Releasing lock... [2025-01-08 13:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:19:31] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:20:06 [end_date_ymd] => 2025-01-08 13:20:06 [RateCDR] => 1 ) [2025-01-08 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:20:06' and `end` < '2025-01-08 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:20:28] Production.INFO: count ==5325 [2025-01-08 13:20:30] Production.ERROR: pbx CDR StartTime 2025-01-08 10:20:06 - End Time 2025-01-08 13:20:06 [2025-01-08 13:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202502', 'tblTempUsageDetail_20' ) start [2025-01-08 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202502', 'tblTempUsageDetail_20' ) end [2025-01-08 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202502', 'tblTempVendorCDR_20' ) start [2025-01-08 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202502', 'tblTempVendorCDR_20' ) end [2025-01-08 13:20:30] Production.INFO: ProcessCDR(1,14202502,1,1,2) [2025-01-08 13:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202502', 'tblTempUsageDetail_20' ) start [2025-01-08 13:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202502', 'tblTempUsageDetail_20' ) end [2025-01-08 13:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:20:34] Production.INFO: ==10017== Releasing lock... [2025-01-08 13:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:20:34] Production.INFO: 68.25 MB #Memory Used# [2025-01-08 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:21:05 [end_date_ymd] => 2025-01-08 13:21:05 [RateCDR] => 1 ) [2025-01-08 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:21:05' and `end` < '2025-01-08 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:21:23] Production.INFO: count ==5339 [2025-01-08 13:21:26] Production.ERROR: pbx CDR StartTime 2025-01-08 10:21:05 - End Time 2025-01-08 13:21:05 [2025-01-08 13:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202508', 'tblTempUsageDetail_20' ) start [2025-01-08 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202508', 'tblTempUsageDetail_20' ) end [2025-01-08 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202508', 'tblTempVendorCDR_20' ) start [2025-01-08 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202508', 'tblTempVendorCDR_20' ) end [2025-01-08 13:21:26] Production.INFO: ProcessCDR(1,14202508,1,1,2) [2025-01-08 13:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202508', 'tblTempUsageDetail_20' ) start [2025-01-08 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202508', 'tblTempUsageDetail_20' ) end [2025-01-08 13:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:21:31] Production.INFO: ==10095== Releasing lock... [2025-01-08 13:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:21:31] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:22:04 [end_date_ymd] => 2025-01-08 13:22:04 [RateCDR] => 1 ) [2025-01-08 13:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:22:04' and `end` < '2025-01-08 13:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:22:29] Production.INFO: count ==5319 [2025-01-08 13:22:31] Production.ERROR: pbx CDR StartTime 2025-01-08 10:22:04 - End Time 2025-01-08 13:22:04 [2025-01-08 13:22:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202513', 'tblTempUsageDetail_20' ) start [2025-01-08 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202513', 'tblTempUsageDetail_20' ) end [2025-01-08 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202513', 'tblTempVendorCDR_20' ) start [2025-01-08 13:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202513', 'tblTempVendorCDR_20' ) end [2025-01-08 13:22:32] Production.INFO: ProcessCDR(1,14202513,1,1,2) [2025-01-08 13:22:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:22:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:22:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:22:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202513', 'tblTempUsageDetail_20' ) start [2025-01-08 13:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202513', 'tblTempUsageDetail_20' ) end [2025-01-08 13:22:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:22:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:22:36] Production.INFO: ==10206== Releasing lock... [2025-01-08 13:22:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:22:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:23:05 [end_date_ymd] => 2025-01-08 13:23:05 [RateCDR] => 1 ) [2025-01-08 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:23:05' and `end` < '2025-01-08 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:23:20] Production.INFO: count ==5319 [2025-01-08 13:23:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:23:05 - End Time 2025-01-08 13:23:05 [2025-01-08 13:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202518', 'tblTempUsageDetail_20' ) start [2025-01-08 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202518', 'tblTempUsageDetail_20' ) end [2025-01-08 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202518', 'tblTempVendorCDR_20' ) start [2025-01-08 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202518', 'tblTempVendorCDR_20' ) end [2025-01-08 13:23:22] Production.INFO: ProcessCDR(1,14202518,1,1,2) [2025-01-08 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202518', 'tblTempUsageDetail_20' ) start [2025-01-08 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202518', 'tblTempUsageDetail_20' ) end [2025-01-08 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:23:27] Production.INFO: ==10276== Releasing lock... [2025-01-08 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:23:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:24:05 [end_date_ymd] => 2025-01-08 13:24:05 [RateCDR] => 1 ) [2025-01-08 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:24:05' and `end` < '2025-01-08 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:24:20] Production.INFO: count ==5311 [2025-01-08 13:24:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:24:05 - End Time 2025-01-08 13:24:05 [2025-01-08 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202523', 'tblTempUsageDetail_20' ) start [2025-01-08 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202523', 'tblTempUsageDetail_20' ) end [2025-01-08 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202523', 'tblTempVendorCDR_20' ) start [2025-01-08 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202523', 'tblTempVendorCDR_20' ) end [2025-01-08 13:24:22] Production.INFO: ProcessCDR(1,14202523,1,1,2) [2025-01-08 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202523', 'tblTempUsageDetail_20' ) start [2025-01-08 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202523', 'tblTempUsageDetail_20' ) end [2025-01-08 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:24:26] Production.INFO: ==10347== Releasing lock... [2025-01-08 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:24:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:25:05 [end_date_ymd] => 2025-01-08 13:25:05 [RateCDR] => 1 ) [2025-01-08 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:25:05' and `end` < '2025-01-08 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:25:19] Production.INFO: count ==5281 [2025-01-08 13:25:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:25:05 - End Time 2025-01-08 13:25:05 [2025-01-08 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202528', 'tblTempUsageDetail_20' ) start [2025-01-08 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202528', 'tblTempUsageDetail_20' ) end [2025-01-08 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202528', 'tblTempVendorCDR_20' ) start [2025-01-08 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202528', 'tblTempVendorCDR_20' ) end [2025-01-08 13:25:21] Production.INFO: ProcessCDR(1,14202528,1,1,2) [2025-01-08 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202528', 'tblTempUsageDetail_20' ) start [2025-01-08 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202528', 'tblTempUsageDetail_20' ) end [2025-01-08 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:25:26] Production.INFO: ==10417== Releasing lock... [2025-01-08 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:25:26] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:26:04 [end_date_ymd] => 2025-01-08 13:26:04 [RateCDR] => 1 ) [2025-01-08 13:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:26:04' and `end` < '2025-01-08 13:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:26:19] Production.INFO: count ==5277 [2025-01-08 13:26:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:26:04 - End Time 2025-01-08 13:26:04 [2025-01-08 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202533', 'tblTempUsageDetail_20' ) start [2025-01-08 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202533', 'tblTempUsageDetail_20' ) end [2025-01-08 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202533', 'tblTempVendorCDR_20' ) start [2025-01-08 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202533', 'tblTempVendorCDR_20' ) end [2025-01-08 13:26:21] Production.INFO: ProcessCDR(1,14202533,1,1,2) [2025-01-08 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202533', 'tblTempUsageDetail_20' ) start [2025-01-08 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202533', 'tblTempUsageDetail_20' ) end [2025-01-08 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:26:26] Production.INFO: ==10487== Releasing lock... [2025-01-08 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:26:26] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:27:05 [end_date_ymd] => 2025-01-08 13:27:05 [RateCDR] => 1 ) [2025-01-08 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:27:05' and `end` < '2025-01-08 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:27:20] Production.INFO: count ==5255 [2025-01-08 13:27:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:27:05 - End Time 2025-01-08 13:27:05 [2025-01-08 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202538', 'tblTempUsageDetail_20' ) start [2025-01-08 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202538', 'tblTempUsageDetail_20' ) end [2025-01-08 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202538', 'tblTempVendorCDR_20' ) start [2025-01-08 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202538', 'tblTempVendorCDR_20' ) end [2025-01-08 13:27:22] Production.INFO: ProcessCDR(1,14202538,1,1,2) [2025-01-08 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202538', 'tblTempUsageDetail_20' ) start [2025-01-08 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202538', 'tblTempUsageDetail_20' ) end [2025-01-08 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:27:27] Production.INFO: ==10561== Releasing lock... [2025-01-08 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:27:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:28:05 [end_date_ymd] => 2025-01-08 13:28:05 [RateCDR] => 1 ) [2025-01-08 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:28:05' and `end` < '2025-01-08 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:28:20] Production.INFO: count ==5275 [2025-01-08 13:28:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:28:05 - End Time 2025-01-08 13:28:05 [2025-01-08 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202543', 'tblTempUsageDetail_20' ) start [2025-01-08 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202543', 'tblTempUsageDetail_20' ) end [2025-01-08 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202543', 'tblTempVendorCDR_20' ) start [2025-01-08 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202543', 'tblTempVendorCDR_20' ) end [2025-01-08 13:28:22] Production.INFO: ProcessCDR(1,14202543,1,1,2) [2025-01-08 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202543', 'tblTempUsageDetail_20' ) start [2025-01-08 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202543', 'tblTempUsageDetail_20' ) end [2025-01-08 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:28:26] Production.INFO: ==10632== Releasing lock... [2025-01-08 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:28:26] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:29:04 [end_date_ymd] => 2025-01-08 13:29:04 [RateCDR] => 1 ) [2025-01-08 13:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:29:04' and `end` < '2025-01-08 13:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:29:19] Production.INFO: count ==5288 [2025-01-08 13:29:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:29:04 - End Time 2025-01-08 13:29:04 [2025-01-08 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202548', 'tblTempUsageDetail_20' ) start [2025-01-08 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202548', 'tblTempUsageDetail_20' ) end [2025-01-08 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202548', 'tblTempVendorCDR_20' ) start [2025-01-08 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202548', 'tblTempVendorCDR_20' ) end [2025-01-08 13:29:21] Production.INFO: ProcessCDR(1,14202548,1,1,2) [2025-01-08 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202548', 'tblTempUsageDetail_20' ) start [2025-01-08 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202548', 'tblTempUsageDetail_20' ) end [2025-01-08 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:29:25] Production.INFO: ==10705== Releasing lock... [2025-01-08 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:29:25] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:30:05 [end_date_ymd] => 2025-01-08 13:30:05 [RateCDR] => 1 ) [2025-01-08 13:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:30:05' and `end` < '2025-01-08 13:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:30:19] Production.INFO: count ==5291 [2025-01-08 13:30:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:30:05 - End Time 2025-01-08 13:30:05 [2025-01-08 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202554', 'tblTempUsageDetail_20' ) start [2025-01-08 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202554', 'tblTempUsageDetail_20' ) end [2025-01-08 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202554', 'tblTempVendorCDR_20' ) start [2025-01-08 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202554', 'tblTempVendorCDR_20' ) end [2025-01-08 13:30:22] Production.INFO: ProcessCDR(1,14202554,1,1,2) [2025-01-08 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202554', 'tblTempUsageDetail_20' ) start [2025-01-08 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202554', 'tblTempUsageDetail_20' ) end [2025-01-08 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:30:26] Production.INFO: ==10778== Releasing lock... [2025-01-08 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:30:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:31:04 [end_date_ymd] => 2025-01-08 13:31:04 [RateCDR] => 1 ) [2025-01-08 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:31:04' and `end` < '2025-01-08 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:31:18] Production.INFO: count ==5267 [2025-01-08 13:31:20] Production.ERROR: pbx CDR StartTime 2025-01-08 10:31:04 - End Time 2025-01-08 13:31:04 [2025-01-08 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202559', 'tblTempUsageDetail_20' ) start [2025-01-08 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202559', 'tblTempUsageDetail_20' ) end [2025-01-08 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202559', 'tblTempVendorCDR_20' ) start [2025-01-08 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202559', 'tblTempVendorCDR_20' ) end [2025-01-08 13:31:21] Production.INFO: ProcessCDR(1,14202559,1,1,2) [2025-01-08 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202559', 'tblTempUsageDetail_20' ) start [2025-01-08 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202559', 'tblTempUsageDetail_20' ) end [2025-01-08 13:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:31:24] Production.INFO: ==10850== Releasing lock... [2025-01-08 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:31:24] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:32:05 [end_date_ymd] => 2025-01-08 13:32:05 [RateCDR] => 1 ) [2025-01-08 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:32:05' and `end` < '2025-01-08 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:32:19] Production.INFO: count ==5252 [2025-01-08 13:32:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:32:05 - End Time 2025-01-08 13:32:05 [2025-01-08 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202564', 'tblTempUsageDetail_20' ) start [2025-01-08 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202564', 'tblTempUsageDetail_20' ) end [2025-01-08 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202564', 'tblTempVendorCDR_20' ) start [2025-01-08 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202564', 'tblTempVendorCDR_20' ) end [2025-01-08 13:32:21] Production.INFO: ProcessCDR(1,14202564,1,1,2) [2025-01-08 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202564', 'tblTempUsageDetail_20' ) start [2025-01-08 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202564', 'tblTempUsageDetail_20' ) end [2025-01-08 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:32:26] Production.INFO: ==10921== Releasing lock... [2025-01-08 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:32:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:33:06 [end_date_ymd] => 2025-01-08 13:33:06 [RateCDR] => 1 ) [2025-01-08 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:33:06' and `end` < '2025-01-08 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:33:20] Production.INFO: count ==5256 [2025-01-08 13:33:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:33:06 - End Time 2025-01-08 13:33:06 [2025-01-08 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202569', 'tblTempUsageDetail_20' ) start [2025-01-08 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202569', 'tblTempUsageDetail_20' ) end [2025-01-08 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202569', 'tblTempVendorCDR_20' ) start [2025-01-08 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202569', 'tblTempVendorCDR_20' ) end [2025-01-08 13:33:22] Production.INFO: ProcessCDR(1,14202569,1,1,2) [2025-01-08 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202569', 'tblTempUsageDetail_20' ) start [2025-01-08 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202569', 'tblTempUsageDetail_20' ) end [2025-01-08 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:33:27] Production.INFO: ==10993== Releasing lock... [2025-01-08 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:33:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:34:05 [end_date_ymd] => 2025-01-08 13:34:05 [RateCDR] => 1 ) [2025-01-08 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:34:05' and `end` < '2025-01-08 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:34:23] Production.INFO: count ==5268 [2025-01-08 13:34:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:34:05 - End Time 2025-01-08 13:34:05 [2025-01-08 13:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202574', 'tblTempUsageDetail_20' ) start [2025-01-08 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202574', 'tblTempUsageDetail_20' ) end [2025-01-08 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202574', 'tblTempVendorCDR_20' ) start [2025-01-08 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202574', 'tblTempVendorCDR_20' ) end [2025-01-08 13:34:25] Production.INFO: ProcessCDR(1,14202574,1,1,2) [2025-01-08 13:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202574', 'tblTempUsageDetail_20' ) start [2025-01-08 13:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202574', 'tblTempUsageDetail_20' ) end [2025-01-08 13:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:34:30] Production.INFO: ==11063== Releasing lock... [2025-01-08 13:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:34:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:35:05 [end_date_ymd] => 2025-01-08 13:35:05 [RateCDR] => 1 ) [2025-01-08 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:35:05' and `end` < '2025-01-08 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:35:21] Production.INFO: count ==5282 [2025-01-08 13:35:23] Production.ERROR: pbx CDR StartTime 2025-01-08 10:35:05 - End Time 2025-01-08 13:35:05 [2025-01-08 13:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202579', 'tblTempUsageDetail_20' ) start [2025-01-08 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202579', 'tblTempUsageDetail_20' ) end [2025-01-08 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202579', 'tblTempVendorCDR_20' ) start [2025-01-08 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202579', 'tblTempVendorCDR_20' ) end [2025-01-08 13:35:23] Production.INFO: ProcessCDR(1,14202579,1,1,2) [2025-01-08 13:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202579', 'tblTempUsageDetail_20' ) start [2025-01-08 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202579', 'tblTempUsageDetail_20' ) end [2025-01-08 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:35:27] Production.INFO: ==11133== Releasing lock... [2025-01-08 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:35:27] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:36:05 [end_date_ymd] => 2025-01-08 13:36:05 [RateCDR] => 1 ) [2025-01-08 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:36:05' and `end` < '2025-01-08 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:36:19] Production.INFO: count ==5240 [2025-01-08 13:36:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:36:05 - End Time 2025-01-08 13:36:05 [2025-01-08 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202584', 'tblTempUsageDetail_20' ) start [2025-01-08 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202584', 'tblTempUsageDetail_20' ) end [2025-01-08 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202584', 'tblTempVendorCDR_20' ) start [2025-01-08 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202584', 'tblTempVendorCDR_20' ) end [2025-01-08 13:36:22] Production.INFO: ProcessCDR(1,14202584,1,1,2) [2025-01-08 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202584', 'tblTempUsageDetail_20' ) start [2025-01-08 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202584', 'tblTempUsageDetail_20' ) end [2025-01-08 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:36:26] Production.INFO: ==11210== Releasing lock... [2025-01-08 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:36:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:37:05 [end_date_ymd] => 2025-01-08 13:37:05 [RateCDR] => 1 ) [2025-01-08 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:37:05' and `end` < '2025-01-08 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:37:28] Production.INFO: count ==5259 [2025-01-08 13:37:30] Production.ERROR: pbx CDR StartTime 2025-01-08 10:37:05 - End Time 2025-01-08 13:37:05 [2025-01-08 13:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202589', 'tblTempUsageDetail_20' ) start [2025-01-08 13:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202589', 'tblTempUsageDetail_20' ) end [2025-01-08 13:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202589', 'tblTempVendorCDR_20' ) start [2025-01-08 13:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202589', 'tblTempVendorCDR_20' ) end [2025-01-08 13:37:30] Production.INFO: ProcessCDR(1,14202589,1,1,2) [2025-01-08 13:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202589', 'tblTempUsageDetail_20' ) start [2025-01-08 13:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202589', 'tblTempUsageDetail_20' ) end [2025-01-08 13:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:37:35] Production.INFO: ==11321== Releasing lock... [2025-01-08 13:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:37:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:38:05 [end_date_ymd] => 2025-01-08 13:38:05 [RateCDR] => 1 ) [2025-01-08 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:38:05' and `end` < '2025-01-08 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:38:21] Production.INFO: count ==5246 [2025-01-08 13:38:23] Production.ERROR: pbx CDR StartTime 2025-01-08 10:38:05 - End Time 2025-01-08 13:38:05 [2025-01-08 13:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202594', 'tblTempUsageDetail_20' ) start [2025-01-08 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202594', 'tblTempUsageDetail_20' ) end [2025-01-08 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202594', 'tblTempVendorCDR_20' ) start [2025-01-08 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202594', 'tblTempVendorCDR_20' ) end [2025-01-08 13:38:23] Production.INFO: ProcessCDR(1,14202594,1,1,2) [2025-01-08 13:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202594', 'tblTempUsageDetail_20' ) start [2025-01-08 13:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202594', 'tblTempUsageDetail_20' ) end [2025-01-08 13:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:38:28] Production.INFO: ==11392== Releasing lock... [2025-01-08 13:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:38:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:39:05 [end_date_ymd] => 2025-01-08 13:39:05 [RateCDR] => 1 ) [2025-01-08 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:39:05' and `end` < '2025-01-08 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:39:20] Production.INFO: count ==5221 [2025-01-08 13:39:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:39:05 - End Time 2025-01-08 13:39:05 [2025-01-08 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202599', 'tblTempUsageDetail_20' ) start [2025-01-08 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202599', 'tblTempUsageDetail_20' ) end [2025-01-08 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202599', 'tblTempVendorCDR_20' ) start [2025-01-08 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202599', 'tblTempVendorCDR_20' ) end [2025-01-08 13:39:23] Production.INFO: ProcessCDR(1,14202599,1,1,2) [2025-01-08 13:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202599', 'tblTempUsageDetail_20' ) start [2025-01-08 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202599', 'tblTempUsageDetail_20' ) end [2025-01-08 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:39:27] Production.INFO: ==11462== Releasing lock... [2025-01-08 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:39:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:40:05 [end_date_ymd] => 2025-01-08 13:40:05 [RateCDR] => 1 ) [2025-01-08 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:40:05' and `end` < '2025-01-08 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:40:25] Production.INFO: count ==5211 [2025-01-08 13:40:27] Production.ERROR: pbx CDR StartTime 2025-01-08 10:40:05 - End Time 2025-01-08 13:40:05 [2025-01-08 13:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202605', 'tblTempUsageDetail_20' ) start [2025-01-08 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202605', 'tblTempUsageDetail_20' ) end [2025-01-08 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202605', 'tblTempVendorCDR_20' ) start [2025-01-08 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202605', 'tblTempVendorCDR_20' ) end [2025-01-08 13:40:28] Production.INFO: ProcessCDR(1,14202605,1,1,2) [2025-01-08 13:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202605', 'tblTempUsageDetail_20' ) start [2025-01-08 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202605', 'tblTempUsageDetail_20' ) end [2025-01-08 13:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:40:32] Production.INFO: ==11538== Releasing lock... [2025-01-08 13:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:40:32] Production.INFO: 67 MB #Memory Used# [2025-01-08 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:41:05 [end_date_ymd] => 2025-01-08 13:41:05 [RateCDR] => 1 ) [2025-01-08 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:41:05' and `end` < '2025-01-08 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:41:25] Production.INFO: count ==5228 [2025-01-08 13:41:27] Production.ERROR: pbx CDR StartTime 2025-01-08 10:41:05 - End Time 2025-01-08 13:41:05 [2025-01-08 13:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202610', 'tblTempUsageDetail_20' ) start [2025-01-08 13:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202610', 'tblTempUsageDetail_20' ) end [2025-01-08 13:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202610', 'tblTempVendorCDR_20' ) start [2025-01-08 13:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202610', 'tblTempVendorCDR_20' ) end [2025-01-08 13:41:27] Production.INFO: ProcessCDR(1,14202610,1,1,2) [2025-01-08 13:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202610', 'tblTempUsageDetail_20' ) start [2025-01-08 13:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202610', 'tblTempUsageDetail_20' ) end [2025-01-08 13:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:41:32] Production.INFO: ==11613== Releasing lock... [2025-01-08 13:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:41:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:42:05 [end_date_ymd] => 2025-01-08 13:42:05 [RateCDR] => 1 ) [2025-01-08 13:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:42:05' and `end` < '2025-01-08 13:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:42:28] Production.INFO: count ==5219 [2025-01-08 13:42:30] Production.ERROR: pbx CDR StartTime 2025-01-08 10:42:05 - End Time 2025-01-08 13:42:05 [2025-01-08 13:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202615', 'tblTempUsageDetail_20' ) start [2025-01-08 13:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202615', 'tblTempUsageDetail_20' ) end [2025-01-08 13:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202615', 'tblTempVendorCDR_20' ) start [2025-01-08 13:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202615', 'tblTempVendorCDR_20' ) end [2025-01-08 13:42:30] Production.INFO: ProcessCDR(1,14202615,1,1,2) [2025-01-08 13:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202615', 'tblTempUsageDetail_20' ) start [2025-01-08 13:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202615', 'tblTempUsageDetail_20' ) end [2025-01-08 13:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:42:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:42:35] Production.INFO: ==11691== Releasing lock... [2025-01-08 13:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:42:35] Production.INFO: 67 MB #Memory Used# [2025-01-08 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:43:04 [end_date_ymd] => 2025-01-08 13:43:04 [RateCDR] => 1 ) [2025-01-08 13:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:43:04' and `end` < '2025-01-08 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:43:23] Production.INFO: count ==5221 [2025-01-08 13:43:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:43:04 - End Time 2025-01-08 13:43:04 [2025-01-08 13:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202620', 'tblTempUsageDetail_20' ) start [2025-01-08 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202620', 'tblTempUsageDetail_20' ) end [2025-01-08 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202620', 'tblTempVendorCDR_20' ) start [2025-01-08 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202620', 'tblTempVendorCDR_20' ) end [2025-01-08 13:43:25] Production.INFO: ProcessCDR(1,14202620,1,1,2) [2025-01-08 13:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202620', 'tblTempUsageDetail_20' ) start [2025-01-08 13:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202620', 'tblTempUsageDetail_20' ) end [2025-01-08 13:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:43:30] Production.INFO: ==11761== Releasing lock... [2025-01-08 13:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:43:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:44:05 [end_date_ymd] => 2025-01-08 13:44:05 [RateCDR] => 1 ) [2025-01-08 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:44:05' and `end` < '2025-01-08 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:44:21] Production.INFO: count ==5218 [2025-01-08 13:44:23] Production.ERROR: pbx CDR StartTime 2025-01-08 10:44:05 - End Time 2025-01-08 13:44:05 [2025-01-08 13:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202625', 'tblTempUsageDetail_20' ) start [2025-01-08 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202625', 'tblTempUsageDetail_20' ) end [2025-01-08 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202625', 'tblTempVendorCDR_20' ) start [2025-01-08 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202625', 'tblTempVendorCDR_20' ) end [2025-01-08 13:44:23] Production.INFO: ProcessCDR(1,14202625,1,1,2) [2025-01-08 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202625', 'tblTempUsageDetail_20' ) start [2025-01-08 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202625', 'tblTempUsageDetail_20' ) end [2025-01-08 13:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:44:27] Production.INFO: ==11834== Releasing lock... [2025-01-08 13:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:44:27] Production.INFO: 67 MB #Memory Used# [2025-01-08 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:45:04 [end_date_ymd] => 2025-01-08 13:45:04 [RateCDR] => 1 ) [2025-01-08 13:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:45:04' and `end` < '2025-01-08 13:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:45:23] Production.INFO: count ==5184 [2025-01-08 13:45:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:45:04 - End Time 2025-01-08 13:45:04 [2025-01-08 13:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202630', 'tblTempUsageDetail_20' ) start [2025-01-08 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202630', 'tblTempUsageDetail_20' ) end [2025-01-08 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202630', 'tblTempVendorCDR_20' ) start [2025-01-08 13:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202630', 'tblTempVendorCDR_20' ) end [2025-01-08 13:45:25] Production.INFO: ProcessCDR(1,14202630,1,1,2) [2025-01-08 13:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202630', 'tblTempUsageDetail_20' ) start [2025-01-08 13:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202630', 'tblTempUsageDetail_20' ) end [2025-01-08 13:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:45:30] Production.INFO: ==11905== Releasing lock... [2025-01-08 13:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:45:30] Production.INFO: 66.75 MB #Memory Used# [2025-01-08 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:46:05 [end_date_ymd] => 2025-01-08 13:46:05 [RateCDR] => 1 ) [2025-01-08 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:46:05' and `end` < '2025-01-08 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:46:19] Production.INFO: count ==5180 [2025-01-08 13:46:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:46:05 - End Time 2025-01-08 13:46:05 [2025-01-08 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202635', 'tblTempUsageDetail_20' ) start [2025-01-08 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202635', 'tblTempUsageDetail_20' ) end [2025-01-08 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202635', 'tblTempVendorCDR_20' ) start [2025-01-08 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202635', 'tblTempVendorCDR_20' ) end [2025-01-08 13:46:22] Production.INFO: ProcessCDR(1,14202635,1,1,2) [2025-01-08 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202635', 'tblTempUsageDetail_20' ) start [2025-01-08 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202635', 'tblTempUsageDetail_20' ) end [2025-01-08 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:46:26] Production.INFO: ==11983== Releasing lock... [2025-01-08 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:46:26] Production.INFO: 66.75 MB #Memory Used# [2025-01-08 13:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:47:04 [end_date_ymd] => 2025-01-08 13:47:04 [RateCDR] => 1 ) [2025-01-08 13:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:47:04' and `end` < '2025-01-08 13:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:47:19] Production.INFO: count ==5196 [2025-01-08 13:47:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:47:04 - End Time 2025-01-08 13:47:04 [2025-01-08 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202640', 'tblTempUsageDetail_20' ) start [2025-01-08 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202640', 'tblTempUsageDetail_20' ) end [2025-01-08 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202640', 'tblTempVendorCDR_20' ) start [2025-01-08 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202640', 'tblTempVendorCDR_20' ) end [2025-01-08 13:47:21] Production.INFO: ProcessCDR(1,14202640,1,1,2) [2025-01-08 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202640', 'tblTempUsageDetail_20' ) start [2025-01-08 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202640', 'tblTempUsageDetail_20' ) end [2025-01-08 13:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:47:25] Production.INFO: ==12066== Releasing lock... [2025-01-08 13:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:47:25] Production.INFO: 67 MB #Memory Used# [2025-01-08 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:48:05 [end_date_ymd] => 2025-01-08 13:48:05 [RateCDR] => 1 ) [2025-01-08 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:48:05' and `end` < '2025-01-08 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:48:23] Production.INFO: count ==5195 [2025-01-08 13:48:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:48:05 - End Time 2025-01-08 13:48:05 [2025-01-08 13:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202645', 'tblTempUsageDetail_20' ) start [2025-01-08 13:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202645', 'tblTempUsageDetail_20' ) end [2025-01-08 13:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202645', 'tblTempVendorCDR_20' ) start [2025-01-08 13:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202645', 'tblTempVendorCDR_20' ) end [2025-01-08 13:48:25] Production.INFO: ProcessCDR(1,14202645,1,1,2) [2025-01-08 13:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202645', 'tblTempUsageDetail_20' ) start [2025-01-08 13:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202645', 'tblTempUsageDetail_20' ) end [2025-01-08 13:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:48:30] Production.INFO: ==12149== Releasing lock... [2025-01-08 13:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:48:30] Production.INFO: 67 MB #Memory Used# [2025-01-08 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:49:05 [end_date_ymd] => 2025-01-08 13:49:05 [RateCDR] => 1 ) [2025-01-08 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:49:05' and `end` < '2025-01-08 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:49:23] Production.INFO: count ==5228 [2025-01-08 13:49:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:49:05 - End Time 2025-01-08 13:49:05 [2025-01-08 13:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202650', 'tblTempUsageDetail_20' ) start [2025-01-08 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202650', 'tblTempUsageDetail_20' ) end [2025-01-08 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202650', 'tblTempVendorCDR_20' ) start [2025-01-08 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202650', 'tblTempVendorCDR_20' ) end [2025-01-08 13:49:25] Production.INFO: ProcessCDR(1,14202650,1,1,2) [2025-01-08 13:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202650', 'tblTempUsageDetail_20' ) start [2025-01-08 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202650', 'tblTempUsageDetail_20' ) end [2025-01-08 13:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:49:30] Production.INFO: ==12228== Releasing lock... [2025-01-08 13:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:49:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:50:05 [end_date_ymd] => 2025-01-08 13:50:05 [RateCDR] => 1 ) [2025-01-08 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:50:05' and `end` < '2025-01-08 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:50:19] Production.INFO: count ==5244 [2025-01-08 13:50:21] Production.ERROR: pbx CDR StartTime 2025-01-08 10:50:05 - End Time 2025-01-08 13:50:05 [2025-01-08 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202656', 'tblTempUsageDetail_20' ) start [2025-01-08 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202656', 'tblTempUsageDetail_20' ) end [2025-01-08 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202656', 'tblTempVendorCDR_20' ) start [2025-01-08 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202656', 'tblTempVendorCDR_20' ) end [2025-01-08 13:50:21] Production.INFO: ProcessCDR(1,14202656,1,1,2) [2025-01-08 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202656', 'tblTempUsageDetail_20' ) start [2025-01-08 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202656', 'tblTempUsageDetail_20' ) end [2025-01-08 13:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:50:26] Production.INFO: ==12314== Releasing lock... [2025-01-08 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:50:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:51:05 [end_date_ymd] => 2025-01-08 13:51:05 [RateCDR] => 1 ) [2025-01-08 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:51:05' and `end` < '2025-01-08 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:51:25] Production.INFO: count ==5244 [2025-01-08 13:51:27] Production.ERROR: pbx CDR StartTime 2025-01-08 10:51:05 - End Time 2025-01-08 13:51:05 [2025-01-08 13:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202661', 'tblTempUsageDetail_20' ) start [2025-01-08 13:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202661', 'tblTempUsageDetail_20' ) end [2025-01-08 13:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202661', 'tblTempVendorCDR_20' ) start [2025-01-08 13:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202661', 'tblTempVendorCDR_20' ) end [2025-01-08 13:51:27] Production.INFO: ProcessCDR(1,14202661,1,1,2) [2025-01-08 13:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202661', 'tblTempUsageDetail_20' ) start [2025-01-08 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202661', 'tblTempUsageDetail_20' ) end [2025-01-08 13:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:51:30] Production.INFO: ==12397== Releasing lock... [2025-01-08 13:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:51:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:52:04 [end_date_ymd] => 2025-01-08 13:52:04 [RateCDR] => 1 ) [2025-01-08 13:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:52:04' and `end` < '2025-01-08 13:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:52:27] Production.INFO: count ==5239 [2025-01-08 13:52:29] Production.ERROR: pbx CDR StartTime 2025-01-08 10:52:04 - End Time 2025-01-08 13:52:04 [2025-01-08 13:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202666', 'tblTempUsageDetail_20' ) start [2025-01-08 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202666', 'tblTempUsageDetail_20' ) end [2025-01-08 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202666', 'tblTempVendorCDR_20' ) start [2025-01-08 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202666', 'tblTempVendorCDR_20' ) end [2025-01-08 13:52:29] Production.INFO: ProcessCDR(1,14202666,1,1,2) [2025-01-08 13:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202666', 'tblTempUsageDetail_20' ) start [2025-01-08 13:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202666', 'tblTempUsageDetail_20' ) end [2025-01-08 13:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:52:32] Production.INFO: ==12473== Releasing lock... [2025-01-08 13:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:52:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:53:04 [end_date_ymd] => 2025-01-08 13:53:04 [RateCDR] => 1 ) [2025-01-08 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:53:04' and `end` < '2025-01-08 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:53:34] Production.INFO: count ==5261 [2025-01-08 13:53:36] Production.ERROR: pbx CDR StartTime 2025-01-08 10:53:04 - End Time 2025-01-08 13:53:04 [2025-01-08 13:53:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202671', 'tblTempUsageDetail_20' ) start [2025-01-08 13:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202671', 'tblTempUsageDetail_20' ) end [2025-01-08 13:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202671', 'tblTempVendorCDR_20' ) start [2025-01-08 13:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202671', 'tblTempVendorCDR_20' ) end [2025-01-08 13:53:36] Production.INFO: ProcessCDR(1,14202671,1,1,2) [2025-01-08 13:53:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:53:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:53:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:53:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:53:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202671', 'tblTempUsageDetail_20' ) start [2025-01-08 13:53:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202671', 'tblTempUsageDetail_20' ) end [2025-01-08 13:53:40] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:53:40] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:53:40] Production.INFO: ==12597== Releasing lock... [2025-01-08 13:53:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:53:40] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:54:05 [end_date_ymd] => 2025-01-08 13:54:05 [RateCDR] => 1 ) [2025-01-08 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:54:05' and `end` < '2025-01-08 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:54:23] Production.INFO: count ==5262 [2025-01-08 13:54:25] Production.ERROR: pbx CDR StartTime 2025-01-08 10:54:05 - End Time 2025-01-08 13:54:05 [2025-01-08 13:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202676', 'tblTempUsageDetail_20' ) start [2025-01-08 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202676', 'tblTempUsageDetail_20' ) end [2025-01-08 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202676', 'tblTempVendorCDR_20' ) start [2025-01-08 13:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202676', 'tblTempVendorCDR_20' ) end [2025-01-08 13:54:26] Production.INFO: ProcessCDR(1,14202676,1,1,2) [2025-01-08 13:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202676', 'tblTempUsageDetail_20' ) start [2025-01-08 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202676', 'tblTempUsageDetail_20' ) end [2025-01-08 13:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:54:30] Production.INFO: ==12685== Releasing lock... [2025-01-08 13:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:54:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:55:05 [end_date_ymd] => 2025-01-08 13:55:05 [RateCDR] => 1 ) [2025-01-08 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:55:05' and `end` < '2025-01-08 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:55:26] Production.INFO: count ==5275 [2025-01-08 13:55:28] Production.ERROR: pbx CDR StartTime 2025-01-08 10:55:05 - End Time 2025-01-08 13:55:05 [2025-01-08 13:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202681', 'tblTempUsageDetail_20' ) start [2025-01-08 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202681', 'tblTempUsageDetail_20' ) end [2025-01-08 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202681', 'tblTempVendorCDR_20' ) start [2025-01-08 13:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202681', 'tblTempVendorCDR_20' ) end [2025-01-08 13:55:28] Production.INFO: ProcessCDR(1,14202681,1,1,2) [2025-01-08 13:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202681', 'tblTempUsageDetail_20' ) start [2025-01-08 13:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202681', 'tblTempUsageDetail_20' ) end [2025-01-08 13:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:55:33] Production.INFO: ==12770== Releasing lock... [2025-01-08 13:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:55:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:56:05 [end_date_ymd] => 2025-01-08 13:56:05 [RateCDR] => 1 ) [2025-01-08 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:56:05' and `end` < '2025-01-08 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:56:26] Production.INFO: count ==5327 [2025-01-08 13:56:28] Production.ERROR: pbx CDR StartTime 2025-01-08 10:56:05 - End Time 2025-01-08 13:56:05 [2025-01-08 13:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202686', 'tblTempUsageDetail_20' ) start [2025-01-08 13:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202686', 'tblTempUsageDetail_20' ) end [2025-01-08 13:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202686', 'tblTempVendorCDR_20' ) start [2025-01-08 13:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202686', 'tblTempVendorCDR_20' ) end [2025-01-08 13:56:29] Production.INFO: ProcessCDR(1,14202686,1,1,2) [2025-01-08 13:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202686', 'tblTempUsageDetail_20' ) start [2025-01-08 13:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202686', 'tblTempUsageDetail_20' ) end [2025-01-08 13:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:56:33] Production.INFO: ==12856== Releasing lock... [2025-01-08 13:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:56:33] Production.INFO: 68 MB #Memory Used# [2025-01-08 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:57:04 [end_date_ymd] => 2025-01-08 13:57:04 [RateCDR] => 1 ) [2025-01-08 13:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:57:04' and `end` < '2025-01-08 13:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:57:20] Production.INFO: count ==5322 [2025-01-08 13:57:22] Production.ERROR: pbx CDR StartTime 2025-01-08 10:57:04 - End Time 2025-01-08 13:57:04 [2025-01-08 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202691', 'tblTempUsageDetail_20' ) start [2025-01-08 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202691', 'tblTempUsageDetail_20' ) end [2025-01-08 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202691', 'tblTempVendorCDR_20' ) start [2025-01-08 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202691', 'tblTempVendorCDR_20' ) end [2025-01-08 13:57:22] Production.INFO: ProcessCDR(1,14202691,1,1,2) [2025-01-08 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202691', 'tblTempUsageDetail_20' ) start [2025-01-08 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202691', 'tblTempUsageDetail_20' ) end [2025-01-08 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:57:27] Production.INFO: ==12936== Releasing lock... [2025-01-08 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:57:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:58:05 [end_date_ymd] => 2025-01-08 13:58:05 [RateCDR] => 1 ) [2025-01-08 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:58:05' and `end` < '2025-01-08 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:58:31] Production.INFO: count ==5323 [2025-01-08 13:58:34] Production.ERROR: pbx CDR StartTime 2025-01-08 10:58:05 - End Time 2025-01-08 13:58:05 [2025-01-08 13:58:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202696', 'tblTempUsageDetail_20' ) start [2025-01-08 13:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202696', 'tblTempUsageDetail_20' ) end [2025-01-08 13:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202696', 'tblTempVendorCDR_20' ) start [2025-01-08 13:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202696', 'tblTempVendorCDR_20' ) end [2025-01-08 13:58:34] Production.INFO: ProcessCDR(1,14202696,1,1,2) [2025-01-08 13:58:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:58:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:58:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:58:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:58:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202696', 'tblTempUsageDetail_20' ) start [2025-01-08 13:58:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202696', 'tblTempUsageDetail_20' ) end [2025-01-08 13:58:38] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:58:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:58:38] Production.INFO: ==13020== Releasing lock... [2025-01-08 13:58:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:58:38] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 10:59:05 [end_date_ymd] => 2025-01-08 13:59:05 [RateCDR] => 1 ) [2025-01-08 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 10:59:05' and `end` < '2025-01-08 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 13:59:26] Production.INFO: count ==5325 [2025-01-08 13:59:29] Production.ERROR: pbx CDR StartTime 2025-01-08 10:59:05 - End Time 2025-01-08 13:59:05 [2025-01-08 13:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 13:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202701', 'tblTempUsageDetail_20' ) start [2025-01-08 13:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202701', 'tblTempUsageDetail_20' ) end [2025-01-08 13:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202701', 'tblTempVendorCDR_20' ) start [2025-01-08 13:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202701', 'tblTempVendorCDR_20' ) end [2025-01-08 13:59:29] Production.INFO: ProcessCDR(1,14202701,1,1,2) [2025-01-08 13:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 13:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 13:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202701', 'tblTempUsageDetail_20' ) start [2025-01-08 13:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202701', 'tblTempUsageDetail_20' ) end [2025-01-08 13:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 13:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 13:59:33] Production.INFO: ==13098== Releasing lock... [2025-01-08 13:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 13:59:33] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:00:05 [end_date_ymd] => 2025-01-08 14:00:05 [RateCDR] => 1 ) [2025-01-08 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:00:05' and `end` < '2025-01-08 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:00:23] Production.INFO: count ==5329 [2025-01-08 14:00:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:00:05 - End Time 2025-01-08 14:00:05 [2025-01-08 14:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202707', 'tblTempUsageDetail_20' ) start [2025-01-08 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202707', 'tblTempUsageDetail_20' ) end [2025-01-08 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202707', 'tblTempVendorCDR_20' ) start [2025-01-08 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202707', 'tblTempVendorCDR_20' ) end [2025-01-08 14:00:25] Production.INFO: ProcessCDR(1,14202707,1,1,2) [2025-01-08 14:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202707', 'tblTempUsageDetail_20' ) start [2025-01-08 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202707', 'tblTempUsageDetail_20' ) end [2025-01-08 14:00:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:00:30] Production.INFO: ==13183== Releasing lock... [2025-01-08 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:00:30] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:01:05 [end_date_ymd] => 2025-01-08 14:01:05 [RateCDR] => 1 ) [2025-01-08 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:01:05' and `end` < '2025-01-08 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:01:29] Production.INFO: count ==5340 [2025-01-08 14:01:31] Production.ERROR: pbx CDR StartTime 2025-01-08 11:01:05 - End Time 2025-01-08 14:01:05 [2025-01-08 14:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202712', 'tblTempUsageDetail_20' ) start [2025-01-08 14:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202712', 'tblTempUsageDetail_20' ) end [2025-01-08 14:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202712', 'tblTempVendorCDR_20' ) start [2025-01-08 14:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202712', 'tblTempVendorCDR_20' ) end [2025-01-08 14:01:31] Production.INFO: ProcessCDR(1,14202712,1,1,2) [2025-01-08 14:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:01:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202712', 'tblTempUsageDetail_20' ) start [2025-01-08 14:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202712', 'tblTempUsageDetail_20' ) end [2025-01-08 14:01:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:01:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:01:36] Production.INFO: ==13279== Releasing lock... [2025-01-08 14:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:01:36] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:02:04 [end_date_ymd] => 2025-01-08 14:02:04 [RateCDR] => 1 ) [2025-01-08 14:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:02:04' and `end` < '2025-01-08 14:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:02:24] Production.INFO: count ==5341 [2025-01-08 14:02:26] Production.ERROR: pbx CDR StartTime 2025-01-08 11:02:04 - End Time 2025-01-08 14:02:04 [2025-01-08 14:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202717', 'tblTempUsageDetail_20' ) start [2025-01-08 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202717', 'tblTempUsageDetail_20' ) end [2025-01-08 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202717', 'tblTempVendorCDR_20' ) start [2025-01-08 14:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202717', 'tblTempVendorCDR_20' ) end [2025-01-08 14:02:26] Production.INFO: ProcessCDR(1,14202717,1,1,2) [2025-01-08 14:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202717', 'tblTempUsageDetail_20' ) start [2025-01-08 14:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202717', 'tblTempUsageDetail_20' ) end [2025-01-08 14:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:02:31] Production.INFO: ==13362== Releasing lock... [2025-01-08 14:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:02:31] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:03:05 [end_date_ymd] => 2025-01-08 14:03:05 [RateCDR] => 1 ) [2025-01-08 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:03:05' and `end` < '2025-01-08 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:03:27] Production.INFO: count ==5326 [2025-01-08 14:03:29] Production.ERROR: pbx CDR StartTime 2025-01-08 11:03:05 - End Time 2025-01-08 14:03:05 [2025-01-08 14:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202722', 'tblTempUsageDetail_20' ) start [2025-01-08 14:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202722', 'tblTempUsageDetail_20' ) end [2025-01-08 14:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202722', 'tblTempVendorCDR_20' ) start [2025-01-08 14:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202722', 'tblTempVendorCDR_20' ) end [2025-01-08 14:03:29] Production.INFO: ProcessCDR(1,14202722,1,1,2) [2025-01-08 14:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202722', 'tblTempUsageDetail_20' ) start [2025-01-08 14:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202722', 'tblTempUsageDetail_20' ) end [2025-01-08 14:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:03:34] Production.INFO: ==13434== Releasing lock... [2025-01-08 14:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:03:34] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:04:04 [end_date_ymd] => 2025-01-08 14:04:04 [RateCDR] => 1 ) [2025-01-08 14:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:04:04' and `end` < '2025-01-08 14:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:04:22] Production.INFO: count ==5316 [2025-01-08 14:04:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:04:04 - End Time 2025-01-08 14:04:04 [2025-01-08 14:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202727', 'tblTempUsageDetail_20' ) start [2025-01-08 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202727', 'tblTempUsageDetail_20' ) end [2025-01-08 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202727', 'tblTempVendorCDR_20' ) start [2025-01-08 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202727', 'tblTempVendorCDR_20' ) end [2025-01-08 14:04:24] Production.INFO: ProcessCDR(1,14202727,1,1,2) [2025-01-08 14:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202727', 'tblTempUsageDetail_20' ) start [2025-01-08 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202727', 'tblTempUsageDetail_20' ) end [2025-01-08 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:04:28] Production.INFO: ==13511== Releasing lock... [2025-01-08 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:04:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:05:04 [end_date_ymd] => 2025-01-08 14:05:04 [RateCDR] => 1 ) [2025-01-08 14:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:05:04' and `end` < '2025-01-08 14:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:05:23] Production.INFO: count ==5336 [2025-01-08 14:05:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:05:04 - End Time 2025-01-08 14:05:04 [2025-01-08 14:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202732', 'tblTempUsageDetail_20' ) start [2025-01-08 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202732', 'tblTempUsageDetail_20' ) end [2025-01-08 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202732', 'tblTempVendorCDR_20' ) start [2025-01-08 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202732', 'tblTempVendorCDR_20' ) end [2025-01-08 14:05:25] Production.INFO: ProcessCDR(1,14202732,1,1,2) [2025-01-08 14:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202732', 'tblTempUsageDetail_20' ) start [2025-01-08 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202732', 'tblTempUsageDetail_20' ) end [2025-01-08 14:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:05:30] Production.INFO: ==13587== Releasing lock... [2025-01-08 14:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:05:30] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:06:05 [end_date_ymd] => 2025-01-08 14:06:05 [RateCDR] => 1 ) [2025-01-08 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:06:05' and `end` < '2025-01-08 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:06:20] Production.INFO: count ==5319 [2025-01-08 14:06:22] Production.ERROR: pbx CDR StartTime 2025-01-08 11:06:05 - End Time 2025-01-08 14:06:05 [2025-01-08 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202737', 'tblTempUsageDetail_20' ) start [2025-01-08 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202737', 'tblTempUsageDetail_20' ) end [2025-01-08 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202737', 'tblTempVendorCDR_20' ) start [2025-01-08 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202737', 'tblTempVendorCDR_20' ) end [2025-01-08 14:06:23] Production.INFO: ProcessCDR(1,14202737,1,1,2) [2025-01-08 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202737', 'tblTempUsageDetail_20' ) start [2025-01-08 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202737', 'tblTempUsageDetail_20' ) end [2025-01-08 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:06:27] Production.INFO: ==13662== Releasing lock... [2025-01-08 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:06:27] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:07:05 [end_date_ymd] => 2025-01-08 14:07:05 [RateCDR] => 1 ) [2025-01-08 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:07:05' and `end` < '2025-01-08 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:07:21] Production.INFO: count ==5304 [2025-01-08 14:07:23] Production.ERROR: pbx CDR StartTime 2025-01-08 11:07:05 - End Time 2025-01-08 14:07:05 [2025-01-08 14:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202742', 'tblTempUsageDetail_20' ) start [2025-01-08 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202742', 'tblTempUsageDetail_20' ) end [2025-01-08 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202742', 'tblTempVendorCDR_20' ) start [2025-01-08 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202742', 'tblTempVendorCDR_20' ) end [2025-01-08 14:07:23] Production.INFO: ProcessCDR(1,14202742,1,1,2) [2025-01-08 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202742', 'tblTempUsageDetail_20' ) start [2025-01-08 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202742', 'tblTempUsageDetail_20' ) end [2025-01-08 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:07:28] Production.INFO: ==13738== Releasing lock... [2025-01-08 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:07:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:08:05 [end_date_ymd] => 2025-01-08 14:08:05 [RateCDR] => 1 ) [2025-01-08 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:08:05' and `end` < '2025-01-08 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:08:21] Production.INFO: count ==5329 [2025-01-08 14:08:23] Production.ERROR: pbx CDR StartTime 2025-01-08 11:08:05 - End Time 2025-01-08 14:08:05 [2025-01-08 14:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202747', 'tblTempUsageDetail_20' ) start [2025-01-08 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202747', 'tblTempUsageDetail_20' ) end [2025-01-08 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202747', 'tblTempVendorCDR_20' ) start [2025-01-08 14:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202747', 'tblTempVendorCDR_20' ) end [2025-01-08 14:08:23] Production.INFO: ProcessCDR(1,14202747,1,1,2) [2025-01-08 14:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202747', 'tblTempUsageDetail_20' ) start [2025-01-08 14:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202747', 'tblTempUsageDetail_20' ) end [2025-01-08 14:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:08:28] Production.INFO: ==13813== Releasing lock... [2025-01-08 14:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:08:28] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:09:04 [end_date_ymd] => 2025-01-08 14:09:04 [RateCDR] => 1 ) [2025-01-08 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:09:04' and `end` < '2025-01-08 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:09:22] Production.INFO: count ==5353 [2025-01-08 14:09:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:09:04 - End Time 2025-01-08 14:09:04 [2025-01-08 14:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202752', 'tblTempUsageDetail_20' ) start [2025-01-08 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202752', 'tblTempUsageDetail_20' ) end [2025-01-08 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202752', 'tblTempVendorCDR_20' ) start [2025-01-08 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202752', 'tblTempVendorCDR_20' ) end [2025-01-08 14:09:25] Production.INFO: ProcessCDR(1,14202752,1,1,2) [2025-01-08 14:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202752', 'tblTempUsageDetail_20' ) start [2025-01-08 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202752', 'tblTempUsageDetail_20' ) end [2025-01-08 14:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:09:29] Production.INFO: ==13925== Releasing lock... [2025-01-08 14:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:09:29] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:10:05 [end_date_ymd] => 2025-01-08 14:10:05 [RateCDR] => 1 ) [2025-01-08 14:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:10:05' and `end` < '2025-01-08 14:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:10:35] Production.INFO: count ==5340 [2025-01-08 14:10:37] Production.ERROR: pbx CDR StartTime 2025-01-08 11:10:05 - End Time 2025-01-08 14:10:05 [2025-01-08 14:10:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202757', 'tblTempUsageDetail_20' ) start [2025-01-08 14:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202757', 'tblTempUsageDetail_20' ) end [2025-01-08 14:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202757', 'tblTempVendorCDR_20' ) start [2025-01-08 14:10:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202757', 'tblTempVendorCDR_20' ) end [2025-01-08 14:10:37] Production.INFO: ProcessCDR(1,14202757,1,1,2) [2025-01-08 14:10:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:10:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:10:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202757', 'tblTempUsageDetail_20' ) start [2025-01-08 14:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202757', 'tblTempUsageDetail_20' ) end [2025-01-08 14:10:42] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:10:42] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:10:42] Production.INFO: ==14002== Releasing lock... [2025-01-08 14:10:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:10:42] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:11:05 [end_date_ymd] => 2025-01-08 14:11:05 [RateCDR] => 1 ) [2025-01-08 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:11:05' and `end` < '2025-01-08 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:11:32] Production.INFO: count ==5367 [2025-01-08 14:11:34] Production.ERROR: pbx CDR StartTime 2025-01-08 11:11:05 - End Time 2025-01-08 14:11:05 [2025-01-08 14:11:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202763', 'tblTempUsageDetail_20' ) start [2025-01-08 14:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202763', 'tblTempUsageDetail_20' ) end [2025-01-08 14:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202763', 'tblTempVendorCDR_20' ) start [2025-01-08 14:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202763', 'tblTempVendorCDR_20' ) end [2025-01-08 14:11:34] Production.INFO: ProcessCDR(1,14202763,1,1,2) [2025-01-08 14:11:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:11:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:11:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:11:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202763', 'tblTempUsageDetail_20' ) start [2025-01-08 14:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202763', 'tblTempUsageDetail_20' ) end [2025-01-08 14:11:39] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:11:39] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:11:39] Production.INFO: ==14076== Releasing lock... [2025-01-08 14:11:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:11:39] Production.INFO: 68.25 MB #Memory Used# [2025-01-08 14:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:12:04 [end_date_ymd] => 2025-01-08 14:12:04 [RateCDR] => 1 ) [2025-01-08 14:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:12:04' and `end` < '2025-01-08 14:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:12:22] Production.INFO: count ==5366 [2025-01-08 14:12:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:12:04 - End Time 2025-01-08 14:12:04 [2025-01-08 14:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202768', 'tblTempUsageDetail_20' ) start [2025-01-08 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202768', 'tblTempUsageDetail_20' ) end [2025-01-08 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202768', 'tblTempVendorCDR_20' ) start [2025-01-08 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202768', 'tblTempVendorCDR_20' ) end [2025-01-08 14:12:24] Production.INFO: ProcessCDR(1,14202768,1,1,2) [2025-01-08 14:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202768', 'tblTempUsageDetail_20' ) start [2025-01-08 14:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202768', 'tblTempUsageDetail_20' ) end [2025-01-08 14:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:12:29] Production.INFO: ==14148== Releasing lock... [2025-01-08 14:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:12:29] Production.INFO: 68.25 MB #Memory Used# [2025-01-08 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:13:05 [end_date_ymd] => 2025-01-08 14:13:05 [RateCDR] => 1 ) [2025-01-08 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:13:05' and `end` < '2025-01-08 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:13:24] Production.INFO: count ==5348 [2025-01-08 14:13:26] Production.ERROR: pbx CDR StartTime 2025-01-08 11:13:05 - End Time 2025-01-08 14:13:05 [2025-01-08 14:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202773', 'tblTempUsageDetail_20' ) start [2025-01-08 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202773', 'tblTempUsageDetail_20' ) end [2025-01-08 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202773', 'tblTempVendorCDR_20' ) start [2025-01-08 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202773', 'tblTempVendorCDR_20' ) end [2025-01-08 14:13:26] Production.INFO: ProcessCDR(1,14202773,1,1,2) [2025-01-08 14:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202773', 'tblTempUsageDetail_20' ) start [2025-01-08 14:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202773', 'tblTempUsageDetail_20' ) end [2025-01-08 14:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:13:31] Production.INFO: ==14224== Releasing lock... [2025-01-08 14:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:13:31] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:14:05 [end_date_ymd] => 2025-01-08 14:14:05 [RateCDR] => 1 ) [2025-01-08 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:14:05' and `end` < '2025-01-08 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:14:23] Production.INFO: count ==5356 [2025-01-08 14:14:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:14:05 - End Time 2025-01-08 14:14:05 [2025-01-08 14:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202778', 'tblTempUsageDetail_20' ) start [2025-01-08 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202778', 'tblTempUsageDetail_20' ) end [2025-01-08 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202778', 'tblTempVendorCDR_20' ) start [2025-01-08 14:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202778', 'tblTempVendorCDR_20' ) end [2025-01-08 14:14:25] Production.INFO: ProcessCDR(1,14202778,1,1,2) [2025-01-08 14:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202778', 'tblTempUsageDetail_20' ) start [2025-01-08 14:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202778', 'tblTempUsageDetail_20' ) end [2025-01-08 14:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:14:31] Production.INFO: ==14295== Releasing lock... [2025-01-08 14:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:14:31] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:15:05 [end_date_ymd] => 2025-01-08 14:15:05 [RateCDR] => 1 ) [2025-01-08 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:15:05' and `end` < '2025-01-08 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:15:27] Production.INFO: count ==5338 [2025-01-08 14:15:29] Production.ERROR: pbx CDR StartTime 2025-01-08 11:15:05 - End Time 2025-01-08 14:15:05 [2025-01-08 14:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202783', 'tblTempUsageDetail_20' ) start [2025-01-08 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202783', 'tblTempUsageDetail_20' ) end [2025-01-08 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202783', 'tblTempVendorCDR_20' ) start [2025-01-08 14:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202783', 'tblTempVendorCDR_20' ) end [2025-01-08 14:15:29] Production.INFO: ProcessCDR(1,14202783,1,1,2) [2025-01-08 14:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202783', 'tblTempUsageDetail_20' ) start [2025-01-08 14:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202783', 'tblTempUsageDetail_20' ) end [2025-01-08 14:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:15:34] Production.INFO: ==14372== Releasing lock... [2025-01-08 14:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:15:34] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:16:04 [end_date_ymd] => 2025-01-08 14:16:04 [RateCDR] => 1 ) [2025-01-08 14:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:16:04' and `end` < '2025-01-08 14:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:16:22] Production.INFO: count ==5350 [2025-01-08 14:16:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:16:04 - End Time 2025-01-08 14:16:04 [2025-01-08 14:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202788', 'tblTempUsageDetail_20' ) start [2025-01-08 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202788', 'tblTempUsageDetail_20' ) end [2025-01-08 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202788', 'tblTempVendorCDR_20' ) start [2025-01-08 14:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202788', 'tblTempVendorCDR_20' ) end [2025-01-08 14:16:25] Production.INFO: ProcessCDR(1,14202788,1,1,2) [2025-01-08 14:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202788', 'tblTempUsageDetail_20' ) start [2025-01-08 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202788', 'tblTempUsageDetail_20' ) end [2025-01-08 14:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:16:29] Production.INFO: ==14442== Releasing lock... [2025-01-08 14:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:16:29] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:17:04 [end_date_ymd] => 2025-01-08 14:17:04 [RateCDR] => 1 ) [2025-01-08 14:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:17:04' and `end` < '2025-01-08 14:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:17:19] Production.INFO: count ==5320 [2025-01-08 14:17:21] Production.ERROR: pbx CDR StartTime 2025-01-08 11:17:04 - End Time 2025-01-08 14:17:04 [2025-01-08 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202793', 'tblTempUsageDetail_20' ) start [2025-01-08 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202793', 'tblTempUsageDetail_20' ) end [2025-01-08 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202793', 'tblTempVendorCDR_20' ) start [2025-01-08 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202793', 'tblTempVendorCDR_20' ) end [2025-01-08 14:17:21] Production.INFO: ProcessCDR(1,14202793,1,1,2) [2025-01-08 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202793', 'tblTempUsageDetail_20' ) start [2025-01-08 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202793', 'tblTempUsageDetail_20' ) end [2025-01-08 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:17:26] Production.INFO: ==14514== Releasing lock... [2025-01-08 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:17:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:18:06 [end_date_ymd] => 2025-01-08 14:18:06 [RateCDR] => 1 ) [2025-01-08 14:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:18:06' and `end` < '2025-01-08 14:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:18:24] Production.INFO: count ==5315 [2025-01-08 14:18:26] Production.ERROR: pbx CDR StartTime 2025-01-08 11:18:06 - End Time 2025-01-08 14:18:06 [2025-01-08 14:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202798', 'tblTempUsageDetail_20' ) start [2025-01-08 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202798', 'tblTempUsageDetail_20' ) end [2025-01-08 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202798', 'tblTempVendorCDR_20' ) start [2025-01-08 14:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202798', 'tblTempVendorCDR_20' ) end [2025-01-08 14:18:27] Production.INFO: ProcessCDR(1,14202798,1,1,2) [2025-01-08 14:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202798', 'tblTempUsageDetail_20' ) start [2025-01-08 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202798', 'tblTempUsageDetail_20' ) end [2025-01-08 14:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:18:32] Production.INFO: ==14585== Releasing lock... [2025-01-08 14:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:18:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:19:05 [end_date_ymd] => 2025-01-08 14:19:05 [RateCDR] => 1 ) [2025-01-08 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:19:05' and `end` < '2025-01-08 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:19:38] Production.INFO: count ==5305 [2025-01-08 14:19:40] Production.ERROR: pbx CDR StartTime 2025-01-08 11:19:05 - End Time 2025-01-08 14:19:05 [2025-01-08 14:19:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:19:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202803', 'tblTempUsageDetail_20' ) start [2025-01-08 14:19:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202803', 'tblTempUsageDetail_20' ) end [2025-01-08 14:19:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202803', 'tblTempVendorCDR_20' ) start [2025-01-08 14:19:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202803', 'tblTempVendorCDR_20' ) end [2025-01-08 14:19:40] Production.INFO: ProcessCDR(1,14202803,1,1,2) [2025-01-08 14:19:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:19:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:19:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:19:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:19:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202803', 'tblTempUsageDetail_20' ) start [2025-01-08 14:19:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202803', 'tblTempUsageDetail_20' ) end [2025-01-08 14:19:45] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:19:45] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:19:45] Production.INFO: ==14664== Releasing lock... [2025-01-08 14:19:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:19:45] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:20:06 [end_date_ymd] => 2025-01-08 14:20:06 [RateCDR] => 1 ) [2025-01-08 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:20:06' and `end` < '2025-01-08 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:20:37] Production.INFO: count ==5298 [2025-01-08 14:20:39] Production.ERROR: pbx CDR StartTime 2025-01-08 11:20:06 - End Time 2025-01-08 14:20:06 [2025-01-08 14:20:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202808', 'tblTempUsageDetail_20' ) start [2025-01-08 14:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202808', 'tblTempUsageDetail_20' ) end [2025-01-08 14:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202808', 'tblTempVendorCDR_20' ) start [2025-01-08 14:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202808', 'tblTempVendorCDR_20' ) end [2025-01-08 14:20:39] Production.INFO: ProcessCDR(1,14202808,1,1,2) [2025-01-08 14:20:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:20:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:20:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:20:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202808', 'tblTempUsageDetail_20' ) start [2025-01-08 14:20:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202808', 'tblTempUsageDetail_20' ) end [2025-01-08 14:20:43] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:20:44] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:20:44] Production.INFO: ==14738== Releasing lock... [2025-01-08 14:20:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:20:44] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:21:04 [end_date_ymd] => 2025-01-08 14:21:04 [RateCDR] => 1 ) [2025-01-08 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:21:04' and `end` < '2025-01-08 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:21:27] Production.INFO: count ==5258 [2025-01-08 14:21:29] Production.ERROR: pbx CDR StartTime 2025-01-08 11:21:04 - End Time 2025-01-08 14:21:04 [2025-01-08 14:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202814', 'tblTempUsageDetail_20' ) start [2025-01-08 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202814', 'tblTempUsageDetail_20' ) end [2025-01-08 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202814', 'tblTempVendorCDR_20' ) start [2025-01-08 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202814', 'tblTempVendorCDR_20' ) end [2025-01-08 14:21:29] Production.INFO: ProcessCDR(1,14202814,1,1,2) [2025-01-08 14:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202814', 'tblTempUsageDetail_20' ) start [2025-01-08 14:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202814', 'tblTempUsageDetail_20' ) end [2025-01-08 14:21:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:21:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:21:34] Production.INFO: ==14809== Releasing lock... [2025-01-08 14:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:21:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:22:05 [end_date_ymd] => 2025-01-08 14:22:05 [RateCDR] => 1 ) [2025-01-08 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:22:05' and `end` < '2025-01-08 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:22:22] Production.INFO: count ==5256 [2025-01-08 14:22:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:22:05 - End Time 2025-01-08 14:22:05 [2025-01-08 14:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202819', 'tblTempUsageDetail_20' ) start [2025-01-08 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202819', 'tblTempUsageDetail_20' ) end [2025-01-08 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202819', 'tblTempVendorCDR_20' ) start [2025-01-08 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202819', 'tblTempVendorCDR_20' ) end [2025-01-08 14:22:25] Production.INFO: ProcessCDR(1,14202819,1,1,2) [2025-01-08 14:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202819', 'tblTempUsageDetail_20' ) start [2025-01-08 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202819', 'tblTempUsageDetail_20' ) end [2025-01-08 14:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:22:30] Production.INFO: ==14881== Releasing lock... [2025-01-08 14:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:22:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:23:05 [end_date_ymd] => 2025-01-08 14:23:05 [RateCDR] => 1 ) [2025-01-08 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:23:05' and `end` < '2025-01-08 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:23:19] Production.INFO: count ==5266 [2025-01-08 14:23:21] Production.ERROR: pbx CDR StartTime 2025-01-08 11:23:05 - End Time 2025-01-08 14:23:05 [2025-01-08 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202824', 'tblTempUsageDetail_20' ) start [2025-01-08 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202824', 'tblTempUsageDetail_20' ) end [2025-01-08 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202824', 'tblTempVendorCDR_20' ) start [2025-01-08 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202824', 'tblTempVendorCDR_20' ) end [2025-01-08 14:23:21] Production.INFO: ProcessCDR(1,14202824,1,1,2) [2025-01-08 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202824', 'tblTempUsageDetail_20' ) start [2025-01-08 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202824', 'tblTempUsageDetail_20' ) end [2025-01-08 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:23:26] Production.INFO: ==14951== Releasing lock... [2025-01-08 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:23:26] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:24:04 [end_date_ymd] => 2025-01-08 14:24:04 [RateCDR] => 1 ) [2025-01-08 14:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:24:04' and `end` < '2025-01-08 14:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:24:27] Production.INFO: count ==5245 [2025-01-08 14:24:29] Production.ERROR: pbx CDR StartTime 2025-01-08 11:24:04 - End Time 2025-01-08 14:24:04 [2025-01-08 14:24:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202829', 'tblTempUsageDetail_20' ) start [2025-01-08 14:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202829', 'tblTempUsageDetail_20' ) end [2025-01-08 14:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202829', 'tblTempVendorCDR_20' ) start [2025-01-08 14:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202829', 'tblTempVendorCDR_20' ) end [2025-01-08 14:24:29] Production.INFO: ProcessCDR(1,14202829,1,1,2) [2025-01-08 14:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202829', 'tblTempUsageDetail_20' ) start [2025-01-08 14:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202829', 'tblTempUsageDetail_20' ) end [2025-01-08 14:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:24:34] Production.INFO: ==15060== Releasing lock... [2025-01-08 14:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:24:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:25:05 [end_date_ymd] => 2025-01-08 14:25:05 [RateCDR] => 1 ) [2025-01-08 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:25:05' and `end` < '2025-01-08 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:25:34] Production.INFO: count ==5262 [2025-01-08 14:25:36] Production.ERROR: pbx CDR StartTime 2025-01-08 11:25:05 - End Time 2025-01-08 14:25:05 [2025-01-08 14:25:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202834', 'tblTempUsageDetail_20' ) start [2025-01-08 14:25:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202834', 'tblTempUsageDetail_20' ) end [2025-01-08 14:25:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202834', 'tblTempVendorCDR_20' ) start [2025-01-08 14:25:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202834', 'tblTempVendorCDR_20' ) end [2025-01-08 14:25:37] Production.INFO: ProcessCDR(1,14202834,1,1,2) [2025-01-08 14:25:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:25:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:25:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:25:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202834', 'tblTempUsageDetail_20' ) start [2025-01-08 14:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202834', 'tblTempUsageDetail_20' ) end [2025-01-08 14:25:42] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:25:42] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:25:42] Production.INFO: ==15140== Releasing lock... [2025-01-08 14:25:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:25:42] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:26:05 [end_date_ymd] => 2025-01-08 14:26:05 [RateCDR] => 1 ) [2025-01-08 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:26:05' and `end` < '2025-01-08 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:26:28] Production.INFO: count ==5261 [2025-01-08 14:26:30] Production.ERROR: pbx CDR StartTime 2025-01-08 11:26:05 - End Time 2025-01-08 14:26:05 [2025-01-08 14:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202839', 'tblTempUsageDetail_20' ) start [2025-01-08 14:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202839', 'tblTempUsageDetail_20' ) end [2025-01-08 14:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202839', 'tblTempVendorCDR_20' ) start [2025-01-08 14:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202839', 'tblTempVendorCDR_20' ) end [2025-01-08 14:26:30] Production.INFO: ProcessCDR(1,14202839,1,1,2) [2025-01-08 14:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202839', 'tblTempUsageDetail_20' ) start [2025-01-08 14:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202839', 'tblTempUsageDetail_20' ) end [2025-01-08 14:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:26:35] Production.INFO: ==15214== Releasing lock... [2025-01-08 14:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:26:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:27:04 [end_date_ymd] => 2025-01-08 14:27:04 [RateCDR] => 1 ) [2025-01-08 14:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:27:04' and `end` < '2025-01-08 14:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:27:34] Production.INFO: count ==5263 [2025-01-08 14:27:36] Production.ERROR: pbx CDR StartTime 2025-01-08 11:27:04 - End Time 2025-01-08 14:27:04 [2025-01-08 14:27:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202844', 'tblTempUsageDetail_20' ) start [2025-01-08 14:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202844', 'tblTempUsageDetail_20' ) end [2025-01-08 14:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202844', 'tblTempVendorCDR_20' ) start [2025-01-08 14:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202844', 'tblTempVendorCDR_20' ) end [2025-01-08 14:27:36] Production.INFO: ProcessCDR(1,14202844,1,1,2) [2025-01-08 14:27:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:27:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:27:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:27:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202844', 'tblTempUsageDetail_20' ) start [2025-01-08 14:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202844', 'tblTempUsageDetail_20' ) end [2025-01-08 14:27:41] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:27:41] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:27:41] Production.INFO: ==15286== Releasing lock... [2025-01-08 14:27:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:27:41] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:28:05 [end_date_ymd] => 2025-01-08 14:28:05 [RateCDR] => 1 ) [2025-01-08 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:28:05' and `end` < '2025-01-08 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:28:23] Production.INFO: count ==5272 [2025-01-08 14:28:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:28:05 - End Time 2025-01-08 14:28:05 [2025-01-08 14:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202849', 'tblTempUsageDetail_20' ) start [2025-01-08 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202849', 'tblTempUsageDetail_20' ) end [2025-01-08 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202849', 'tblTempVendorCDR_20' ) start [2025-01-08 14:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202849', 'tblTempVendorCDR_20' ) end [2025-01-08 14:28:26] Production.INFO: ProcessCDR(1,14202849,1,1,2) [2025-01-08 14:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202849', 'tblTempUsageDetail_20' ) start [2025-01-08 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202849', 'tblTempUsageDetail_20' ) end [2025-01-08 14:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:28:30] Production.INFO: ==15358== Releasing lock... [2025-01-08 14:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:28:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:29:05 [end_date_ymd] => 2025-01-08 14:29:05 [RateCDR] => 1 ) [2025-01-08 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:29:05' and `end` < '2025-01-08 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:29:22] Production.INFO: count ==5283 [2025-01-08 14:29:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:29:05 - End Time 2025-01-08 14:29:05 [2025-01-08 14:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202854', 'tblTempUsageDetail_20' ) start [2025-01-08 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202854', 'tblTempUsageDetail_20' ) end [2025-01-08 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202854', 'tblTempVendorCDR_20' ) start [2025-01-08 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202854', 'tblTempVendorCDR_20' ) end [2025-01-08 14:29:24] Production.INFO: ProcessCDR(1,14202854,1,1,2) [2025-01-08 14:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202854', 'tblTempUsageDetail_20' ) start [2025-01-08 14:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202854', 'tblTempUsageDetail_20' ) end [2025-01-08 14:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:29:29] Production.INFO: ==15437== Releasing lock... [2025-01-08 14:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:29:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:30:06 [end_date_ymd] => 2025-01-08 14:30:06 [RateCDR] => 1 ) [2025-01-08 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:30:06' and `end` < '2025-01-08 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:30:22] Production.INFO: count ==5292 [2025-01-08 14:30:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:30:06 - End Time 2025-01-08 14:30:06 [2025-01-08 14:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202859', 'tblTempUsageDetail_20' ) start [2025-01-08 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202859', 'tblTempUsageDetail_20' ) end [2025-01-08 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202859', 'tblTempVendorCDR_20' ) start [2025-01-08 14:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202859', 'tblTempVendorCDR_20' ) end [2025-01-08 14:30:24] Production.INFO: ProcessCDR(1,14202859,1,1,2) [2025-01-08 14:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202859', 'tblTempUsageDetail_20' ) start [2025-01-08 14:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202859', 'tblTempUsageDetail_20' ) end [2025-01-08 14:30:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:30:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:30:29] Production.INFO: ==15523== Releasing lock... [2025-01-08 14:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:30:29] Production.INFO: 68 MB #Memory Used# [2025-01-08 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:31:05 [end_date_ymd] => 2025-01-08 14:31:05 [RateCDR] => 1 ) [2025-01-08 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:31:05' and `end` < '2025-01-08 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:31:29] Production.INFO: count ==5275 [2025-01-08 14:31:31] Production.ERROR: pbx CDR StartTime 2025-01-08 11:31:05 - End Time 2025-01-08 14:31:05 [2025-01-08 14:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202865', 'tblTempUsageDetail_20' ) start [2025-01-08 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202865', 'tblTempUsageDetail_20' ) end [2025-01-08 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202865', 'tblTempVendorCDR_20' ) start [2025-01-08 14:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202865', 'tblTempVendorCDR_20' ) end [2025-01-08 14:31:31] Production.INFO: ProcessCDR(1,14202865,1,1,2) [2025-01-08 14:31:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:31:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:31:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202865', 'tblTempUsageDetail_20' ) start [2025-01-08 14:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202865', 'tblTempUsageDetail_20' ) end [2025-01-08 14:31:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:31:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:31:36] Production.INFO: ==15610== Releasing lock... [2025-01-08 14:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:31:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:32:05 [end_date_ymd] => 2025-01-08 14:32:05 [RateCDR] => 1 ) [2025-01-08 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:32:05' and `end` < '2025-01-08 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:32:23] Production.INFO: count ==5274 [2025-01-08 14:32:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:32:05 - End Time 2025-01-08 14:32:05 [2025-01-08 14:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202870', 'tblTempUsageDetail_20' ) start [2025-01-08 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202870', 'tblTempUsageDetail_20' ) end [2025-01-08 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202870', 'tblTempVendorCDR_20' ) start [2025-01-08 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202870', 'tblTempVendorCDR_20' ) end [2025-01-08 14:32:25] Production.INFO: ProcessCDR(1,14202870,1,1,2) [2025-01-08 14:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202870', 'tblTempUsageDetail_20' ) start [2025-01-08 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202870', 'tblTempUsageDetail_20' ) end [2025-01-08 14:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:32:30] Production.INFO: ==15690== Releasing lock... [2025-01-08 14:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:32:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:33:06 [end_date_ymd] => 2025-01-08 14:33:06 [RateCDR] => 1 ) [2025-01-08 14:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:33:06' and `end` < '2025-01-08 14:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:33:24] Production.INFO: count ==5257 [2025-01-08 14:33:26] Production.ERROR: pbx CDR StartTime 2025-01-08 11:33:06 - End Time 2025-01-08 14:33:06 [2025-01-08 14:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202875', 'tblTempUsageDetail_20' ) start [2025-01-08 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202875', 'tblTempUsageDetail_20' ) end [2025-01-08 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202875', 'tblTempVendorCDR_20' ) start [2025-01-08 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202875', 'tblTempVendorCDR_20' ) end [2025-01-08 14:33:26] Production.INFO: ProcessCDR(1,14202875,1,1,2) [2025-01-08 14:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202875', 'tblTempUsageDetail_20' ) start [2025-01-08 14:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202875', 'tblTempUsageDetail_20' ) end [2025-01-08 14:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:33:31] Production.INFO: ==15776== Releasing lock... [2025-01-08 14:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:33:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:34:05 [end_date_ymd] => 2025-01-08 14:34:05 [RateCDR] => 1 ) [2025-01-08 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:34:05' and `end` < '2025-01-08 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:34:24] Production.INFO: count ==5259 [2025-01-08 14:34:26] Production.ERROR: pbx CDR StartTime 2025-01-08 11:34:05 - End Time 2025-01-08 14:34:05 [2025-01-08 14:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202880', 'tblTempUsageDetail_20' ) start [2025-01-08 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202880', 'tblTempUsageDetail_20' ) end [2025-01-08 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202880', 'tblTempVendorCDR_20' ) start [2025-01-08 14:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202880', 'tblTempVendorCDR_20' ) end [2025-01-08 14:34:26] Production.INFO: ProcessCDR(1,14202880,1,1,2) [2025-01-08 14:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202880', 'tblTempUsageDetail_20' ) start [2025-01-08 14:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202880', 'tblTempUsageDetail_20' ) end [2025-01-08 14:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:34:31] Production.INFO: ==15861== Releasing lock... [2025-01-08 14:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:34:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-08 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:35:05 [end_date_ymd] => 2025-01-08 14:35:05 [RateCDR] => 1 ) [2025-01-08 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:35:05' and `end` < '2025-01-08 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:35:23] Production.INFO: count ==5259 [2025-01-08 14:35:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:35:05 - End Time 2025-01-08 14:35:05 [2025-01-08 14:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202885', 'tblTempUsageDetail_20' ) start [2025-01-08 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202885', 'tblTempUsageDetail_20' ) end [2025-01-08 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202885', 'tblTempVendorCDR_20' ) start [2025-01-08 14:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202885', 'tblTempVendorCDR_20' ) end [2025-01-08 14:35:25] Production.INFO: ProcessCDR(1,14202885,1,1,2) [2025-01-08 14:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202885', 'tblTempUsageDetail_20' ) start [2025-01-08 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202885', 'tblTempUsageDetail_20' ) end [2025-01-08 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:35:28] Production.INFO: ==15954== Releasing lock... [2025-01-08 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:35:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:36:05 [end_date_ymd] => 2025-01-08 14:36:05 [RateCDR] => 1 ) [2025-01-08 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:36:05' and `end` < '2025-01-08 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:36:30] Production.INFO: count ==5255 [2025-01-08 14:36:32] Production.ERROR: pbx CDR StartTime 2025-01-08 11:36:05 - End Time 2025-01-08 14:36:05 [2025-01-08 14:36:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202890', 'tblTempUsageDetail_20' ) start [2025-01-08 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202890', 'tblTempUsageDetail_20' ) end [2025-01-08 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202890', 'tblTempVendorCDR_20' ) start [2025-01-08 14:36:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202890', 'tblTempVendorCDR_20' ) end [2025-01-08 14:36:32] Production.INFO: ProcessCDR(1,14202890,1,1,2) [2025-01-08 14:36:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:36:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:36:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:36:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:36:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202890', 'tblTempUsageDetail_20' ) start [2025-01-08 14:36:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202890', 'tblTempUsageDetail_20' ) end [2025-01-08 14:36:37] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:36:37] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:36:37] Production.INFO: ==16036== Releasing lock... [2025-01-08 14:36:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:36:37] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:37:05 [end_date_ymd] => 2025-01-08 14:37:05 [RateCDR] => 1 ) [2025-01-08 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:37:05' and `end` < '2025-01-08 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:37:23] Production.INFO: count ==5252 [2025-01-08 14:37:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:37:05 - End Time 2025-01-08 14:37:05 [2025-01-08 14:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202895', 'tblTempUsageDetail_20' ) start [2025-01-08 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202895', 'tblTempUsageDetail_20' ) end [2025-01-08 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202895', 'tblTempVendorCDR_20' ) start [2025-01-08 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202895', 'tblTempVendorCDR_20' ) end [2025-01-08 14:37:25] Production.INFO: ProcessCDR(1,14202895,1,1,2) [2025-01-08 14:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202895', 'tblTempUsageDetail_20' ) start [2025-01-08 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202895', 'tblTempUsageDetail_20' ) end [2025-01-08 14:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:37:30] Production.INFO: ==16118== Releasing lock... [2025-01-08 14:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:37:30] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:38:04 [end_date_ymd] => 2025-01-08 14:38:04 [RateCDR] => 1 ) [2025-01-08 14:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:38:04' and `end` < '2025-01-08 14:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:38:28] Production.INFO: count ==5278 [2025-01-08 14:38:30] Production.ERROR: pbx CDR StartTime 2025-01-08 11:38:04 - End Time 2025-01-08 14:38:04 [2025-01-08 14:38:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202900', 'tblTempUsageDetail_20' ) start [2025-01-08 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202900', 'tblTempUsageDetail_20' ) end [2025-01-08 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202900', 'tblTempVendorCDR_20' ) start [2025-01-08 14:38:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202900', 'tblTempVendorCDR_20' ) end [2025-01-08 14:38:30] Production.INFO: ProcessCDR(1,14202900,1,1,2) [2025-01-08 14:38:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:38:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202900', 'tblTempUsageDetail_20' ) start [2025-01-08 14:38:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202900', 'tblTempUsageDetail_20' ) end [2025-01-08 14:38:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:38:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:38:35] Production.INFO: ==16207== Releasing lock... [2025-01-08 14:38:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:38:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:39:05 [end_date_ymd] => 2025-01-08 14:39:05 [RateCDR] => 1 ) [2025-01-08 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:39:05' and `end` < '2025-01-08 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:39:30] Production.INFO: count ==5282 [2025-01-08 14:39:32] Production.ERROR: pbx CDR StartTime 2025-01-08 11:39:05 - End Time 2025-01-08 14:39:05 [2025-01-08 14:39:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202905', 'tblTempUsageDetail_20' ) start [2025-01-08 14:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202905', 'tblTempUsageDetail_20' ) end [2025-01-08 14:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202905', 'tblTempVendorCDR_20' ) start [2025-01-08 14:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202905', 'tblTempVendorCDR_20' ) end [2025-01-08 14:39:32] Production.INFO: ProcessCDR(1,14202905,1,1,2) [2025-01-08 14:39:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:39:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:39:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:39:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202905', 'tblTempUsageDetail_20' ) start [2025-01-08 14:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202905', 'tblTempUsageDetail_20' ) end [2025-01-08 14:39:37] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:39:37] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:39:37] Production.INFO: ==16290== Releasing lock... [2025-01-08 14:39:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:39:37] Production.INFO: 67.5 MB #Memory Used# [2025-01-08 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:40:06 [end_date_ymd] => 2025-01-08 14:40:06 [RateCDR] => 1 ) [2025-01-08 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:40:06' and `end` < '2025-01-08 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:40:24] Production.INFO: count ==5239 [2025-01-08 14:40:27] Production.ERROR: pbx CDR StartTime 2025-01-08 11:40:06 - End Time 2025-01-08 14:40:06 [2025-01-08 14:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202911', 'tblTempUsageDetail_20' ) start [2025-01-08 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202911', 'tblTempUsageDetail_20' ) end [2025-01-08 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202911', 'tblTempVendorCDR_20' ) start [2025-01-08 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202911', 'tblTempVendorCDR_20' ) end [2025-01-08 14:40:27] Production.INFO: ProcessCDR(1,14202911,1,1,2) [2025-01-08 14:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202911', 'tblTempUsageDetail_20' ) start [2025-01-08 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202911', 'tblTempUsageDetail_20' ) end [2025-01-08 14:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:40:31] Production.INFO: ==16415== Releasing lock... [2025-01-08 14:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:40:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:41:04 [end_date_ymd] => 2025-01-08 14:41:04 [RateCDR] => 1 ) [2025-01-08 14:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:41:04' and `end` < '2025-01-08 14:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:41:25] Production.INFO: count ==5208 [2025-01-08 14:41:27] Production.ERROR: pbx CDR StartTime 2025-01-08 11:41:04 - End Time 2025-01-08 14:41:04 [2025-01-08 14:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202916', 'tblTempUsageDetail_20' ) start [2025-01-08 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202916', 'tblTempUsageDetail_20' ) end [2025-01-08 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202916', 'tblTempVendorCDR_20' ) start [2025-01-08 14:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202916', 'tblTempVendorCDR_20' ) end [2025-01-08 14:41:27] Production.INFO: ProcessCDR(1,14202916,1,1,2) [2025-01-08 14:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202916', 'tblTempUsageDetail_20' ) start [2025-01-08 14:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202916', 'tblTempUsageDetail_20' ) end [2025-01-08 14:41:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:41:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:41:32] Production.INFO: ==16497== Releasing lock... [2025-01-08 14:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:41:32] Production.INFO: 67 MB #Memory Used# [2025-01-08 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:42:05 [end_date_ymd] => 2025-01-08 14:42:05 [RateCDR] => 1 ) [2025-01-08 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:42:05' and `end` < '2025-01-08 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:42:39] Production.INFO: count ==5193 [2025-01-08 14:42:41] Production.ERROR: pbx CDR StartTime 2025-01-08 11:42:05 - End Time 2025-01-08 14:42:05 [2025-01-08 14:42:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:42:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202921', 'tblTempUsageDetail_20' ) start [2025-01-08 14:42:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202921', 'tblTempUsageDetail_20' ) end [2025-01-08 14:42:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202921', 'tblTempVendorCDR_20' ) start [2025-01-08 14:42:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202921', 'tblTempVendorCDR_20' ) end [2025-01-08 14:42:42] Production.INFO: ProcessCDR(1,14202921,1,1,2) [2025-01-08 14:42:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:42:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:42:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:42:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:42:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202921', 'tblTempUsageDetail_20' ) start [2025-01-08 14:42:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202921', 'tblTempUsageDetail_20' ) end [2025-01-08 14:42:46] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:42:46] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:42:46] Production.INFO: ==16578== Releasing lock... [2025-01-08 14:42:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:42:46] Production.INFO: 67 MB #Memory Used# [2025-01-08 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:43:05 [end_date_ymd] => 2025-01-08 14:43:05 [RateCDR] => 1 ) [2025-01-08 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:43:05' and `end` < '2025-01-08 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:43:27] Production.INFO: count ==5208 [2025-01-08 14:43:29] Production.ERROR: pbx CDR StartTime 2025-01-08 11:43:05 - End Time 2025-01-08 14:43:05 [2025-01-08 14:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202926', 'tblTempUsageDetail_20' ) start [2025-01-08 14:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202926', 'tblTempUsageDetail_20' ) end [2025-01-08 14:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202926', 'tblTempVendorCDR_20' ) start [2025-01-08 14:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202926', 'tblTempVendorCDR_20' ) end [2025-01-08 14:43:29] Production.INFO: ProcessCDR(1,14202926,1,1,2) [2025-01-08 14:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202926', 'tblTempUsageDetail_20' ) start [2025-01-08 14:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202926', 'tblTempUsageDetail_20' ) end [2025-01-08 14:43:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:43:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:43:34] Production.INFO: ==16663== Releasing lock... [2025-01-08 14:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:43:34] Production.INFO: 67 MB #Memory Used# [2025-01-08 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:44:05 [end_date_ymd] => 2025-01-08 14:44:05 [RateCDR] => 1 ) [2025-01-08 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:44:05' and `end` < '2025-01-08 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:44:21] Production.INFO: count ==5195 [2025-01-08 14:44:23] Production.ERROR: pbx CDR StartTime 2025-01-08 11:44:05 - End Time 2025-01-08 14:44:05 [2025-01-08 14:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202931', 'tblTempUsageDetail_20' ) start [2025-01-08 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202931', 'tblTempUsageDetail_20' ) end [2025-01-08 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202931', 'tblTempVendorCDR_20' ) start [2025-01-08 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202931', 'tblTempVendorCDR_20' ) end [2025-01-08 14:44:23] Production.INFO: ProcessCDR(1,14202931,1,1,2) [2025-01-08 14:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202931', 'tblTempUsageDetail_20' ) start [2025-01-08 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202931', 'tblTempUsageDetail_20' ) end [2025-01-08 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:44:28] Production.INFO: ==16748== Releasing lock... [2025-01-08 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:44:28] Production.INFO: 67 MB #Memory Used# [2025-01-08 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:45:04 [end_date_ymd] => 2025-01-08 14:45:04 [RateCDR] => 1 ) [2025-01-08 14:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:45:04' and `end` < '2025-01-08 14:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:45:22] Production.INFO: count ==5193 [2025-01-08 14:45:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:45:04 - End Time 2025-01-08 14:45:04 [2025-01-08 14:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202936', 'tblTempUsageDetail_20' ) start [2025-01-08 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202936', 'tblTempUsageDetail_20' ) end [2025-01-08 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202936', 'tblTempVendorCDR_20' ) start [2025-01-08 14:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202936', 'tblTempVendorCDR_20' ) end [2025-01-08 14:45:25] Production.INFO: ProcessCDR(1,14202936,1,1,2) [2025-01-08 14:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202936', 'tblTempUsageDetail_20' ) start [2025-01-08 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202936', 'tblTempUsageDetail_20' ) end [2025-01-08 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:45:28] Production.INFO: ==16833== Releasing lock... [2025-01-08 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:45:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-08 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:46:05 [end_date_ymd] => 2025-01-08 14:46:05 [RateCDR] => 1 ) [2025-01-08 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:46:05' and `end` < '2025-01-08 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:46:22] Production.INFO: count ==5188 [2025-01-08 14:46:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:46:05 - End Time 2025-01-08 14:46:05 [2025-01-08 14:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202941', 'tblTempUsageDetail_20' ) start [2025-01-08 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202941', 'tblTempUsageDetail_20' ) end [2025-01-08 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202941', 'tblTempVendorCDR_20' ) start [2025-01-08 14:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202941', 'tblTempVendorCDR_20' ) end [2025-01-08 14:46:24] Production.INFO: ProcessCDR(1,14202941,1,1,2) [2025-01-08 14:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202941', 'tblTempUsageDetail_20' ) start [2025-01-08 14:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202941', 'tblTempUsageDetail_20' ) end [2025-01-08 14:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:46:29] Production.INFO: ==16918== Releasing lock... [2025-01-08 14:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:46:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-08 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:47:05 [end_date_ymd] => 2025-01-08 14:47:05 [RateCDR] => 1 ) [2025-01-08 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:47:05' and `end` < '2025-01-08 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:47:21] Production.INFO: count ==5171 [2025-01-08 14:47:23] Production.ERROR: pbx CDR StartTime 2025-01-08 11:47:05 - End Time 2025-01-08 14:47:05 [2025-01-08 14:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202946', 'tblTempUsageDetail_20' ) start [2025-01-08 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202946', 'tblTempUsageDetail_20' ) end [2025-01-08 14:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202946', 'tblTempVendorCDR_20' ) start [2025-01-08 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202946', 'tblTempVendorCDR_20' ) end [2025-01-08 14:47:24] Production.INFO: ProcessCDR(1,14202946,1,1,2) [2025-01-08 14:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202946', 'tblTempUsageDetail_20' ) start [2025-01-08 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202946', 'tblTempUsageDetail_20' ) end [2025-01-08 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:47:28] Production.INFO: ==16995== Releasing lock... [2025-01-08 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:47:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-08 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:48:05 [end_date_ymd] => 2025-01-08 14:48:05 [RateCDR] => 1 ) [2025-01-08 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:48:05' and `end` < '2025-01-08 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:48:25] Production.INFO: count ==5166 [2025-01-08 14:48:27] Production.ERROR: pbx CDR StartTime 2025-01-08 11:48:05 - End Time 2025-01-08 14:48:05 [2025-01-08 14:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202951', 'tblTempUsageDetail_20' ) start [2025-01-08 14:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202951', 'tblTempUsageDetail_20' ) end [2025-01-08 14:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202951', 'tblTempVendorCDR_20' ) start [2025-01-08 14:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202951', 'tblTempVendorCDR_20' ) end [2025-01-08 14:48:27] Production.INFO: ProcessCDR(1,14202951,1,1,2) [2025-01-08 14:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202951', 'tblTempUsageDetail_20' ) start [2025-01-08 14:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202951', 'tblTempUsageDetail_20' ) end [2025-01-08 14:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:48:32] Production.INFO: ==17080== Releasing lock... [2025-01-08 14:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:48:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-08 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:49:05 [end_date_ymd] => 2025-01-08 14:49:05 [RateCDR] => 1 ) [2025-01-08 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:49:05' and `end` < '2025-01-08 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:49:21] Production.INFO: count ==5137 [2025-01-08 14:49:23] Production.ERROR: pbx CDR StartTime 2025-01-08 11:49:05 - End Time 2025-01-08 14:49:05 [2025-01-08 14:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202956', 'tblTempUsageDetail_20' ) start [2025-01-08 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202956', 'tblTempUsageDetail_20' ) end [2025-01-08 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202956', 'tblTempVendorCDR_20' ) start [2025-01-08 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202956', 'tblTempVendorCDR_20' ) end [2025-01-08 14:49:23] Production.INFO: ProcessCDR(1,14202956,1,1,2) [2025-01-08 14:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202956', 'tblTempUsageDetail_20' ) start [2025-01-08 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202956', 'tblTempUsageDetail_20' ) end [2025-01-08 14:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:49:28] Production.INFO: ==17160== Releasing lock... [2025-01-08 14:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:49:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:50:05 [end_date_ymd] => 2025-01-08 14:50:05 [RateCDR] => 1 ) [2025-01-08 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:50:05' and `end` < '2025-01-08 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:50:25] Production.INFO: count ==5119 [2025-01-08 14:50:27] Production.ERROR: pbx CDR StartTime 2025-01-08 11:50:05 - End Time 2025-01-08 14:50:05 [2025-01-08 14:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202961', 'tblTempUsageDetail_20' ) start [2025-01-08 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202961', 'tblTempUsageDetail_20' ) end [2025-01-08 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202961', 'tblTempVendorCDR_20' ) start [2025-01-08 14:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202961', 'tblTempVendorCDR_20' ) end [2025-01-08 14:50:27] Production.INFO: ProcessCDR(1,14202961,1,1,2) [2025-01-08 14:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202961', 'tblTempUsageDetail_20' ) start [2025-01-08 14:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202961', 'tblTempUsageDetail_20' ) end [2025-01-08 14:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:50:32] Production.INFO: ==17241== Releasing lock... [2025-01-08 14:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:50:32] Production.INFO: 66.25 MB #Memory Used# [2025-01-08 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:51:04 [end_date_ymd] => 2025-01-08 14:51:04 [RateCDR] => 1 ) [2025-01-08 14:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:51:04' and `end` < '2025-01-08 14:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:51:21] Production.INFO: count ==5070 [2025-01-08 14:51:23] Production.ERROR: pbx CDR StartTime 2025-01-08 11:51:04 - End Time 2025-01-08 14:51:04 [2025-01-08 14:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202967', 'tblTempUsageDetail_20' ) start [2025-01-08 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202967', 'tblTempUsageDetail_20' ) end [2025-01-08 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202967', 'tblTempVendorCDR_20' ) start [2025-01-08 14:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202967', 'tblTempVendorCDR_20' ) end [2025-01-08 14:51:23] Production.INFO: ProcessCDR(1,14202967,1,1,2) [2025-01-08 14:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202967', 'tblTempUsageDetail_20' ) start [2025-01-08 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202967', 'tblTempUsageDetail_20' ) end [2025-01-08 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:51:26] Production.INFO: ==17316== Releasing lock... [2025-01-08 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:51:26] Production.INFO: 66 MB #Memory Used# [2025-01-08 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:52:05 [end_date_ymd] => 2025-01-08 14:52:05 [RateCDR] => 1 ) [2025-01-08 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:52:05' and `end` < '2025-01-08 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:52:22] Production.INFO: count ==5064 [2025-01-08 14:52:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:52:05 - End Time 2025-01-08 14:52:05 [2025-01-08 14:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202972', 'tblTempUsageDetail_20' ) start [2025-01-08 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202972', 'tblTempUsageDetail_20' ) end [2025-01-08 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202972', 'tblTempVendorCDR_20' ) start [2025-01-08 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202972', 'tblTempVendorCDR_20' ) end [2025-01-08 14:52:24] Production.INFO: ProcessCDR(1,14202972,1,1,2) [2025-01-08 14:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202972', 'tblTempUsageDetail_20' ) start [2025-01-08 14:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202972', 'tblTempUsageDetail_20' ) end [2025-01-08 14:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:52:29] Production.INFO: ==17394== Releasing lock... [2025-01-08 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:52:29] Production.INFO: 66 MB #Memory Used# [2025-01-08 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:53:05 [end_date_ymd] => 2025-01-08 14:53:05 [RateCDR] => 1 ) [2025-01-08 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:53:05' and `end` < '2025-01-08 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:53:23] Production.INFO: count ==5008 [2025-01-08 14:53:25] Production.ERROR: pbx CDR StartTime 2025-01-08 11:53:05 - End Time 2025-01-08 14:53:05 [2025-01-08 14:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202977', 'tblTempUsageDetail_20' ) start [2025-01-08 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202977', 'tblTempUsageDetail_20' ) end [2025-01-08 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202977', 'tblTempVendorCDR_20' ) start [2025-01-08 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202977', 'tblTempVendorCDR_20' ) end [2025-01-08 14:53:25] Production.INFO: ProcessCDR(1,14202977,1,1,2) [2025-01-08 14:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202977', 'tblTempUsageDetail_20' ) start [2025-01-08 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202977', 'tblTempUsageDetail_20' ) end [2025-01-08 14:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:53:30] Production.INFO: ==17470== Releasing lock... [2025-01-08 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:53:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:54:05 [end_date_ymd] => 2025-01-08 14:54:05 [RateCDR] => 1 ) [2025-01-08 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:54:05' and `end` < '2025-01-08 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:54:22] Production.INFO: count ==4998 [2025-01-08 14:54:24] Production.ERROR: pbx CDR StartTime 2025-01-08 11:54:05 - End Time 2025-01-08 14:54:05 [2025-01-08 14:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202982', 'tblTempUsageDetail_20' ) start [2025-01-08 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202982', 'tblTempUsageDetail_20' ) end [2025-01-08 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202982', 'tblTempVendorCDR_20' ) start [2025-01-08 14:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202982', 'tblTempVendorCDR_20' ) end [2025-01-08 14:54:24] Production.INFO: ProcessCDR(1,14202982,1,1,2) [2025-01-08 14:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202982', 'tblTempUsageDetail_20' ) start [2025-01-08 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202982', 'tblTempUsageDetail_20' ) end [2025-01-08 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:54:27] Production.INFO: ==17540== Releasing lock... [2025-01-08 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:54:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:55:05 [end_date_ymd] => 2025-01-08 14:55:05 [RateCDR] => 1 ) [2025-01-08 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:55:05' and `end` < '2025-01-08 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:55:19] Production.INFO: count ==4964 [2025-01-08 14:55:21] Production.ERROR: pbx CDR StartTime 2025-01-08 11:55:05 - End Time 2025-01-08 14:55:05 [2025-01-08 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202987', 'tblTempUsageDetail_20' ) start [2025-01-08 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202987', 'tblTempUsageDetail_20' ) end [2025-01-08 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202987', 'tblTempVendorCDR_20' ) start [2025-01-08 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202987', 'tblTempVendorCDR_20' ) end [2025-01-08 14:55:21] Production.INFO: ProcessCDR(1,14202987,1,1,2) [2025-01-08 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202987', 'tblTempUsageDetail_20' ) start [2025-01-08 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202987', 'tblTempUsageDetail_20' ) end [2025-01-08 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:55:26] Production.INFO: ==17610== Releasing lock... [2025-01-08 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:55:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:56:05 [end_date_ymd] => 2025-01-08 14:56:05 [RateCDR] => 1 ) [2025-01-08 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:56:05' and `end` < '2025-01-08 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:56:26] Production.INFO: count ==4932 [2025-01-08 14:56:28] Production.ERROR: pbx CDR StartTime 2025-01-08 11:56:05 - End Time 2025-01-08 14:56:05 [2025-01-08 14:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202992', 'tblTempUsageDetail_20' ) start [2025-01-08 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202992', 'tblTempUsageDetail_20' ) end [2025-01-08 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202992', 'tblTempVendorCDR_20' ) start [2025-01-08 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202992', 'tblTempVendorCDR_20' ) end [2025-01-08 14:56:28] Production.INFO: ProcessCDR(1,14202992,1,1,2) [2025-01-08 14:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202992', 'tblTempUsageDetail_20' ) start [2025-01-08 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202992', 'tblTempUsageDetail_20' ) end [2025-01-08 14:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:56:33] Production.INFO: ==17719== Releasing lock... [2025-01-08 14:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:56:33] Production.INFO: 65 MB #Memory Used# [2025-01-08 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:57:05 [end_date_ymd] => 2025-01-08 14:57:05 [RateCDR] => 1 ) [2025-01-08 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:57:05' and `end` < '2025-01-08 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:57:29] Production.INFO: count ==4951 [2025-01-08 14:57:31] Production.ERROR: pbx CDR StartTime 2025-01-08 11:57:05 - End Time 2025-01-08 14:57:05 [2025-01-08 14:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202997', 'tblTempUsageDetail_20' ) start [2025-01-08 14:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14202997', 'tblTempUsageDetail_20' ) end [2025-01-08 14:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202997', 'tblTempVendorCDR_20' ) start [2025-01-08 14:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14202997', 'tblTempVendorCDR_20' ) end [2025-01-08 14:57:32] Production.INFO: ProcessCDR(1,14202997,1,1,2) [2025-01-08 14:57:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14202997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14202997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14202997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14202997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202997', 'tblTempUsageDetail_20' ) start [2025-01-08 14:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14202997', 'tblTempUsageDetail_20' ) end [2025-01-08 14:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:57:36] Production.INFO: ==17794== Releasing lock... [2025-01-08 14:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:57:36] Production.INFO: 65 MB #Memory Used# [2025-01-08 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:58:05 [end_date_ymd] => 2025-01-08 14:58:05 [RateCDR] => 1 ) [2025-01-08 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:58:05' and `end` < '2025-01-08 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:58:25] Production.INFO: count ==4905 [2025-01-08 14:58:27] Production.ERROR: pbx CDR StartTime 2025-01-08 11:58:05 - End Time 2025-01-08 14:58:05 [2025-01-08 14:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203002', 'tblTempUsageDetail_20' ) start [2025-01-08 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203002', 'tblTempUsageDetail_20' ) end [2025-01-08 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203002', 'tblTempVendorCDR_20' ) start [2025-01-08 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203002', 'tblTempVendorCDR_20' ) end [2025-01-08 14:58:27] Production.INFO: ProcessCDR(1,14203002,1,1,2) [2025-01-08 14:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203002', 'tblTempUsageDetail_20' ) start [2025-01-08 14:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203002', 'tblTempUsageDetail_20' ) end [2025-01-08 14:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:58:32] Production.INFO: ==17864== Releasing lock... [2025-01-08 14:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:58:32] Production.INFO: 64.75 MB #Memory Used# [2025-01-08 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 11:59:05 [end_date_ymd] => 2025-01-08 14:59:05 [RateCDR] => 1 ) [2025-01-08 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 11:59:05' and `end` < '2025-01-08 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 14:59:27] Production.INFO: count ==4868 [2025-01-08 14:59:28] Production.ERROR: pbx CDR StartTime 2025-01-08 11:59:05 - End Time 2025-01-08 14:59:05 [2025-01-08 14:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203007', 'tblTempUsageDetail_20' ) start [2025-01-08 14:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203007', 'tblTempUsageDetail_20' ) end [2025-01-08 14:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203007', 'tblTempVendorCDR_20' ) start [2025-01-08 14:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203007', 'tblTempVendorCDR_20' ) end [2025-01-08 14:59:29] Production.INFO: ProcessCDR(1,14203007,1,1,2) [2025-01-08 14:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 14:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203007', 'tblTempUsageDetail_20' ) start [2025-01-08 14:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203007', 'tblTempUsageDetail_20' ) end [2025-01-08 14:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 14:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 14:59:33] Production.INFO: ==17939== Releasing lock... [2025-01-08 14:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 14:59:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:00:05 [end_date_ymd] => 2025-01-08 15:00:05 [RateCDR] => 1 ) [2025-01-08 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:00:05' and `end` < '2025-01-08 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:00:19] Production.INFO: count ==4867 [2025-01-08 15:00:20] Production.ERROR: pbx CDR StartTime 2025-01-08 12:00:05 - End Time 2025-01-08 15:00:05 [2025-01-08 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203012', 'tblTempUsageDetail_20' ) start [2025-01-08 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203012', 'tblTempUsageDetail_20' ) end [2025-01-08 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203012', 'tblTempVendorCDR_20' ) start [2025-01-08 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203012', 'tblTempVendorCDR_20' ) end [2025-01-08 15:00:20] Production.INFO: ProcessCDR(1,14203012,1,1,2) [2025-01-08 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203012', 'tblTempUsageDetail_20' ) start [2025-01-08 15:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203012', 'tblTempUsageDetail_20' ) end [2025-01-08 15:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:00:25] Production.INFO: ==18013== Releasing lock... [2025-01-08 15:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:00:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:01:04 [end_date_ymd] => 2025-01-08 15:01:04 [RateCDR] => 1 ) [2025-01-08 15:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:01:04' and `end` < '2025-01-08 15:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:01:31] Production.INFO: count ==4881 [2025-01-08 15:01:33] Production.ERROR: pbx CDR StartTime 2025-01-08 12:01:04 - End Time 2025-01-08 15:01:04 [2025-01-08 15:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203018', 'tblTempUsageDetail_20' ) start [2025-01-08 15:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203018', 'tblTempUsageDetail_20' ) end [2025-01-08 15:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203018', 'tblTempVendorCDR_20' ) start [2025-01-08 15:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203018', 'tblTempVendorCDR_20' ) end [2025-01-08 15:01:33] Production.INFO: ProcessCDR(1,14203018,1,1,2) [2025-01-08 15:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:01:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203018', 'tblTempUsageDetail_20' ) start [2025-01-08 15:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203018', 'tblTempUsageDetail_20' ) end [2025-01-08 15:01:38] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:01:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:01:38] Production.INFO: ==18182== Releasing lock... [2025-01-08 15:01:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:01:38] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:02:05 [end_date_ymd] => 2025-01-08 15:02:05 [RateCDR] => 1 ) [2025-01-08 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:02:05' and `end` < '2025-01-08 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:02:22] Production.INFO: count ==4884 [2025-01-08 15:02:24] Production.ERROR: pbx CDR StartTime 2025-01-08 12:02:05 - End Time 2025-01-08 15:02:05 [2025-01-08 15:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203023', 'tblTempUsageDetail_20' ) start [2025-01-08 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203023', 'tblTempUsageDetail_20' ) end [2025-01-08 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203023', 'tblTempVendorCDR_20' ) start [2025-01-08 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203023', 'tblTempVendorCDR_20' ) end [2025-01-08 15:02:24] Production.INFO: ProcessCDR(1,14203023,1,1,2) [2025-01-08 15:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203023', 'tblTempUsageDetail_20' ) start [2025-01-08 15:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203023', 'tblTempUsageDetail_20' ) end [2025-01-08 15:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:02:29] Production.INFO: ==18260== Releasing lock... [2025-01-08 15:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:02:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:03:05 [end_date_ymd] => 2025-01-08 15:03:05 [RateCDR] => 1 ) [2025-01-08 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:03:05' and `end` < '2025-01-08 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:03:21] Production.INFO: count ==4860 [2025-01-08 15:03:23] Production.ERROR: pbx CDR StartTime 2025-01-08 12:03:05 - End Time 2025-01-08 15:03:05 [2025-01-08 15:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203028', 'tblTempUsageDetail_20' ) start [2025-01-08 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203028', 'tblTempUsageDetail_20' ) end [2025-01-08 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203028', 'tblTempVendorCDR_20' ) start [2025-01-08 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203028', 'tblTempVendorCDR_20' ) end [2025-01-08 15:03:23] Production.INFO: ProcessCDR(1,14203028,1,1,2) [2025-01-08 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203028', 'tblTempUsageDetail_20' ) start [2025-01-08 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203028', 'tblTempUsageDetail_20' ) end [2025-01-08 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:03:28] Production.INFO: ==18350== Releasing lock... [2025-01-08 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:03:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:04:05 [end_date_ymd] => 2025-01-08 15:04:05 [RateCDR] => 1 ) [2025-01-08 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:04:05' and `end` < '2025-01-08 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:04:33] Production.INFO: count ==4880 [2025-01-08 15:04:35] Production.ERROR: pbx CDR StartTime 2025-01-08 12:04:05 - End Time 2025-01-08 15:04:05 [2025-01-08 15:04:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203033', 'tblTempUsageDetail_20' ) start [2025-01-08 15:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203033', 'tblTempUsageDetail_20' ) end [2025-01-08 15:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203033', 'tblTempVendorCDR_20' ) start [2025-01-08 15:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203033', 'tblTempVendorCDR_20' ) end [2025-01-08 15:04:35] Production.INFO: ProcessCDR(1,14203033,1,1,2) [2025-01-08 15:04:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:04:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:04:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:04:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203033', 'tblTempUsageDetail_20' ) start [2025-01-08 15:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203033', 'tblTempUsageDetail_20' ) end [2025-01-08 15:04:40] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:04:40] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:04:40] Production.INFO: ==18435== Releasing lock... [2025-01-08 15:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:04:40] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:05:04 [end_date_ymd] => 2025-01-08 15:05:04 [RateCDR] => 1 ) [2025-01-08 15:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:05:04' and `end` < '2025-01-08 15:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:05:22] Production.INFO: count ==4878 [2025-01-08 15:05:23] Production.ERROR: pbx CDR StartTime 2025-01-08 12:05:04 - End Time 2025-01-08 15:05:04 [2025-01-08 15:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203038', 'tblTempUsageDetail_20' ) start [2025-01-08 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203038', 'tblTempUsageDetail_20' ) end [2025-01-08 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203038', 'tblTempVendorCDR_20' ) start [2025-01-08 15:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203038', 'tblTempVendorCDR_20' ) end [2025-01-08 15:05:24] Production.INFO: ProcessCDR(1,14203038,1,1,2) [2025-01-08 15:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203038', 'tblTempUsageDetail_20' ) start [2025-01-08 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203038', 'tblTempUsageDetail_20' ) end [2025-01-08 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:05:28] Production.INFO: ==18594== Releasing lock... [2025-01-08 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:05:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:06:05 [end_date_ymd] => 2025-01-08 15:06:05 [RateCDR] => 1 ) [2025-01-08 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:06:05' and `end` < '2025-01-08 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:06:19] Production.INFO: count ==4863 [2025-01-08 15:06:21] Production.ERROR: pbx CDR StartTime 2025-01-08 12:06:05 - End Time 2025-01-08 15:06:05 [2025-01-08 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203043', 'tblTempUsageDetail_20' ) start [2025-01-08 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203043', 'tblTempUsageDetail_20' ) end [2025-01-08 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203043', 'tblTempVendorCDR_20' ) start [2025-01-08 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203043', 'tblTempVendorCDR_20' ) end [2025-01-08 15:06:21] Production.INFO: ProcessCDR(1,14203043,1,1,2) [2025-01-08 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203043', 'tblTempUsageDetail_20' ) start [2025-01-08 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203043', 'tblTempUsageDetail_20' ) end [2025-01-08 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:06:26] Production.INFO: ==18679== Releasing lock... [2025-01-08 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:06:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:07:04 [end_date_ymd] => 2025-01-08 15:07:04 [RateCDR] => 1 ) [2025-01-08 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:07:04' and `end` < '2025-01-08 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:07:28] Production.INFO: count ==4858 [2025-01-08 15:07:29] Production.ERROR: pbx CDR StartTime 2025-01-08 12:07:04 - End Time 2025-01-08 15:07:04 [2025-01-08 15:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203048', 'tblTempUsageDetail_20' ) start [2025-01-08 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203048', 'tblTempUsageDetail_20' ) end [2025-01-08 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203048', 'tblTempVendorCDR_20' ) start [2025-01-08 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203048', 'tblTempVendorCDR_20' ) end [2025-01-08 15:07:30] Production.INFO: ProcessCDR(1,14203048,1,1,2) [2025-01-08 15:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203048', 'tblTempUsageDetail_20' ) start [2025-01-08 15:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203048', 'tblTempUsageDetail_20' ) end [2025-01-08 15:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:07:34] Production.INFO: ==18770== Releasing lock... [2025-01-08 15:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:07:34] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:08:05 [end_date_ymd] => 2025-01-08 15:08:05 [RateCDR] => 1 ) [2025-01-08 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:08:05' and `end` < '2025-01-08 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:08:28] Production.INFO: count ==4862 [2025-01-08 15:08:30] Production.ERROR: pbx CDR StartTime 2025-01-08 12:08:05 - End Time 2025-01-08 15:08:05 [2025-01-08 15:08:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203053', 'tblTempUsageDetail_20' ) start [2025-01-08 15:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203053', 'tblTempUsageDetail_20' ) end [2025-01-08 15:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203053', 'tblTempVendorCDR_20' ) start [2025-01-08 15:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203053', 'tblTempVendorCDR_20' ) end [2025-01-08 15:08:30] Production.INFO: ProcessCDR(1,14203053,1,1,2) [2025-01-08 15:08:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:08:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:08:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:08:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203053', 'tblTempUsageDetail_20' ) start [2025-01-08 15:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203053', 'tblTempUsageDetail_20' ) end [2025-01-08 15:08:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:08:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:08:35] Production.INFO: ==18941== Releasing lock... [2025-01-08 15:08:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:08:35] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:09:05 [end_date_ymd] => 2025-01-08 15:09:05 [RateCDR] => 1 ) [2025-01-08 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:09:05' and `end` < '2025-01-08 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:09:30] Production.INFO: count ==4858 [2025-01-08 15:09:32] Production.ERROR: pbx CDR StartTime 2025-01-08 12:09:05 - End Time 2025-01-08 15:09:05 [2025-01-08 15:09:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203058', 'tblTempUsageDetail_20' ) start [2025-01-08 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203058', 'tblTempUsageDetail_20' ) end [2025-01-08 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203058', 'tblTempVendorCDR_20' ) start [2025-01-08 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203058', 'tblTempVendorCDR_20' ) end [2025-01-08 15:09:32] Production.INFO: ProcessCDR(1,14203058,1,1,2) [2025-01-08 15:09:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:09:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:09:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203058', 'tblTempUsageDetail_20' ) start [2025-01-08 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203058', 'tblTempUsageDetail_20' ) end [2025-01-08 15:09:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:09:37] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:09:37] Production.INFO: ==19035== Releasing lock... [2025-01-08 15:09:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:09:37] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:10:05 [end_date_ymd] => 2025-01-08 15:10:05 [RateCDR] => 1 ) [2025-01-08 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:10:05' and `end` < '2025-01-08 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:10:24] Production.INFO: count ==4830 [2025-01-08 15:10:25] Production.ERROR: pbx CDR StartTime 2025-01-08 12:10:05 - End Time 2025-01-08 15:10:05 [2025-01-08 15:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203063', 'tblTempUsageDetail_20' ) start [2025-01-08 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203063', 'tblTempUsageDetail_20' ) end [2025-01-08 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203063', 'tblTempVendorCDR_20' ) start [2025-01-08 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203063', 'tblTempVendorCDR_20' ) end [2025-01-08 15:10:26] Production.INFO: ProcessCDR(1,14203063,1,1,2) [2025-01-08 15:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203063', 'tblTempUsageDetail_20' ) start [2025-01-08 15:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203063', 'tblTempUsageDetail_20' ) end [2025-01-08 15:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:10:31] Production.INFO: ==19130== Releasing lock... [2025-01-08 15:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:10:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:11:05 [end_date_ymd] => 2025-01-08 15:11:05 [RateCDR] => 1 ) [2025-01-08 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:11:05' and `end` < '2025-01-08 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:11:19] Production.INFO: count ==4817 [2025-01-08 15:11:21] Production.ERROR: pbx CDR StartTime 2025-01-08 12:11:05 - End Time 2025-01-08 15:11:05 [2025-01-08 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203069', 'tblTempUsageDetail_20' ) start [2025-01-08 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203069', 'tblTempUsageDetail_20' ) end [2025-01-08 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203069', 'tblTempVendorCDR_20' ) start [2025-01-08 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203069', 'tblTempVendorCDR_20' ) end [2025-01-08 15:11:21] Production.INFO: ProcessCDR(1,14203069,1,1,2) [2025-01-08 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203069', 'tblTempUsageDetail_20' ) start [2025-01-08 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203069', 'tblTempUsageDetail_20' ) end [2025-01-08 15:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:11:26] Production.INFO: ==19261== Releasing lock... [2025-01-08 15:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:11:26] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:12:05 [end_date_ymd] => 2025-01-08 15:12:05 [RateCDR] => 1 ) [2025-01-08 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:12:05' and `end` < '2025-01-08 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:12:19] Production.INFO: count ==4797 [2025-01-08 15:12:20] Production.ERROR: pbx CDR StartTime 2025-01-08 12:12:05 - End Time 2025-01-08 15:12:05 [2025-01-08 15:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203074', 'tblTempUsageDetail_20' ) start [2025-01-08 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203074', 'tblTempUsageDetail_20' ) end [2025-01-08 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203074', 'tblTempVendorCDR_20' ) start [2025-01-08 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203074', 'tblTempVendorCDR_20' ) end [2025-01-08 15:12:21] Production.INFO: ProcessCDR(1,14203074,1,1,2) [2025-01-08 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203074', 'tblTempUsageDetail_20' ) start [2025-01-08 15:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203074', 'tblTempUsageDetail_20' ) end [2025-01-08 15:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:12:25] Production.INFO: ==19435== Releasing lock... [2025-01-08 15:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:12:25] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:13:05 [end_date_ymd] => 2025-01-08 15:13:05 [RateCDR] => 1 ) [2025-01-08 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:13:05' and `end` < '2025-01-08 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:13:24] Production.INFO: count ==4802 [2025-01-08 15:13:26] Production.ERROR: pbx CDR StartTime 2025-01-08 12:13:05 - End Time 2025-01-08 15:13:05 [2025-01-08 15:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203079', 'tblTempUsageDetail_20' ) start [2025-01-08 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203079', 'tblTempUsageDetail_20' ) end [2025-01-08 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203079', 'tblTempVendorCDR_20' ) start [2025-01-08 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203079', 'tblTempVendorCDR_20' ) end [2025-01-08 15:13:26] Production.INFO: ProcessCDR(1,14203079,1,1,2) [2025-01-08 15:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203079', 'tblTempUsageDetail_20' ) start [2025-01-08 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203079', 'tblTempUsageDetail_20' ) end [2025-01-08 15:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:13:30] Production.INFO: ==19530== Releasing lock... [2025-01-08 15:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:13:30] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:14:04 [end_date_ymd] => 2025-01-08 15:14:04 [RateCDR] => 1 ) [2025-01-08 15:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:14:04' and `end` < '2025-01-08 15:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:14:21] Production.INFO: count ==4806 [2025-01-08 15:14:23] Production.ERROR: pbx CDR StartTime 2025-01-08 12:14:04 - End Time 2025-01-08 15:14:04 [2025-01-08 15:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203084', 'tblTempUsageDetail_20' ) start [2025-01-08 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203084', 'tblTempUsageDetail_20' ) end [2025-01-08 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203084', 'tblTempVendorCDR_20' ) start [2025-01-08 15:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203084', 'tblTempVendorCDR_20' ) end [2025-01-08 15:14:23] Production.INFO: ProcessCDR(1,14203084,1,1,2) [2025-01-08 15:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203084', 'tblTempUsageDetail_20' ) start [2025-01-08 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203084', 'tblTempUsageDetail_20' ) end [2025-01-08 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:14:28] Production.INFO: ==19620== Releasing lock... [2025-01-08 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:14:28] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:15:05 [end_date_ymd] => 2025-01-08 15:15:05 [RateCDR] => 1 ) [2025-01-08 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:15:05' and `end` < '2025-01-08 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:15:25] Production.INFO: count ==4824 [2025-01-08 15:15:27] Production.ERROR: pbx CDR StartTime 2025-01-08 12:15:05 - End Time 2025-01-08 15:15:05 [2025-01-08 15:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203089', 'tblTempUsageDetail_20' ) start [2025-01-08 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203089', 'tblTempUsageDetail_20' ) end [2025-01-08 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203089', 'tblTempVendorCDR_20' ) start [2025-01-08 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203089', 'tblTempVendorCDR_20' ) end [2025-01-08 15:15:27] Production.INFO: ProcessCDR(1,14203089,1,1,2) [2025-01-08 15:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203089', 'tblTempUsageDetail_20' ) start [2025-01-08 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203089', 'tblTempUsageDetail_20' ) end [2025-01-08 15:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:15:32] Production.INFO: ==19794== Releasing lock... [2025-01-08 15:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:15:32] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:16:05 [end_date_ymd] => 2025-01-08 15:16:05 [RateCDR] => 1 ) [2025-01-08 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:16:05' and `end` < '2025-01-08 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:16:34] Production.INFO: count ==4832 [2025-01-08 15:16:36] Production.ERROR: pbx CDR StartTime 2025-01-08 12:16:05 - End Time 2025-01-08 15:16:05 [2025-01-08 15:16:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203094', 'tblTempUsageDetail_20' ) start [2025-01-08 15:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203094', 'tblTempUsageDetail_20' ) end [2025-01-08 15:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203094', 'tblTempVendorCDR_20' ) start [2025-01-08 15:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203094', 'tblTempVendorCDR_20' ) end [2025-01-08 15:16:36] Production.INFO: ProcessCDR(1,14203094,1,1,2) [2025-01-08 15:16:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:16:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:16:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:16:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:16:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203094', 'tblTempUsageDetail_20' ) start [2025-01-08 15:16:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203094', 'tblTempUsageDetail_20' ) end [2025-01-08 15:16:40] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:16:40] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:16:40] Production.INFO: ==19886== Releasing lock... [2025-01-08 15:16:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:16:40] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:17:05 [end_date_ymd] => 2025-01-08 15:17:05 [RateCDR] => 1 ) [2025-01-08 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:17:05' and `end` < '2025-01-08 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:17:26] Production.INFO: count ==4818 [2025-01-08 15:17:28] Production.ERROR: pbx CDR StartTime 2025-01-08 12:17:05 - End Time 2025-01-08 15:17:05 [2025-01-08 15:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203099', 'tblTempUsageDetail_20' ) start [2025-01-08 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203099', 'tblTempUsageDetail_20' ) end [2025-01-08 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203099', 'tblTempVendorCDR_20' ) start [2025-01-08 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203099', 'tblTempVendorCDR_20' ) end [2025-01-08 15:17:28] Production.INFO: ProcessCDR(1,14203099,1,1,2) [2025-01-08 15:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203099', 'tblTempUsageDetail_20' ) start [2025-01-08 15:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203099', 'tblTempUsageDetail_20' ) end [2025-01-08 15:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:17:33] Production.INFO: ==19976== Releasing lock... [2025-01-08 15:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:17:33] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:18:04 [end_date_ymd] => 2025-01-08 15:18:04 [RateCDR] => 1 ) [2025-01-08 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:18:04' and `end` < '2025-01-08 15:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:18:39] Production.INFO: count ==4830 [2025-01-08 15:18:41] Production.ERROR: pbx CDR StartTime 2025-01-08 12:18:04 - End Time 2025-01-08 15:18:04 [2025-01-08 15:18:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:18:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203104', 'tblTempUsageDetail_20' ) start [2025-01-08 15:18:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203104', 'tblTempUsageDetail_20' ) end [2025-01-08 15:18:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203104', 'tblTempVendorCDR_20' ) start [2025-01-08 15:18:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203104', 'tblTempVendorCDR_20' ) end [2025-01-08 15:18:42] Production.INFO: ProcessCDR(1,14203104,1,1,2) [2025-01-08 15:18:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:18:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:18:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:18:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:18:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203104', 'tblTempUsageDetail_20' ) start [2025-01-08 15:18:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203104', 'tblTempUsageDetail_20' ) end [2025-01-08 15:18:46] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:18:46] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:18:46] Production.INFO: ==20075== Releasing lock... [2025-01-08 15:18:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:18:46] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:19:05 [end_date_ymd] => 2025-01-08 15:19:05 [RateCDR] => 1 ) [2025-01-08 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:19:05' and `end` < '2025-01-08 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:19:23] Production.INFO: count ==4828 [2025-01-08 15:19:25] Production.ERROR: pbx CDR StartTime 2025-01-08 12:19:05 - End Time 2025-01-08 15:19:05 [2025-01-08 15:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203109', 'tblTempUsageDetail_20' ) start [2025-01-08 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203109', 'tblTempUsageDetail_20' ) end [2025-01-08 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203109', 'tblTempVendorCDR_20' ) start [2025-01-08 15:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203109', 'tblTempVendorCDR_20' ) end [2025-01-08 15:19:25] Production.INFO: ProcessCDR(1,14203109,1,1,2) [2025-01-08 15:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203109', 'tblTempUsageDetail_20' ) start [2025-01-08 15:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203109', 'tblTempUsageDetail_20' ) end [2025-01-08 15:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:19:30] Production.INFO: ==20172== Releasing lock... [2025-01-08 15:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:19:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:20:05 [end_date_ymd] => 2025-01-08 15:20:05 [RateCDR] => 1 ) [2025-01-08 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:20:05' and `end` < '2025-01-08 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:20:24] Production.INFO: count ==4823 [2025-01-08 15:20:26] Production.ERROR: pbx CDR StartTime 2025-01-08 12:20:05 - End Time 2025-01-08 15:20:05 [2025-01-08 15:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203115', 'tblTempUsageDetail_20' ) start [2025-01-08 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203115', 'tblTempUsageDetail_20' ) end [2025-01-08 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203115', 'tblTempVendorCDR_20' ) start [2025-01-08 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203115', 'tblTempVendorCDR_20' ) end [2025-01-08 15:20:26] Production.INFO: ProcessCDR(1,14203115,1,1,2) [2025-01-08 15:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203115', 'tblTempUsageDetail_20' ) start [2025-01-08 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203115', 'tblTempUsageDetail_20' ) end [2025-01-08 15:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:20:30] Production.INFO: ==20264== Releasing lock... [2025-01-08 15:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:20:30] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:21:05 [end_date_ymd] => 2025-01-08 15:21:05 [RateCDR] => 1 ) [2025-01-08 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:21:05' and `end` < '2025-01-08 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:21:20] Production.INFO: count ==4790 [2025-01-08 15:21:22] Production.ERROR: pbx CDR StartTime 2025-01-08 12:21:05 - End Time 2025-01-08 15:21:05 [2025-01-08 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203120', 'tblTempUsageDetail_20' ) start [2025-01-08 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203120', 'tblTempUsageDetail_20' ) end [2025-01-08 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203120', 'tblTempVendorCDR_20' ) start [2025-01-08 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203120', 'tblTempVendorCDR_20' ) end [2025-01-08 15:21:22] Production.INFO: ProcessCDR(1,14203120,1,1,2) [2025-01-08 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203120', 'tblTempUsageDetail_20' ) start [2025-01-08 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203120', 'tblTempUsageDetail_20' ) end [2025-01-08 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:21:27] Production.INFO: ==20354== Releasing lock... [2025-01-08 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:21:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:22:05 [end_date_ymd] => 2025-01-08 15:22:05 [RateCDR] => 1 ) [2025-01-08 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:22:05' and `end` < '2025-01-08 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:22:19] Production.INFO: count ==4790 [2025-01-08 15:22:21] Production.ERROR: pbx CDR StartTime 2025-01-08 12:22:05 - End Time 2025-01-08 15:22:05 [2025-01-08 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203125', 'tblTempUsageDetail_20' ) start [2025-01-08 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203125', 'tblTempUsageDetail_20' ) end [2025-01-08 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203125', 'tblTempVendorCDR_20' ) start [2025-01-08 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203125', 'tblTempVendorCDR_20' ) end [2025-01-08 15:22:21] Production.INFO: ProcessCDR(1,14203125,1,1,2) [2025-01-08 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203125', 'tblTempUsageDetail_20' ) start [2025-01-08 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203125', 'tblTempUsageDetail_20' ) end [2025-01-08 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:22:26] Production.INFO: ==20441== Releasing lock... [2025-01-08 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:22:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:23:05 [end_date_ymd] => 2025-01-08 15:23:05 [RateCDR] => 1 ) [2025-01-08 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:23:05' and `end` < '2025-01-08 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:23:22] Production.INFO: count ==4789 [2025-01-08 15:23:24] Production.ERROR: pbx CDR StartTime 2025-01-08 12:23:05 - End Time 2025-01-08 15:23:05 [2025-01-08 15:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203130', 'tblTempUsageDetail_20' ) start [2025-01-08 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203130', 'tblTempUsageDetail_20' ) end [2025-01-08 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203130', 'tblTempVendorCDR_20' ) start [2025-01-08 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203130', 'tblTempVendorCDR_20' ) end [2025-01-08 15:23:24] Production.INFO: ProcessCDR(1,14203130,1,1,2) [2025-01-08 15:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203130', 'tblTempUsageDetail_20' ) start [2025-01-08 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203130', 'tblTempUsageDetail_20' ) end [2025-01-08 15:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:23:29] Production.INFO: ==20529== Releasing lock... [2025-01-08 15:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:23:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:24:05 [end_date_ymd] => 2025-01-08 15:24:05 [RateCDR] => 1 ) [2025-01-08 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:24:05' and `end` < '2025-01-08 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:24:18] Production.INFO: count ==4786 [2025-01-08 15:24:20] Production.ERROR: pbx CDR StartTime 2025-01-08 12:24:05 - End Time 2025-01-08 15:24:05 [2025-01-08 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203135', 'tblTempUsageDetail_20' ) start [2025-01-08 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203135', 'tblTempUsageDetail_20' ) end [2025-01-08 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203135', 'tblTempVendorCDR_20' ) start [2025-01-08 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203135', 'tblTempVendorCDR_20' ) end [2025-01-08 15:24:20] Production.INFO: ProcessCDR(1,14203135,1,1,2) [2025-01-08 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203135', 'tblTempUsageDetail_20' ) start [2025-01-08 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203135', 'tblTempUsageDetail_20' ) end [2025-01-08 15:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:24:25] Production.INFO: ==20613== Releasing lock... [2025-01-08 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:24:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:25:04 [end_date_ymd] => 2025-01-08 15:25:04 [RateCDR] => 1 ) [2025-01-08 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:25:04' and `end` < '2025-01-08 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:25:18] Production.INFO: count ==4788 [2025-01-08 15:25:20] Production.ERROR: pbx CDR StartTime 2025-01-08 12:25:04 - End Time 2025-01-08 15:25:04 [2025-01-08 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203140', 'tblTempUsageDetail_20' ) start [2025-01-08 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203140', 'tblTempUsageDetail_20' ) end [2025-01-08 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203140', 'tblTempVendorCDR_20' ) start [2025-01-08 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203140', 'tblTempVendorCDR_20' ) end [2025-01-08 15:25:20] Production.INFO: ProcessCDR(1,14203140,1,1,2) [2025-01-08 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203140', 'tblTempUsageDetail_20' ) start [2025-01-08 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203140', 'tblTempUsageDetail_20' ) end [2025-01-08 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:25:25] Production.INFO: ==20701== Releasing lock... [2025-01-08 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:25:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:26:05 [end_date_ymd] => 2025-01-08 15:26:05 [RateCDR] => 1 ) [2025-01-08 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:26:05' and `end` < '2025-01-08 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:26:19] Production.INFO: count ==4789 [2025-01-08 15:26:21] Production.ERROR: pbx CDR StartTime 2025-01-08 12:26:05 - End Time 2025-01-08 15:26:05 [2025-01-08 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203145', 'tblTempUsageDetail_20' ) start [2025-01-08 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203145', 'tblTempUsageDetail_20' ) end [2025-01-08 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203145', 'tblTempVendorCDR_20' ) start [2025-01-08 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203145', 'tblTempVendorCDR_20' ) end [2025-01-08 15:26:21] Production.INFO: ProcessCDR(1,14203145,1,1,2) [2025-01-08 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203145', 'tblTempUsageDetail_20' ) start [2025-01-08 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203145', 'tblTempUsageDetail_20' ) end [2025-01-08 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:26:26] Production.INFO: ==20788== Releasing lock... [2025-01-08 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:26:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:27:05 [end_date_ymd] => 2025-01-08 15:27:05 [RateCDR] => 1 ) [2025-01-08 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:27:05' and `end` < '2025-01-08 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:27:19] Production.INFO: count ==4779 [2025-01-08 15:27:21] Production.ERROR: pbx CDR StartTime 2025-01-08 12:27:05 - End Time 2025-01-08 15:27:05 [2025-01-08 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203150', 'tblTempUsageDetail_20' ) start [2025-01-08 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203150', 'tblTempUsageDetail_20' ) end [2025-01-08 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203150', 'tblTempVendorCDR_20' ) start [2025-01-08 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203150', 'tblTempVendorCDR_20' ) end [2025-01-08 15:27:21] Production.INFO: ProcessCDR(1,14203150,1,1,2) [2025-01-08 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203150', 'tblTempUsageDetail_20' ) start [2025-01-08 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203150', 'tblTempUsageDetail_20' ) end [2025-01-08 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:27:26] Production.INFO: ==20917== Releasing lock... [2025-01-08 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:27:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:28:05 [end_date_ymd] => 2025-01-08 15:28:05 [RateCDR] => 1 ) [2025-01-08 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:28:05' and `end` < '2025-01-08 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:28:19] Production.INFO: count ==4781 [2025-01-08 15:28:20] Production.ERROR: pbx CDR StartTime 2025-01-08 12:28:05 - End Time 2025-01-08 15:28:05 [2025-01-08 15:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203155', 'tblTempUsageDetail_20' ) start [2025-01-08 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203155', 'tblTempUsageDetail_20' ) end [2025-01-08 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203155', 'tblTempVendorCDR_20' ) start [2025-01-08 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203155', 'tblTempVendorCDR_20' ) end [2025-01-08 15:28:21] Production.INFO: ProcessCDR(1,14203155,1,1,2) [2025-01-08 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203155', 'tblTempUsageDetail_20' ) start [2025-01-08 15:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203155', 'tblTempUsageDetail_20' ) end [2025-01-08 15:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:28:25] Production.INFO: ==20995== Releasing lock... [2025-01-08 15:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:28:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:29:04 [end_date_ymd] => 2025-01-08 15:29:04 [RateCDR] => 1 ) [2025-01-08 15:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:29:04' and `end` < '2025-01-08 15:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:29:22] Production.INFO: count ==4764 [2025-01-08 15:29:24] Production.ERROR: pbx CDR StartTime 2025-01-08 12:29:04 - End Time 2025-01-08 15:29:04 [2025-01-08 15:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203160', 'tblTempUsageDetail_20' ) start [2025-01-08 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203160', 'tblTempUsageDetail_20' ) end [2025-01-08 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203160', 'tblTempVendorCDR_20' ) start [2025-01-08 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203160', 'tblTempVendorCDR_20' ) end [2025-01-08 15:29:24] Production.INFO: ProcessCDR(1,14203160,1,1,2) [2025-01-08 15:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203160', 'tblTempUsageDetail_20' ) start [2025-01-08 15:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203160', 'tblTempUsageDetail_20' ) end [2025-01-08 15:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:29:29] Production.INFO: ==21071== Releasing lock... [2025-01-08 15:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:29:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:30:06 [end_date_ymd] => 2025-01-08 15:30:06 [RateCDR] => 1 ) [2025-01-08 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:30:06' and `end` < '2025-01-08 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:30:21] Production.INFO: count ==4766 [2025-01-08 15:30:23] Production.ERROR: pbx CDR StartTime 2025-01-08 12:30:06 - End Time 2025-01-08 15:30:06 [2025-01-08 15:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203165', 'tblTempUsageDetail_20' ) start [2025-01-08 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203165', 'tblTempUsageDetail_20' ) end [2025-01-08 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203165', 'tblTempVendorCDR_20' ) start [2025-01-08 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203165', 'tblTempVendorCDR_20' ) end [2025-01-08 15:30:23] Production.INFO: ProcessCDR(1,14203165,1,1,2) [2025-01-08 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203165', 'tblTempUsageDetail_20' ) start [2025-01-08 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203165', 'tblTempUsageDetail_20' ) end [2025-01-08 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:30:27] Production.INFO: ==21149== Releasing lock... [2025-01-08 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:30:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:31:04 [end_date_ymd] => 2025-01-08 15:31:04 [RateCDR] => 1 ) [2025-01-08 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:31:04' and `end` < '2025-01-08 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:31:18] Production.INFO: count ==4772 [2025-01-08 15:31:20] Production.ERROR: pbx CDR StartTime 2025-01-08 12:31:04 - End Time 2025-01-08 15:31:04 [2025-01-08 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203171', 'tblTempUsageDetail_20' ) start [2025-01-08 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203171', 'tblTempUsageDetail_20' ) end [2025-01-08 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203171', 'tblTempVendorCDR_20' ) start [2025-01-08 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203171', 'tblTempVendorCDR_20' ) end [2025-01-08 15:31:20] Production.INFO: ProcessCDR(1,14203171,1,1,2) [2025-01-08 15:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203171', 'tblTempUsageDetail_20' ) start [2025-01-08 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203171', 'tblTempUsageDetail_20' ) end [2025-01-08 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:31:25] Production.INFO: ==21224== Releasing lock... [2025-01-08 15:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:31:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:32:05 [end_date_ymd] => 2025-01-08 15:32:05 [RateCDR] => 1 ) [2025-01-08 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:32:05' and `end` < '2025-01-08 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:32:20] Production.INFO: count ==4759 [2025-01-08 15:32:22] Production.ERROR: pbx CDR StartTime 2025-01-08 12:32:05 - End Time 2025-01-08 15:32:05 [2025-01-08 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203176', 'tblTempUsageDetail_20' ) start [2025-01-08 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203176', 'tblTempUsageDetail_20' ) end [2025-01-08 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203176', 'tblTempVendorCDR_20' ) start [2025-01-08 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203176', 'tblTempVendorCDR_20' ) end [2025-01-08 15:32:22] Production.INFO: ProcessCDR(1,14203176,1,1,2) [2025-01-08 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203176', 'tblTempUsageDetail_20' ) start [2025-01-08 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203176', 'tblTempUsageDetail_20' ) end [2025-01-08 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:32:27] Production.INFO: ==21299== Releasing lock... [2025-01-08 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:32:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:33:05 [end_date_ymd] => 2025-01-08 15:33:05 [RateCDR] => 1 ) [2025-01-08 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:33:05' and `end` < '2025-01-08 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:33:19] Production.INFO: count ==4768 [2025-01-08 15:33:21] Production.ERROR: pbx CDR StartTime 2025-01-08 12:33:05 - End Time 2025-01-08 15:33:05 [2025-01-08 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203181', 'tblTempUsageDetail_20' ) start [2025-01-08 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203181', 'tblTempUsageDetail_20' ) end [2025-01-08 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203181', 'tblTempVendorCDR_20' ) start [2025-01-08 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203181', 'tblTempVendorCDR_20' ) end [2025-01-08 15:33:21] Production.INFO: ProcessCDR(1,14203181,1,1,2) [2025-01-08 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203181', 'tblTempUsageDetail_20' ) start [2025-01-08 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203181', 'tblTempUsageDetail_20' ) end [2025-01-08 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:33:26] Production.INFO: ==21377== Releasing lock... [2025-01-08 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:33:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:34:05 [end_date_ymd] => 2025-01-08 15:34:05 [RateCDR] => 1 ) [2025-01-08 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:34:05' and `end` < '2025-01-08 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:34:23] Production.INFO: count ==4800 [2025-01-08 15:34:25] Production.ERROR: pbx CDR StartTime 2025-01-08 12:34:05 - End Time 2025-01-08 15:34:05 [2025-01-08 15:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203186', 'tblTempUsageDetail_20' ) start [2025-01-08 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203186', 'tblTempUsageDetail_20' ) end [2025-01-08 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203186', 'tblTempVendorCDR_20' ) start [2025-01-08 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203186', 'tblTempVendorCDR_20' ) end [2025-01-08 15:34:25] Production.INFO: ProcessCDR(1,14203186,1,1,2) [2025-01-08 15:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203186', 'tblTempUsageDetail_20' ) start [2025-01-08 15:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203186', 'tblTempUsageDetail_20' ) end [2025-01-08 15:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:34:30] Production.INFO: ==21457== Releasing lock... [2025-01-08 15:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:34:30] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:35:04 [end_date_ymd] => 2025-01-08 15:35:04 [RateCDR] => 1 ) [2025-01-08 15:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:35:04' and `end` < '2025-01-08 15:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:35:23] Production.INFO: count ==4833 [2025-01-08 15:35:25] Production.ERROR: pbx CDR StartTime 2025-01-08 12:35:04 - End Time 2025-01-08 15:35:04 [2025-01-08 15:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203191', 'tblTempUsageDetail_20' ) start [2025-01-08 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203191', 'tblTempUsageDetail_20' ) end [2025-01-08 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203191', 'tblTempVendorCDR_20' ) start [2025-01-08 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203191', 'tblTempVendorCDR_20' ) end [2025-01-08 15:35:25] Production.INFO: ProcessCDR(1,14203191,1,1,2) [2025-01-08 15:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203191', 'tblTempUsageDetail_20' ) start [2025-01-08 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203191', 'tblTempUsageDetail_20' ) end [2025-01-08 15:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:35:30] Production.INFO: ==21526== Releasing lock... [2025-01-08 15:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:35:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 15:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:36:04 [end_date_ymd] => 2025-01-08 15:36:04 [RateCDR] => 1 ) [2025-01-08 15:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:36:04' and `end` < '2025-01-08 15:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:36:21] Production.INFO: count ==4841 [2025-01-08 15:36:23] Production.ERROR: pbx CDR StartTime 2025-01-08 12:36:04 - End Time 2025-01-08 15:36:04 [2025-01-08 15:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203196', 'tblTempUsageDetail_20' ) start [2025-01-08 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203196', 'tblTempUsageDetail_20' ) end [2025-01-08 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203196', 'tblTempVendorCDR_20' ) start [2025-01-08 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203196', 'tblTempVendorCDR_20' ) end [2025-01-08 15:36:23] Production.INFO: ProcessCDR(1,14203196,1,1,2) [2025-01-08 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203196', 'tblTempUsageDetail_20' ) start [2025-01-08 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203196', 'tblTempUsageDetail_20' ) end [2025-01-08 15:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:36:28] Production.INFO: ==21596== Releasing lock... [2025-01-08 15:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:36:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:37:05 [end_date_ymd] => 2025-01-08 15:37:05 [RateCDR] => 1 ) [2025-01-08 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:37:05' and `end` < '2025-01-08 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:37:19] Production.INFO: count ==4842 [2025-01-08 15:37:21] Production.ERROR: pbx CDR StartTime 2025-01-08 12:37:05 - End Time 2025-01-08 15:37:05 [2025-01-08 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203201', 'tblTempUsageDetail_20' ) start [2025-01-08 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203201', 'tblTempUsageDetail_20' ) end [2025-01-08 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203201', 'tblTempVendorCDR_20' ) start [2025-01-08 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203201', 'tblTempVendorCDR_20' ) end [2025-01-08 15:37:21] Production.INFO: ProcessCDR(1,14203201,1,1,2) [2025-01-08 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203201', 'tblTempUsageDetail_20' ) start [2025-01-08 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203201', 'tblTempUsageDetail_20' ) end [2025-01-08 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:37:26] Production.INFO: ==21670== Releasing lock... [2025-01-08 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:37:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:38:05 [end_date_ymd] => 2025-01-08 15:38:05 [RateCDR] => 1 ) [2025-01-08 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:38:05' and `end` < '2025-01-08 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:38:23] Production.INFO: count ==4817 [2025-01-08 15:38:25] Production.ERROR: pbx CDR StartTime 2025-01-08 12:38:05 - End Time 2025-01-08 15:38:05 [2025-01-08 15:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203206', 'tblTempUsageDetail_20' ) start [2025-01-08 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203206', 'tblTempUsageDetail_20' ) end [2025-01-08 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203206', 'tblTempVendorCDR_20' ) start [2025-01-08 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203206', 'tblTempVendorCDR_20' ) end [2025-01-08 15:38:25] Production.INFO: ProcessCDR(1,14203206,1,1,2) [2025-01-08 15:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203206', 'tblTempUsageDetail_20' ) start [2025-01-08 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203206', 'tblTempUsageDetail_20' ) end [2025-01-08 15:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:38:30] Production.INFO: ==21740== Releasing lock... [2025-01-08 15:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:38:30] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:39:05 [end_date_ymd] => 2025-01-08 15:39:05 [RateCDR] => 1 ) [2025-01-08 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:39:05' and `end` < '2025-01-08 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:39:30] Production.INFO: count ==4809 [2025-01-08 15:39:32] Production.ERROR: pbx CDR StartTime 2025-01-08 12:39:05 - End Time 2025-01-08 15:39:05 [2025-01-08 15:39:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203211', 'tblTempUsageDetail_20' ) start [2025-01-08 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203211', 'tblTempUsageDetail_20' ) end [2025-01-08 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203211', 'tblTempVendorCDR_20' ) start [2025-01-08 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203211', 'tblTempVendorCDR_20' ) end [2025-01-08 15:39:33] Production.INFO: ProcessCDR(1,14203211,1,1,2) [2025-01-08 15:39:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:39:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:39:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:39:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203211', 'tblTempUsageDetail_20' ) start [2025-01-08 15:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203211', 'tblTempUsageDetail_20' ) end [2025-01-08 15:39:37] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:39:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:39:38] Production.INFO: ==21811== Releasing lock... [2025-01-08 15:39:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:39:38] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:40:05 [end_date_ymd] => 2025-01-08 15:40:05 [RateCDR] => 1 ) [2025-01-08 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:40:05' and `end` < '2025-01-08 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:40:24] Production.INFO: count ==4811 [2025-01-08 15:40:26] Production.ERROR: pbx CDR StartTime 2025-01-08 12:40:05 - End Time 2025-01-08 15:40:05 [2025-01-08 15:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203216', 'tblTempUsageDetail_20' ) start [2025-01-08 15:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203216', 'tblTempUsageDetail_20' ) end [2025-01-08 15:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203216', 'tblTempVendorCDR_20' ) start [2025-01-08 15:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203216', 'tblTempVendorCDR_20' ) end [2025-01-08 15:40:26] Production.INFO: ProcessCDR(1,14203216,1,1,2) [2025-01-08 15:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203216', 'tblTempUsageDetail_20' ) start [2025-01-08 15:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203216', 'tblTempUsageDetail_20' ) end [2025-01-08 15:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:40:31] Production.INFO: ==21888== Releasing lock... [2025-01-08 15:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:40:31] Production.INFO: 64 MB #Memory Used# [2025-01-08 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:41:05 [end_date_ymd] => 2025-01-08 15:41:05 [RateCDR] => 1 ) [2025-01-08 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:41:05' and `end` < '2025-01-08 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:41:23] Production.INFO: count ==4856 [2025-01-08 15:41:24] Production.ERROR: pbx CDR StartTime 2025-01-08 12:41:05 - End Time 2025-01-08 15:41:05 [2025-01-08 15:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203222', 'tblTempUsageDetail_20' ) start [2025-01-08 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203222', 'tblTempUsageDetail_20' ) end [2025-01-08 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203222', 'tblTempVendorCDR_20' ) start [2025-01-08 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203222', 'tblTempVendorCDR_20' ) end [2025-01-08 15:41:25] Production.INFO: ProcessCDR(1,14203222,1,1,2) [2025-01-08 15:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203222', 'tblTempUsageDetail_20' ) start [2025-01-08 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203222', 'tblTempUsageDetail_20' ) end [2025-01-08 15:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:41:29] Production.INFO: ==21968== Releasing lock... [2025-01-08 15:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:41:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:42:05 [end_date_ymd] => 2025-01-08 15:42:05 [RateCDR] => 1 ) [2025-01-08 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:42:05' and `end` < '2025-01-08 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:42:22] Production.INFO: count ==4879 [2025-01-08 15:42:24] Production.ERROR: pbx CDR StartTime 2025-01-08 12:42:05 - End Time 2025-01-08 15:42:05 [2025-01-08 15:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203227', 'tblTempUsageDetail_20' ) start [2025-01-08 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203227', 'tblTempUsageDetail_20' ) end [2025-01-08 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203227', 'tblTempVendorCDR_20' ) start [2025-01-08 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203227', 'tblTempVendorCDR_20' ) end [2025-01-08 15:42:24] Production.INFO: ProcessCDR(1,14203227,1,1,2) [2025-01-08 15:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203227', 'tblTempUsageDetail_20' ) start [2025-01-08 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203227', 'tblTempUsageDetail_20' ) end [2025-01-08 15:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:42:29] Production.INFO: ==22077== Releasing lock... [2025-01-08 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:42:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:43:05 [end_date_ymd] => 2025-01-08 15:43:05 [RateCDR] => 1 ) [2025-01-08 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:43:05' and `end` < '2025-01-08 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:43:26] Production.INFO: count ==4870 [2025-01-08 15:43:28] Production.ERROR: pbx CDR StartTime 2025-01-08 12:43:05 - End Time 2025-01-08 15:43:05 [2025-01-08 15:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203232', 'tblTempUsageDetail_20' ) start [2025-01-08 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203232', 'tblTempUsageDetail_20' ) end [2025-01-08 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203232', 'tblTempVendorCDR_20' ) start [2025-01-08 15:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203232', 'tblTempVendorCDR_20' ) end [2025-01-08 15:43:28] Production.INFO: ProcessCDR(1,14203232,1,1,2) [2025-01-08 15:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203232', 'tblTempUsageDetail_20' ) start [2025-01-08 15:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203232', 'tblTempUsageDetail_20' ) end [2025-01-08 15:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:43:33] Production.INFO: ==22148== Releasing lock... [2025-01-08 15:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:43:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:44:05 [end_date_ymd] => 2025-01-08 15:44:05 [RateCDR] => 1 ) [2025-01-08 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:44:05' and `end` < '2025-01-08 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:44:26] Production.INFO: count ==4891 [2025-01-08 15:44:28] Production.ERROR: pbx CDR StartTime 2025-01-08 12:44:05 - End Time 2025-01-08 15:44:05 [2025-01-08 15:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203237', 'tblTempUsageDetail_20' ) start [2025-01-08 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203237', 'tblTempUsageDetail_20' ) end [2025-01-08 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203237', 'tblTempVendorCDR_20' ) start [2025-01-08 15:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203237', 'tblTempVendorCDR_20' ) end [2025-01-08 15:44:28] Production.INFO: ProcessCDR(1,14203237,1,1,2) [2025-01-08 15:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203237', 'tblTempUsageDetail_20' ) start [2025-01-08 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203237', 'tblTempUsageDetail_20' ) end [2025-01-08 15:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:44:33] Production.INFO: ==22224== Releasing lock... [2025-01-08 15:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:44:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-08 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:45:06 [end_date_ymd] => 2025-01-08 15:45:06 [RateCDR] => 1 ) [2025-01-08 15:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:45:06' and `end` < '2025-01-08 15:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:45:27] Production.INFO: count ==4917 [2025-01-08 15:45:29] Production.ERROR: pbx CDR StartTime 2025-01-08 12:45:06 - End Time 2025-01-08 15:45:06 [2025-01-08 15:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203242', 'tblTempUsageDetail_20' ) start [2025-01-08 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203242', 'tblTempUsageDetail_20' ) end [2025-01-08 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203242', 'tblTempVendorCDR_20' ) start [2025-01-08 15:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203242', 'tblTempVendorCDR_20' ) end [2025-01-08 15:45:30] Production.INFO: ProcessCDR(1,14203242,1,1,2) [2025-01-08 15:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203242', 'tblTempUsageDetail_20' ) start [2025-01-08 15:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203242', 'tblTempUsageDetail_20' ) end [2025-01-08 15:45:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:45:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:45:35] Production.INFO: ==22296== Releasing lock... [2025-01-08 15:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:45:35] Production.INFO: 64.75 MB #Memory Used# [2025-01-08 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:46:05 [end_date_ymd] => 2025-01-08 15:46:05 [RateCDR] => 1 ) [2025-01-08 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:46:05' and `end` < '2025-01-08 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:46:25] Production.INFO: count ==4920 [2025-01-08 15:46:27] Production.ERROR: pbx CDR StartTime 2025-01-08 12:46:05 - End Time 2025-01-08 15:46:05 [2025-01-08 15:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203247', 'tblTempUsageDetail_20' ) start [2025-01-08 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203247', 'tblTempUsageDetail_20' ) end [2025-01-08 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203247', 'tblTempVendorCDR_20' ) start [2025-01-08 15:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203247', 'tblTempVendorCDR_20' ) end [2025-01-08 15:46:27] Production.INFO: ProcessCDR(1,14203247,1,1,2) [2025-01-08 15:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203247', 'tblTempUsageDetail_20' ) start [2025-01-08 15:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203247', 'tblTempUsageDetail_20' ) end [2025-01-08 15:46:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:46:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:46:32] Production.INFO: ==22367== Releasing lock... [2025-01-08 15:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:46:32] Production.INFO: 64.75 MB #Memory Used# [2025-01-08 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:47:05 [end_date_ymd] => 2025-01-08 15:47:05 [RateCDR] => 1 ) [2025-01-08 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:47:05' and `end` < '2025-01-08 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:47:34] Production.INFO: count ==4927 [2025-01-08 15:47:36] Production.ERROR: pbx CDR StartTime 2025-01-08 12:47:05 - End Time 2025-01-08 15:47:05 [2025-01-08 15:47:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:47:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203252', 'tblTempUsageDetail_20' ) start [2025-01-08 15:47:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203252', 'tblTempUsageDetail_20' ) end [2025-01-08 15:47:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203252', 'tblTempVendorCDR_20' ) start [2025-01-08 15:47:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203252', 'tblTempVendorCDR_20' ) end [2025-01-08 15:47:36] Production.INFO: ProcessCDR(1,14203252,1,1,2) [2025-01-08 15:47:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:47:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:47:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:47:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:47:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203252', 'tblTempUsageDetail_20' ) start [2025-01-08 15:47:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203252', 'tblTempUsageDetail_20' ) end [2025-01-08 15:47:41] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:47:41] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:47:41] Production.INFO: ==22439== Releasing lock... [2025-01-08 15:47:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:47:41] Production.INFO: 65 MB #Memory Used# [2025-01-08 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:48:05 [end_date_ymd] => 2025-01-08 15:48:05 [RateCDR] => 1 ) [2025-01-08 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:48:05' and `end` < '2025-01-08 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:48:28] Production.INFO: count ==4930 [2025-01-08 15:48:30] Production.ERROR: pbx CDR StartTime 2025-01-08 12:48:05 - End Time 2025-01-08 15:48:05 [2025-01-08 15:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203257', 'tblTempUsageDetail_20' ) start [2025-01-08 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203257', 'tblTempUsageDetail_20' ) end [2025-01-08 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203257', 'tblTempVendorCDR_20' ) start [2025-01-08 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203257', 'tblTempVendorCDR_20' ) end [2025-01-08 15:48:30] Production.INFO: ProcessCDR(1,14203257,1,1,2) [2025-01-08 15:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203257', 'tblTempUsageDetail_20' ) start [2025-01-08 15:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203257', 'tblTempUsageDetail_20' ) end [2025-01-08 15:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:48:35] Production.INFO: ==22516== Releasing lock... [2025-01-08 15:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:48:35] Production.INFO: 65 MB #Memory Used# [2025-01-08 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:49:05 [end_date_ymd] => 2025-01-08 15:49:05 [RateCDR] => 1 ) [2025-01-08 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:49:05' and `end` < '2025-01-08 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:49:22] Production.INFO: count ==4955 [2025-01-08 15:49:24] Production.ERROR: pbx CDR StartTime 2025-01-08 12:49:05 - End Time 2025-01-08 15:49:05 [2025-01-08 15:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203262', 'tblTempUsageDetail_20' ) start [2025-01-08 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203262', 'tblTempUsageDetail_20' ) end [2025-01-08 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203262', 'tblTempVendorCDR_20' ) start [2025-01-08 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203262', 'tblTempVendorCDR_20' ) end [2025-01-08 15:49:24] Production.INFO: ProcessCDR(1,14203262,1,1,2) [2025-01-08 15:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203262', 'tblTempUsageDetail_20' ) start [2025-01-08 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203262', 'tblTempUsageDetail_20' ) end [2025-01-08 15:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:49:29] Production.INFO: ==22588== Releasing lock... [2025-01-08 15:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:49:29] Production.INFO: 65 MB #Memory Used# [2025-01-08 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:50:05 [end_date_ymd] => 2025-01-08 15:50:05 [RateCDR] => 1 ) [2025-01-08 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:50:05' and `end` < '2025-01-08 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:50:34] Production.INFO: count ==4962 [2025-01-08 15:50:36] Production.ERROR: pbx CDR StartTime 2025-01-08 12:50:05 - End Time 2025-01-08 15:50:05 [2025-01-08 15:50:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203268', 'tblTempUsageDetail_20' ) start [2025-01-08 15:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203268', 'tblTempUsageDetail_20' ) end [2025-01-08 15:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203268', 'tblTempVendorCDR_20' ) start [2025-01-08 15:50:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203268', 'tblTempVendorCDR_20' ) end [2025-01-08 15:50:36] Production.INFO: ProcessCDR(1,14203268,1,1,2) [2025-01-08 15:50:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:50:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:50:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:50:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203268', 'tblTempUsageDetail_20' ) start [2025-01-08 15:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203268', 'tblTempUsageDetail_20' ) end [2025-01-08 15:50:41] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:50:41] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:50:41] Production.INFO: ==22661== Releasing lock... [2025-01-08 15:50:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:50:41] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:51:05 [end_date_ymd] => 2025-01-08 15:51:05 [RateCDR] => 1 ) [2025-01-08 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:51:05' and `end` < '2025-01-08 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:51:25] Production.INFO: count ==4980 [2025-01-08 15:51:27] Production.ERROR: pbx CDR StartTime 2025-01-08 12:51:05 - End Time 2025-01-08 15:51:05 [2025-01-08 15:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203273', 'tblTempUsageDetail_20' ) start [2025-01-08 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203273', 'tblTempUsageDetail_20' ) end [2025-01-08 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203273', 'tblTempVendorCDR_20' ) start [2025-01-08 15:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203273', 'tblTempVendorCDR_20' ) end [2025-01-08 15:51:27] Production.INFO: ProcessCDR(1,14203273,1,1,2) [2025-01-08 15:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203273', 'tblTempUsageDetail_20' ) start [2025-01-08 15:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203273', 'tblTempUsageDetail_20' ) end [2025-01-08 15:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:51:32] Production.INFO: ==22739== Releasing lock... [2025-01-08 15:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:51:32] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:52:04 [end_date_ymd] => 2025-01-08 15:52:04 [RateCDR] => 1 ) [2025-01-08 15:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:52:04' and `end` < '2025-01-08 15:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:52:24] Production.INFO: count ==4976 [2025-01-08 15:52:26] Production.ERROR: pbx CDR StartTime 2025-01-08 12:52:04 - End Time 2025-01-08 15:52:04 [2025-01-08 15:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203278', 'tblTempUsageDetail_20' ) start [2025-01-08 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203278', 'tblTempUsageDetail_20' ) end [2025-01-08 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203278', 'tblTempVendorCDR_20' ) start [2025-01-08 15:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203278', 'tblTempVendorCDR_20' ) end [2025-01-08 15:52:26] Production.INFO: ProcessCDR(1,14203278,1,1,2) [2025-01-08 15:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203278', 'tblTempUsageDetail_20' ) start [2025-01-08 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203278', 'tblTempUsageDetail_20' ) end [2025-01-08 15:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:52:30] Production.INFO: ==22809== Releasing lock... [2025-01-08 15:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:52:30] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:53:05 [end_date_ymd] => 2025-01-08 15:53:05 [RateCDR] => 1 ) [2025-01-08 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:53:05' and `end` < '2025-01-08 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:53:24] Production.INFO: count ==4981 [2025-01-08 15:53:26] Production.ERROR: pbx CDR StartTime 2025-01-08 12:53:05 - End Time 2025-01-08 15:53:05 [2025-01-08 15:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203283', 'tblTempUsageDetail_20' ) start [2025-01-08 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203283', 'tblTempUsageDetail_20' ) end [2025-01-08 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203283', 'tblTempVendorCDR_20' ) start [2025-01-08 15:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203283', 'tblTempVendorCDR_20' ) end [2025-01-08 15:53:26] Production.INFO: ProcessCDR(1,14203283,1,1,2) [2025-01-08 15:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203283', 'tblTempUsageDetail_20' ) start [2025-01-08 15:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203283', 'tblTempUsageDetail_20' ) end [2025-01-08 15:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:53:31] Production.INFO: ==22881== Releasing lock... [2025-01-08 15:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:53:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:54:05 [end_date_ymd] => 2025-01-08 15:54:05 [RateCDR] => 1 ) [2025-01-08 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:54:05' and `end` < '2025-01-08 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:54:21] Production.INFO: count ==4986 [2025-01-08 15:54:23] Production.ERROR: pbx CDR StartTime 2025-01-08 12:54:05 - End Time 2025-01-08 15:54:05 [2025-01-08 15:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203288', 'tblTempUsageDetail_20' ) start [2025-01-08 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203288', 'tblTempUsageDetail_20' ) end [2025-01-08 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203288', 'tblTempVendorCDR_20' ) start [2025-01-08 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203288', 'tblTempVendorCDR_20' ) end [2025-01-08 15:54:23] Production.INFO: ProcessCDR(1,14203288,1,1,2) [2025-01-08 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203288', 'tblTempUsageDetail_20' ) start [2025-01-08 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203288', 'tblTempUsageDetail_20' ) end [2025-01-08 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:54:28] Production.INFO: ==22951== Releasing lock... [2025-01-08 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:54:28] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 15:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:55:04 [end_date_ymd] => 2025-01-08 15:55:04 [RateCDR] => 1 ) [2025-01-08 15:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:55:04' and `end` < '2025-01-08 15:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:55:20] Production.INFO: count ==4995 [2025-01-08 15:55:22] Production.ERROR: pbx CDR StartTime 2025-01-08 12:55:04 - End Time 2025-01-08 15:55:04 [2025-01-08 15:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203293', 'tblTempUsageDetail_20' ) start [2025-01-08 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203293', 'tblTempUsageDetail_20' ) end [2025-01-08 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203293', 'tblTempVendorCDR_20' ) start [2025-01-08 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203293', 'tblTempVendorCDR_20' ) end [2025-01-08 15:55:22] Production.INFO: ProcessCDR(1,14203293,1,1,2) [2025-01-08 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203293', 'tblTempUsageDetail_20' ) start [2025-01-08 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203293', 'tblTempUsageDetail_20' ) end [2025-01-08 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:55:27] Production.INFO: ==23023== Releasing lock... [2025-01-08 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:55:27] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:56:05 [end_date_ymd] => 2025-01-08 15:56:05 [RateCDR] => 1 ) [2025-01-08 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:56:05' and `end` < '2025-01-08 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:56:19] Production.INFO: count ==4990 [2025-01-08 15:56:21] Production.ERROR: pbx CDR StartTime 2025-01-08 12:56:05 - End Time 2025-01-08 15:56:05 [2025-01-08 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203298', 'tblTempUsageDetail_20' ) start [2025-01-08 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203298', 'tblTempUsageDetail_20' ) end [2025-01-08 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203298', 'tblTempVendorCDR_20' ) start [2025-01-08 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203298', 'tblTempVendorCDR_20' ) end [2025-01-08 15:56:22] Production.INFO: ProcessCDR(1,14203298,1,1,2) [2025-01-08 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203298', 'tblTempUsageDetail_20' ) start [2025-01-08 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203298', 'tblTempUsageDetail_20' ) end [2025-01-08 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:56:26] Production.INFO: ==23094== Releasing lock... [2025-01-08 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:56:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:57:05 [end_date_ymd] => 2025-01-08 15:57:05 [RateCDR] => 1 ) [2025-01-08 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:57:05' and `end` < '2025-01-08 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:57:22] Production.INFO: count ==4991 [2025-01-08 15:57:24] Production.ERROR: pbx CDR StartTime 2025-01-08 12:57:05 - End Time 2025-01-08 15:57:05 [2025-01-08 15:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203303', 'tblTempUsageDetail_20' ) start [2025-01-08 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203303', 'tblTempUsageDetail_20' ) end [2025-01-08 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203303', 'tblTempVendorCDR_20' ) start [2025-01-08 15:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203303', 'tblTempVendorCDR_20' ) end [2025-01-08 15:57:24] Production.INFO: ProcessCDR(1,14203303,1,1,2) [2025-01-08 15:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203303', 'tblTempUsageDetail_20' ) start [2025-01-08 15:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203303', 'tblTempUsageDetail_20' ) end [2025-01-08 15:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:57:29] Production.INFO: ==23165== Releasing lock... [2025-01-08 15:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:57:29] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:58:05 [end_date_ymd] => 2025-01-08 15:58:05 [RateCDR] => 1 ) [2025-01-08 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:58:05' and `end` < '2025-01-08 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:58:34] Production.INFO: count ==4978 [2025-01-08 15:58:36] Production.ERROR: pbx CDR StartTime 2025-01-08 12:58:05 - End Time 2025-01-08 15:58:05 [2025-01-08 15:58:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203308', 'tblTempUsageDetail_20' ) start [2025-01-08 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203308', 'tblTempUsageDetail_20' ) end [2025-01-08 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203308', 'tblTempVendorCDR_20' ) start [2025-01-08 15:58:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203308', 'tblTempVendorCDR_20' ) end [2025-01-08 15:58:36] Production.INFO: ProcessCDR(1,14203308,1,1,2) [2025-01-08 15:58:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:58:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:58:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:58:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203308', 'tblTempUsageDetail_20' ) start [2025-01-08 15:58:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203308', 'tblTempUsageDetail_20' ) end [2025-01-08 15:58:41] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:58:41] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:58:41] Production.INFO: ==23277== Releasing lock... [2025-01-08 15:58:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:58:41] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 12:59:05 [end_date_ymd] => 2025-01-08 15:59:05 [RateCDR] => 1 ) [2025-01-08 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 12:59:05' and `end` < '2025-01-08 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 15:59:27] Production.INFO: count ==4997 [2025-01-08 15:59:29] Production.ERROR: pbx CDR StartTime 2025-01-08 12:59:05 - End Time 2025-01-08 15:59:05 [2025-01-08 15:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203313', 'tblTempUsageDetail_20' ) start [2025-01-08 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203313', 'tblTempUsageDetail_20' ) end [2025-01-08 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203313', 'tblTempVendorCDR_20' ) start [2025-01-08 15:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203313', 'tblTempVendorCDR_20' ) end [2025-01-08 15:59:29] Production.INFO: ProcessCDR(1,14203313,1,1,2) [2025-01-08 15:59:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 15:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203313', 'tblTempUsageDetail_20' ) start [2025-01-08 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203313', 'tblTempUsageDetail_20' ) end [2025-01-08 15:59:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 15:59:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 15:59:34] Production.INFO: ==23350== Releasing lock... [2025-01-08 15:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 15:59:34] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:00:05 [end_date_ymd] => 2025-01-08 16:00:05 [RateCDR] => 1 ) [2025-01-08 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:00:05' and `end` < '2025-01-08 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:00:27] Production.INFO: count ==4994 [2025-01-08 16:00:29] Production.ERROR: pbx CDR StartTime 2025-01-08 13:00:05 - End Time 2025-01-08 16:00:05 [2025-01-08 16:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203319', 'tblTempUsageDetail_20' ) start [2025-01-08 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203319', 'tblTempUsageDetail_20' ) end [2025-01-08 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203319', 'tblTempVendorCDR_20' ) start [2025-01-08 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203319', 'tblTempVendorCDR_20' ) end [2025-01-08 16:00:29] Production.INFO: ProcessCDR(1,14203319,1,1,2) [2025-01-08 16:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203319', 'tblTempUsageDetail_20' ) start [2025-01-08 16:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203319', 'tblTempUsageDetail_20' ) end [2025-01-08 16:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:00:33] Production.INFO: ==23424== Releasing lock... [2025-01-08 16:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:00:33] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:01:04 [end_date_ymd] => 2025-01-08 16:01:04 [RateCDR] => 1 ) [2025-01-08 16:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:01:04' and `end` < '2025-01-08 16:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:01:23] Production.INFO: count ==5050 [2025-01-08 16:01:25] Production.ERROR: pbx CDR StartTime 2025-01-08 13:01:04 - End Time 2025-01-08 16:01:04 [2025-01-08 16:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203324', 'tblTempUsageDetail_20' ) start [2025-01-08 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203324', 'tblTempUsageDetail_20' ) end [2025-01-08 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203324', 'tblTempVendorCDR_20' ) start [2025-01-08 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203324', 'tblTempVendorCDR_20' ) end [2025-01-08 16:01:25] Production.INFO: ProcessCDR(1,14203324,1,1,2) [2025-01-08 16:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203324', 'tblTempUsageDetail_20' ) start [2025-01-08 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203324', 'tblTempUsageDetail_20' ) end [2025-01-08 16:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:01:30] Production.INFO: ==23513== Releasing lock... [2025-01-08 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:01:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:02:05 [end_date_ymd] => 2025-01-08 16:02:05 [RateCDR] => 1 ) [2025-01-08 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:02:05' and `end` < '2025-01-08 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:02:22] Production.INFO: count ==5055 [2025-01-08 16:02:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:02:05 - End Time 2025-01-08 16:02:05 [2025-01-08 16:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203329', 'tblTempUsageDetail_20' ) start [2025-01-08 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203329', 'tblTempUsageDetail_20' ) end [2025-01-08 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203329', 'tblTempVendorCDR_20' ) start [2025-01-08 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203329', 'tblTempVendorCDR_20' ) end [2025-01-08 16:02:24] Production.INFO: ProcessCDR(1,14203329,1,1,2) [2025-01-08 16:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203329', 'tblTempUsageDetail_20' ) start [2025-01-08 16:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203329', 'tblTempUsageDetail_20' ) end [2025-01-08 16:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:02:29] Production.INFO: ==23591== Releasing lock... [2025-01-08 16:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:02:29] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:03:05 [end_date_ymd] => 2025-01-08 16:03:05 [RateCDR] => 1 ) [2025-01-08 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:03:05' and `end` < '2025-01-08 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:03:21] Production.INFO: count ==5074 [2025-01-08 16:03:23] Production.ERROR: pbx CDR StartTime 2025-01-08 13:03:05 - End Time 2025-01-08 16:03:05 [2025-01-08 16:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203334', 'tblTempUsageDetail_20' ) start [2025-01-08 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203334', 'tblTempUsageDetail_20' ) end [2025-01-08 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203334', 'tblTempVendorCDR_20' ) start [2025-01-08 16:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203334', 'tblTempVendorCDR_20' ) end [2025-01-08 16:03:23] Production.INFO: ProcessCDR(1,14203334,1,1,2) [2025-01-08 16:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203334', 'tblTempUsageDetail_20' ) start [2025-01-08 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203334', 'tblTempUsageDetail_20' ) end [2025-01-08 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:03:27] Production.INFO: ==23662== Releasing lock... [2025-01-08 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:03:27] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:04:04 [end_date_ymd] => 2025-01-08 16:04:04 [RateCDR] => 1 ) [2025-01-08 16:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:04:04' and `end` < '2025-01-08 16:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:04:30] Production.INFO: count ==5084 [2025-01-08 16:04:32] Production.ERROR: pbx CDR StartTime 2025-01-08 13:04:04 - End Time 2025-01-08 16:04:04 [2025-01-08 16:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203339', 'tblTempUsageDetail_20' ) start [2025-01-08 16:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203339', 'tblTempUsageDetail_20' ) end [2025-01-08 16:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203339', 'tblTempVendorCDR_20' ) start [2025-01-08 16:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203339', 'tblTempVendorCDR_20' ) end [2025-01-08 16:04:32] Production.INFO: ProcessCDR(1,14203339,1,1,2) [2025-01-08 16:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203339', 'tblTempUsageDetail_20' ) start [2025-01-08 16:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203339', 'tblTempUsageDetail_20' ) end [2025-01-08 16:04:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:04:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:04:37] Production.INFO: ==23732== Releasing lock... [2025-01-08 16:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:04:37] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:05:05 [end_date_ymd] => 2025-01-08 16:05:05 [RateCDR] => 1 ) [2025-01-08 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:05:05' and `end` < '2025-01-08 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:05:25] Production.INFO: count ==5089 [2025-01-08 16:05:27] Production.ERROR: pbx CDR StartTime 2025-01-08 13:05:05 - End Time 2025-01-08 16:05:05 [2025-01-08 16:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203344', 'tblTempUsageDetail_20' ) start [2025-01-08 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203344', 'tblTempUsageDetail_20' ) end [2025-01-08 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203344', 'tblTempVendorCDR_20' ) start [2025-01-08 16:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203344', 'tblTempVendorCDR_20' ) end [2025-01-08 16:05:28] Production.INFO: ProcessCDR(1,14203344,1,1,2) [2025-01-08 16:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203344', 'tblTempUsageDetail_20' ) start [2025-01-08 16:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203344', 'tblTempUsageDetail_20' ) end [2025-01-08 16:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:05:32] Production.INFO: ==23805== Releasing lock... [2025-01-08 16:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:05:32] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:06:04 [end_date_ymd] => 2025-01-08 16:06:04 [RateCDR] => 1 ) [2025-01-08 16:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:06:04' and `end` < '2025-01-08 16:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:06:18] Production.INFO: count ==5072 [2025-01-08 16:06:20] Production.ERROR: pbx CDR StartTime 2025-01-08 13:06:04 - End Time 2025-01-08 16:06:04 [2025-01-08 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203349', 'tblTempUsageDetail_20' ) start [2025-01-08 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203349', 'tblTempUsageDetail_20' ) end [2025-01-08 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203349', 'tblTempVendorCDR_20' ) start [2025-01-08 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203349', 'tblTempVendorCDR_20' ) end [2025-01-08 16:06:20] Production.INFO: ProcessCDR(1,14203349,1,1,2) [2025-01-08 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203349', 'tblTempUsageDetail_20' ) start [2025-01-08 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203349', 'tblTempUsageDetail_20' ) end [2025-01-08 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:06:25] Production.INFO: ==23878== Releasing lock... [2025-01-08 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:06:25] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:07:04 [end_date_ymd] => 2025-01-08 16:07:04 [RateCDR] => 1 ) [2025-01-08 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:07:04' and `end` < '2025-01-08 16:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:07:30] Production.INFO: count ==5092 [2025-01-08 16:07:32] Production.ERROR: pbx CDR StartTime 2025-01-08 13:07:04 - End Time 2025-01-08 16:07:04 [2025-01-08 16:07:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203354', 'tblTempUsageDetail_20' ) start [2025-01-08 16:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203354', 'tblTempUsageDetail_20' ) end [2025-01-08 16:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203354', 'tblTempVendorCDR_20' ) start [2025-01-08 16:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203354', 'tblTempVendorCDR_20' ) end [2025-01-08 16:07:32] Production.INFO: ProcessCDR(1,14203354,1,1,2) [2025-01-08 16:07:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:07:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:07:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:07:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203354', 'tblTempUsageDetail_20' ) start [2025-01-08 16:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203354', 'tblTempUsageDetail_20' ) end [2025-01-08 16:07:37] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:07:37] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:07:37] Production.INFO: ==23949== Releasing lock... [2025-01-08 16:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:07:37] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:08:05 [end_date_ymd] => 2025-01-08 16:08:05 [RateCDR] => 1 ) [2025-01-08 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:08:05' and `end` < '2025-01-08 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:08:24] Production.INFO: count ==5090 [2025-01-08 16:08:26] Production.ERROR: pbx CDR StartTime 2025-01-08 13:08:05 - End Time 2025-01-08 16:08:05 [2025-01-08 16:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203359', 'tblTempUsageDetail_20' ) start [2025-01-08 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203359', 'tblTempUsageDetail_20' ) end [2025-01-08 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203359', 'tblTempVendorCDR_20' ) start [2025-01-08 16:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203359', 'tblTempVendorCDR_20' ) end [2025-01-08 16:08:26] Production.INFO: ProcessCDR(1,14203359,1,1,2) [2025-01-08 16:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203359', 'tblTempUsageDetail_20' ) start [2025-01-08 16:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203359', 'tblTempUsageDetail_20' ) end [2025-01-08 16:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:08:29] Production.INFO: ==24019== Releasing lock... [2025-01-08 16:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:08:29] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:09:05 [end_date_ymd] => 2025-01-08 16:09:05 [RateCDR] => 1 ) [2025-01-08 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:09:05' and `end` < '2025-01-08 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:09:22] Production.INFO: count ==5084 [2025-01-08 16:09:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:09:05 - End Time 2025-01-08 16:09:05 [2025-01-08 16:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203364', 'tblTempUsageDetail_20' ) start [2025-01-08 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203364', 'tblTempUsageDetail_20' ) end [2025-01-08 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203364', 'tblTempVendorCDR_20' ) start [2025-01-08 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203364', 'tblTempVendorCDR_20' ) end [2025-01-08 16:09:24] Production.INFO: ProcessCDR(1,14203364,1,1,2) [2025-01-08 16:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203364', 'tblTempUsageDetail_20' ) start [2025-01-08 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203364', 'tblTempUsageDetail_20' ) end [2025-01-08 16:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:09:29] Production.INFO: ==24090== Releasing lock... [2025-01-08 16:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:09:29] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:10:06 [end_date_ymd] => 2025-01-08 16:10:06 [RateCDR] => 1 ) [2025-01-08 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:10:06' and `end` < '2025-01-08 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:10:22] Production.INFO: count ==5101 [2025-01-08 16:10:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:10:06 - End Time 2025-01-08 16:10:06 [2025-01-08 16:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203370', 'tblTempUsageDetail_20' ) start [2025-01-08 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203370', 'tblTempUsageDetail_20' ) end [2025-01-08 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203370', 'tblTempVendorCDR_20' ) start [2025-01-08 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203370', 'tblTempVendorCDR_20' ) end [2025-01-08 16:10:24] Production.INFO: ProcessCDR(1,14203370,1,1,2) [2025-01-08 16:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203370', 'tblTempUsageDetail_20' ) start [2025-01-08 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203370', 'tblTempUsageDetail_20' ) end [2025-01-08 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:10:29] Production.INFO: ==24164== Releasing lock... [2025-01-08 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:10:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-08 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:11:04 [end_date_ymd] => 2025-01-08 16:11:04 [RateCDR] => 1 ) [2025-01-08 16:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:11:04' and `end` < '2025-01-08 16:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:11:24] Production.INFO: count ==5130 [2025-01-08 16:11:26] Production.ERROR: pbx CDR StartTime 2025-01-08 13:11:04 - End Time 2025-01-08 16:11:04 [2025-01-08 16:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203375', 'tblTempUsageDetail_20' ) start [2025-01-08 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203375', 'tblTempUsageDetail_20' ) end [2025-01-08 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203375', 'tblTempVendorCDR_20' ) start [2025-01-08 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203375', 'tblTempVendorCDR_20' ) end [2025-01-08 16:11:26] Production.INFO: ProcessCDR(1,14203375,1,1,2) [2025-01-08 16:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203375', 'tblTempUsageDetail_20' ) start [2025-01-08 16:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203375', 'tblTempUsageDetail_20' ) end [2025-01-08 16:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:11:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:11:31] Production.INFO: ==24238== Releasing lock... [2025-01-08 16:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:11:31] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:12:05 [end_date_ymd] => 2025-01-08 16:12:05 [RateCDR] => 1 ) [2025-01-08 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:12:05' and `end` < '2025-01-08 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:12:22] Production.INFO: count ==5128 [2025-01-08 16:12:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:12:05 - End Time 2025-01-08 16:12:05 [2025-01-08 16:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203380', 'tblTempUsageDetail_20' ) start [2025-01-08 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203380', 'tblTempUsageDetail_20' ) end [2025-01-08 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203380', 'tblTempVendorCDR_20' ) start [2025-01-08 16:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203380', 'tblTempVendorCDR_20' ) end [2025-01-08 16:12:24] Production.INFO: ProcessCDR(1,14203380,1,1,2) [2025-01-08 16:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203380', 'tblTempUsageDetail_20' ) start [2025-01-08 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203380', 'tblTempUsageDetail_20' ) end [2025-01-08 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:12:28] Production.INFO: ==24313== Releasing lock... [2025-01-08 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:12:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:13:05 [end_date_ymd] => 2025-01-08 16:13:05 [RateCDR] => 1 ) [2025-01-08 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:13:05' and `end` < '2025-01-08 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:13:22] Production.INFO: count ==5139 [2025-01-08 16:13:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:13:05 - End Time 2025-01-08 16:13:05 [2025-01-08 16:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203385', 'tblTempUsageDetail_20' ) start [2025-01-08 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203385', 'tblTempUsageDetail_20' ) end [2025-01-08 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203385', 'tblTempVendorCDR_20' ) start [2025-01-08 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203385', 'tblTempVendorCDR_20' ) end [2025-01-08 16:13:24] Production.INFO: ProcessCDR(1,14203385,1,1,2) [2025-01-08 16:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203385', 'tblTempUsageDetail_20' ) start [2025-01-08 16:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203385', 'tblTempUsageDetail_20' ) end [2025-01-08 16:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:13:28] Production.INFO: ==24384== Releasing lock... [2025-01-08 16:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:13:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-08 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:14:05 [end_date_ymd] => 2025-01-08 16:14:05 [RateCDR] => 1 ) [2025-01-08 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:14:05' and `end` < '2025-01-08 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:14:19] Production.INFO: count ==5118 [2025-01-08 16:14:21] Production.ERROR: pbx CDR StartTime 2025-01-08 13:14:05 - End Time 2025-01-08 16:14:05 [2025-01-08 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203390', 'tblTempUsageDetail_20' ) start [2025-01-08 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203390', 'tblTempUsageDetail_20' ) end [2025-01-08 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203390', 'tblTempVendorCDR_20' ) start [2025-01-08 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203390', 'tblTempVendorCDR_20' ) end [2025-01-08 16:14:21] Production.INFO: ProcessCDR(1,14203390,1,1,2) [2025-01-08 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203390', 'tblTempUsageDetail_20' ) start [2025-01-08 16:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203390', 'tblTempUsageDetail_20' ) end [2025-01-08 16:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:14:24] Production.INFO: ==24493== Releasing lock... [2025-01-08 16:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:14:24] Production.INFO: 66.25 MB #Memory Used# [2025-01-08 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:15:04 [end_date_ymd] => 2025-01-08 16:15:04 [RateCDR] => 1 ) [2025-01-08 16:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:15:04' and `end` < '2025-01-08 16:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:15:24] Production.INFO: count ==5082 [2025-01-08 16:15:26] Production.ERROR: pbx CDR StartTime 2025-01-08 13:15:04 - End Time 2025-01-08 16:15:04 [2025-01-08 16:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203395', 'tblTempUsageDetail_20' ) start [2025-01-08 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203395', 'tblTempUsageDetail_20' ) end [2025-01-08 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203395', 'tblTempVendorCDR_20' ) start [2025-01-08 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203395', 'tblTempVendorCDR_20' ) end [2025-01-08 16:15:26] Production.INFO: ProcessCDR(1,14203395,1,1,2) [2025-01-08 16:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203395', 'tblTempUsageDetail_20' ) start [2025-01-08 16:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203395', 'tblTempUsageDetail_20' ) end [2025-01-08 16:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:15:30] Production.INFO: ==24563== Releasing lock... [2025-01-08 16:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:15:30] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:16:05 [end_date_ymd] => 2025-01-08 16:16:05 [RateCDR] => 1 ) [2025-01-08 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:16:05' and `end` < '2025-01-08 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:16:24] Production.INFO: count ==5068 [2025-01-08 16:16:26] Production.ERROR: pbx CDR StartTime 2025-01-08 13:16:05 - End Time 2025-01-08 16:16:05 [2025-01-08 16:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203400', 'tblTempUsageDetail_20' ) start [2025-01-08 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203400', 'tblTempUsageDetail_20' ) end [2025-01-08 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203400', 'tblTempVendorCDR_20' ) start [2025-01-08 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203400', 'tblTempVendorCDR_20' ) end [2025-01-08 16:16:26] Production.INFO: ProcessCDR(1,14203400,1,1,2) [2025-01-08 16:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203400', 'tblTempUsageDetail_20' ) start [2025-01-08 16:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203400', 'tblTempUsageDetail_20' ) end [2025-01-08 16:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:16:31] Production.INFO: ==24637== Releasing lock... [2025-01-08 16:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:16:31] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:17:04 [end_date_ymd] => 2025-01-08 16:17:04 [RateCDR] => 1 ) [2025-01-08 16:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:17:04' and `end` < '2025-01-08 16:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:17:19] Production.INFO: count ==5044 [2025-01-08 16:17:21] Production.ERROR: pbx CDR StartTime 2025-01-08 13:17:04 - End Time 2025-01-08 16:17:04 [2025-01-08 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203405', 'tblTempUsageDetail_20' ) start [2025-01-08 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203405', 'tblTempUsageDetail_20' ) end [2025-01-08 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203405', 'tblTempVendorCDR_20' ) start [2025-01-08 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203405', 'tblTempVendorCDR_20' ) end [2025-01-08 16:17:21] Production.INFO: ProcessCDR(1,14203405,1,1,2) [2025-01-08 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203405', 'tblTempUsageDetail_20' ) start [2025-01-08 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203405', 'tblTempUsageDetail_20' ) end [2025-01-08 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:17:26] Production.INFO: ==24711== Releasing lock... [2025-01-08 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:17:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:18:05 [end_date_ymd] => 2025-01-08 16:18:05 [RateCDR] => 1 ) [2025-01-08 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:18:05' and `end` < '2025-01-08 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:18:21] Production.INFO: count ==5038 [2025-01-08 16:18:23] Production.ERROR: pbx CDR StartTime 2025-01-08 13:18:05 - End Time 2025-01-08 16:18:05 [2025-01-08 16:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203410', 'tblTempUsageDetail_20' ) start [2025-01-08 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203410', 'tblTempUsageDetail_20' ) end [2025-01-08 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203410', 'tblTempVendorCDR_20' ) start [2025-01-08 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203410', 'tblTempVendorCDR_20' ) end [2025-01-08 16:18:24] Production.INFO: ProcessCDR(1,14203410,1,1,2) [2025-01-08 16:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203410', 'tblTempUsageDetail_20' ) start [2025-01-08 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203410', 'tblTempUsageDetail_20' ) end [2025-01-08 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:18:28] Production.INFO: ==24801== Releasing lock... [2025-01-08 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:18:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:19:05 [end_date_ymd] => 2025-01-08 16:19:05 [RateCDR] => 1 ) [2025-01-08 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:19:05' and `end` < '2025-01-08 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:19:19] Production.INFO: count ==5048 [2025-01-08 16:19:20] Production.ERROR: pbx CDR StartTime 2025-01-08 13:19:05 - End Time 2025-01-08 16:19:05 [2025-01-08 16:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203415', 'tblTempUsageDetail_20' ) start [2025-01-08 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203415', 'tblTempUsageDetail_20' ) end [2025-01-08 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203415', 'tblTempVendorCDR_20' ) start [2025-01-08 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203415', 'tblTempVendorCDR_20' ) end [2025-01-08 16:19:21] Production.INFO: ProcessCDR(1,14203415,1,1,2) [2025-01-08 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203415', 'tblTempUsageDetail_20' ) start [2025-01-08 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203415', 'tblTempUsageDetail_20' ) end [2025-01-08 16:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:19:25] Production.INFO: ==24871== Releasing lock... [2025-01-08 16:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:19:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:20:06 [end_date_ymd] => 2025-01-08 16:20:06 [RateCDR] => 1 ) [2025-01-08 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:20:06' and `end` < '2025-01-08 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:20:31] Production.INFO: count ==5056 [2025-01-08 16:20:33] Production.ERROR: pbx CDR StartTime 2025-01-08 13:20:06 - End Time 2025-01-08 16:20:06 [2025-01-08 16:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203421', 'tblTempUsageDetail_20' ) start [2025-01-08 16:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203421', 'tblTempUsageDetail_20' ) end [2025-01-08 16:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203421', 'tblTempVendorCDR_20' ) start [2025-01-08 16:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203421', 'tblTempVendorCDR_20' ) end [2025-01-08 16:20:33] Production.INFO: ProcessCDR(1,14203421,1,1,2) [2025-01-08 16:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203421', 'tblTempUsageDetail_20' ) start [2025-01-08 16:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203421', 'tblTempUsageDetail_20' ) end [2025-01-08 16:20:38] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:20:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:20:38] Production.INFO: ==24947== Releasing lock... [2025-01-08 16:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:20:38] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:21:05 [end_date_ymd] => 2025-01-08 16:21:05 [RateCDR] => 1 ) [2025-01-08 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:21:05' and `end` < '2025-01-08 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:21:27] Production.INFO: count ==5058 [2025-01-08 16:21:29] Production.ERROR: pbx CDR StartTime 2025-01-08 13:21:05 - End Time 2025-01-08 16:21:05 [2025-01-08 16:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203426', 'tblTempUsageDetail_20' ) start [2025-01-08 16:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203426', 'tblTempUsageDetail_20' ) end [2025-01-08 16:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203426', 'tblTempVendorCDR_20' ) start [2025-01-08 16:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203426', 'tblTempVendorCDR_20' ) end [2025-01-08 16:21:30] Production.INFO: ProcessCDR(1,14203426,1,1,2) [2025-01-08 16:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203426', 'tblTempUsageDetail_20' ) start [2025-01-08 16:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203426', 'tblTempUsageDetail_20' ) end [2025-01-08 16:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:21:34] Production.INFO: ==25020== Releasing lock... [2025-01-08 16:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:21:34] Production.INFO: 66 MB #Memory Used# [2025-01-08 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:22:04 [end_date_ymd] => 2025-01-08 16:22:04 [RateCDR] => 1 ) [2025-01-08 16:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:22:04' and `end` < '2025-01-08 16:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:22:24] Production.INFO: count ==5051 [2025-01-08 16:22:26] Production.ERROR: pbx CDR StartTime 2025-01-08 13:22:04 - End Time 2025-01-08 16:22:04 [2025-01-08 16:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203431', 'tblTempUsageDetail_20' ) start [2025-01-08 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203431', 'tblTempUsageDetail_20' ) end [2025-01-08 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203431', 'tblTempVendorCDR_20' ) start [2025-01-08 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203431', 'tblTempVendorCDR_20' ) end [2025-01-08 16:22:26] Production.INFO: ProcessCDR(1,14203431,1,1,2) [2025-01-08 16:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203431', 'tblTempUsageDetail_20' ) start [2025-01-08 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203431', 'tblTempUsageDetail_20' ) end [2025-01-08 16:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:22:30] Production.INFO: ==25089== Releasing lock... [2025-01-08 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:22:30] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:23:04 [end_date_ymd] => 2025-01-08 16:23:04 [RateCDR] => 1 ) [2025-01-08 16:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:23:04' and `end` < '2025-01-08 16:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:23:20] Production.INFO: count ==5034 [2025-01-08 16:23:22] Production.ERROR: pbx CDR StartTime 2025-01-08 13:23:04 - End Time 2025-01-08 16:23:04 [2025-01-08 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203436', 'tblTempUsageDetail_20' ) start [2025-01-08 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203436', 'tblTempUsageDetail_20' ) end [2025-01-08 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203436', 'tblTempVendorCDR_20' ) start [2025-01-08 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203436', 'tblTempVendorCDR_20' ) end [2025-01-08 16:23:23] Production.INFO: ProcessCDR(1,14203436,1,1,2) [2025-01-08 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203436', 'tblTempUsageDetail_20' ) start [2025-01-08 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203436', 'tblTempUsageDetail_20' ) end [2025-01-08 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:23:27] Production.INFO: ==25163== Releasing lock... [2025-01-08 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:23:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:24:05 [end_date_ymd] => 2025-01-08 16:24:05 [RateCDR] => 1 ) [2025-01-08 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:24:05' and `end` < '2025-01-08 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:24:32] Production.INFO: count ==5039 [2025-01-08 16:24:34] Production.ERROR: pbx CDR StartTime 2025-01-08 13:24:05 - End Time 2025-01-08 16:24:05 [2025-01-08 16:24:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203441', 'tblTempUsageDetail_20' ) start [2025-01-08 16:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203441', 'tblTempUsageDetail_20' ) end [2025-01-08 16:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203441', 'tblTempVendorCDR_20' ) start [2025-01-08 16:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203441', 'tblTempVendorCDR_20' ) end [2025-01-08 16:24:34] Production.INFO: ProcessCDR(1,14203441,1,1,2) [2025-01-08 16:24:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:24:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:24:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:24:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203441', 'tblTempUsageDetail_20' ) start [2025-01-08 16:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203441', 'tblTempUsageDetail_20' ) end [2025-01-08 16:24:39] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:24:39] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:24:39] Production.INFO: ==25239== Releasing lock... [2025-01-08 16:24:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:24:39] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:25:04 [end_date_ymd] => 2025-01-08 16:25:04 [RateCDR] => 1 ) [2025-01-08 16:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:25:04' and `end` < '2025-01-08 16:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:25:28] Production.INFO: count ==5053 [2025-01-08 16:25:29] Production.ERROR: pbx CDR StartTime 2025-01-08 13:25:04 - End Time 2025-01-08 16:25:04 [2025-01-08 16:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203446', 'tblTempUsageDetail_20' ) start [2025-01-08 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203446', 'tblTempUsageDetail_20' ) end [2025-01-08 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203446', 'tblTempVendorCDR_20' ) start [2025-01-08 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203446', 'tblTempVendorCDR_20' ) end [2025-01-08 16:25:30] Production.INFO: ProcessCDR(1,14203446,1,1,2) [2025-01-08 16:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203446', 'tblTempUsageDetail_20' ) start [2025-01-08 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203446', 'tblTempUsageDetail_20' ) end [2025-01-08 16:25:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:25:34] Production.INFO: ==25309== Releasing lock... [2025-01-08 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:25:34] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:26:05 [end_date_ymd] => 2025-01-08 16:26:05 [RateCDR] => 1 ) [2025-01-08 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:26:05' and `end` < '2025-01-08 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:26:30] Production.INFO: count ==5043 [2025-01-08 16:26:32] Production.ERROR: pbx CDR StartTime 2025-01-08 13:26:05 - End Time 2025-01-08 16:26:05 [2025-01-08 16:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203451', 'tblTempUsageDetail_20' ) start [2025-01-08 16:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203451', 'tblTempUsageDetail_20' ) end [2025-01-08 16:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203451', 'tblTempVendorCDR_20' ) start [2025-01-08 16:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203451', 'tblTempVendorCDR_20' ) end [2025-01-08 16:26:32] Production.INFO: ProcessCDR(1,14203451,1,1,2) [2025-01-08 16:26:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:26:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:26:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:26:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:26:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203451', 'tblTempUsageDetail_20' ) start [2025-01-08 16:26:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203451', 'tblTempUsageDetail_20' ) end [2025-01-08 16:26:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:26:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:26:36] Production.INFO: ==25380== Releasing lock... [2025-01-08 16:26:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:26:36] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:27:04 [end_date_ymd] => 2025-01-08 16:27:04 [RateCDR] => 1 ) [2025-01-08 16:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:27:04' and `end` < '2025-01-08 16:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:27:23] Production.INFO: count ==5019 [2025-01-08 16:27:25] Production.ERROR: pbx CDR StartTime 2025-01-08 13:27:04 - End Time 2025-01-08 16:27:04 [2025-01-08 16:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203456', 'tblTempUsageDetail_20' ) start [2025-01-08 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203456', 'tblTempUsageDetail_20' ) end [2025-01-08 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203456', 'tblTempVendorCDR_20' ) start [2025-01-08 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203456', 'tblTempVendorCDR_20' ) end [2025-01-08 16:27:25] Production.INFO: ProcessCDR(1,14203456,1,1,2) [2025-01-08 16:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203456', 'tblTempUsageDetail_20' ) start [2025-01-08 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203456', 'tblTempUsageDetail_20' ) end [2025-01-08 16:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:27:30] Production.INFO: ==25451== Releasing lock... [2025-01-08 16:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:27:30] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 16:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:28:04 [end_date_ymd] => 2025-01-08 16:28:04 [RateCDR] => 1 ) [2025-01-08 16:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:28:04' and `end` < '2025-01-08 16:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:28:20] Production.INFO: count ==5032 [2025-01-08 16:28:22] Production.ERROR: pbx CDR StartTime 2025-01-08 13:28:04 - End Time 2025-01-08 16:28:04 [2025-01-08 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203461', 'tblTempUsageDetail_20' ) start [2025-01-08 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203461', 'tblTempUsageDetail_20' ) end [2025-01-08 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203461', 'tblTempVendorCDR_20' ) start [2025-01-08 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203461', 'tblTempVendorCDR_20' ) end [2025-01-08 16:28:22] Production.INFO: ProcessCDR(1,14203461,1,1,2) [2025-01-08 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203461', 'tblTempUsageDetail_20' ) start [2025-01-08 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203461', 'tblTempUsageDetail_20' ) end [2025-01-08 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:28:27] Production.INFO: ==25524== Releasing lock... [2025-01-08 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:28:27] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:29:05 [end_date_ymd] => 2025-01-08 16:29:05 [RateCDR] => 1 ) [2025-01-08 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:29:05' and `end` < '2025-01-08 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:29:26] Production.INFO: count ==5031 [2025-01-08 16:29:28] Production.ERROR: pbx CDR StartTime 2025-01-08 13:29:05 - End Time 2025-01-08 16:29:05 [2025-01-08 16:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203466', 'tblTempUsageDetail_20' ) start [2025-01-08 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203466', 'tblTempUsageDetail_20' ) end [2025-01-08 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203466', 'tblTempVendorCDR_20' ) start [2025-01-08 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203466', 'tblTempVendorCDR_20' ) end [2025-01-08 16:29:28] Production.INFO: ProcessCDR(1,14203466,1,1,2) [2025-01-08 16:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203466', 'tblTempUsageDetail_20' ) start [2025-01-08 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203466', 'tblTempUsageDetail_20' ) end [2025-01-08 16:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:29:32] Production.INFO: ==25636== Releasing lock... [2025-01-08 16:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:29:32] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:30:05 [end_date_ymd] => 2025-01-08 16:30:05 [RateCDR] => 1 ) [2025-01-08 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:30:05' and `end` < '2025-01-08 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:30:25] Production.INFO: count ==5020 [2025-01-08 16:30:27] Production.ERROR: pbx CDR StartTime 2025-01-08 13:30:05 - End Time 2025-01-08 16:30:05 [2025-01-08 16:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203472', 'tblTempUsageDetail_20' ) start [2025-01-08 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203472', 'tblTempUsageDetail_20' ) end [2025-01-08 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203472', 'tblTempVendorCDR_20' ) start [2025-01-08 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203472', 'tblTempVendorCDR_20' ) end [2025-01-08 16:30:27] Production.INFO: ProcessCDR(1,14203472,1,1,2) [2025-01-08 16:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203472', 'tblTempUsageDetail_20' ) start [2025-01-08 16:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203472', 'tblTempUsageDetail_20' ) end [2025-01-08 16:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:30:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:30:31] Production.INFO: ==25712== Releasing lock... [2025-01-08 16:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:30:31] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:31:05 [end_date_ymd] => 2025-01-08 16:31:05 [RateCDR] => 1 ) [2025-01-08 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:31:05' and `end` < '2025-01-08 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:31:21] Production.INFO: count ==5056 [2025-01-08 16:31:23] Production.ERROR: pbx CDR StartTime 2025-01-08 13:31:05 - End Time 2025-01-08 16:31:05 [2025-01-08 16:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203477', 'tblTempUsageDetail_20' ) start [2025-01-08 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203477', 'tblTempUsageDetail_20' ) end [2025-01-08 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203477', 'tblTempVendorCDR_20' ) start [2025-01-08 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203477', 'tblTempVendorCDR_20' ) end [2025-01-08 16:31:24] Production.INFO: ProcessCDR(1,14203477,1,1,2) [2025-01-08 16:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203477', 'tblTempUsageDetail_20' ) start [2025-01-08 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203477', 'tblTempUsageDetail_20' ) end [2025-01-08 16:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:31:28] Production.INFO: ==25783== Releasing lock... [2025-01-08 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:31:28] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:32:05 [end_date_ymd] => 2025-01-08 16:32:05 [RateCDR] => 1 ) [2025-01-08 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:32:05' and `end` < '2025-01-08 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:32:24] Production.INFO: count ==5038 [2025-01-08 16:32:26] Production.ERROR: pbx CDR StartTime 2025-01-08 13:32:05 - End Time 2025-01-08 16:32:05 [2025-01-08 16:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203482', 'tblTempUsageDetail_20' ) start [2025-01-08 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203482', 'tblTempUsageDetail_20' ) end [2025-01-08 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203482', 'tblTempVendorCDR_20' ) start [2025-01-08 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203482', 'tblTempVendorCDR_20' ) end [2025-01-08 16:32:26] Production.INFO: ProcessCDR(1,14203482,1,1,2) [2025-01-08 16:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203482', 'tblTempUsageDetail_20' ) start [2025-01-08 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203482', 'tblTempUsageDetail_20' ) end [2025-01-08 16:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:32:31] Production.INFO: ==25858== Releasing lock... [2025-01-08 16:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:32:31] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:33:05 [end_date_ymd] => 2025-01-08 16:33:05 [RateCDR] => 1 ) [2025-01-08 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:33:05' and `end` < '2025-01-08 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:33:19] Production.INFO: count ==5039 [2025-01-08 16:33:21] Production.ERROR: pbx CDR StartTime 2025-01-08 13:33:05 - End Time 2025-01-08 16:33:05 [2025-01-08 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203487', 'tblTempUsageDetail_20' ) start [2025-01-08 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203487', 'tblTempUsageDetail_20' ) end [2025-01-08 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203487', 'tblTempVendorCDR_20' ) start [2025-01-08 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203487', 'tblTempVendorCDR_20' ) end [2025-01-08 16:33:21] Production.INFO: ProcessCDR(1,14203487,1,1,2) [2025-01-08 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203487', 'tblTempUsageDetail_20' ) start [2025-01-08 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203487', 'tblTempUsageDetail_20' ) end [2025-01-08 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:33:25] Production.INFO: ==25930== Releasing lock... [2025-01-08 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:33:25] Production.INFO: 65.75 MB #Memory Used# [2025-01-08 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:34:05 [end_date_ymd] => 2025-01-08 16:34:05 [RateCDR] => 1 ) [2025-01-08 16:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:34:05' and `end` < '2025-01-08 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:34:22] Production.INFO: count ==5013 [2025-01-08 16:34:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:34:05 - End Time 2025-01-08 16:34:05 [2025-01-08 16:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203492', 'tblTempUsageDetail_20' ) start [2025-01-08 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203492', 'tblTempUsageDetail_20' ) end [2025-01-08 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203492', 'tblTempVendorCDR_20' ) start [2025-01-08 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203492', 'tblTempVendorCDR_20' ) end [2025-01-08 16:34:25] Production.INFO: ProcessCDR(1,14203492,1,1,2) [2025-01-08 16:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203492', 'tblTempUsageDetail_20' ) start [2025-01-08 16:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203492', 'tblTempUsageDetail_20' ) end [2025-01-08 16:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:34:29] Production.INFO: ==26002== Releasing lock... [2025-01-08 16:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:34:29] Production.INFO: 65.5 MB #Memory Used# [2025-01-08 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:35:04 [end_date_ymd] => 2025-01-08 16:35:04 [RateCDR] => 1 ) [2025-01-08 16:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:35:04' and `end` < '2025-01-08 16:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:35:25] Production.INFO: count ==4987 [2025-01-08 16:35:27] Production.ERROR: pbx CDR StartTime 2025-01-08 13:35:04 - End Time 2025-01-08 16:35:04 [2025-01-08 16:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203497', 'tblTempUsageDetail_20' ) start [2025-01-08 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203497', 'tblTempUsageDetail_20' ) end [2025-01-08 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203497', 'tblTempVendorCDR_20' ) start [2025-01-08 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203497', 'tblTempVendorCDR_20' ) end [2025-01-08 16:35:27] Production.INFO: ProcessCDR(1,14203497,1,1,2) [2025-01-08 16:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203497', 'tblTempUsageDetail_20' ) start [2025-01-08 16:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203497', 'tblTempUsageDetail_20' ) end [2025-01-08 16:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:35:32] Production.INFO: ==26073== Releasing lock... [2025-01-08 16:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:35:32] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:36:05 [end_date_ymd] => 2025-01-08 16:36:05 [RateCDR] => 1 ) [2025-01-08 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:36:05' and `end` < '2025-01-08 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:36:22] Production.INFO: count ==4976 [2025-01-08 16:36:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:36:05 - End Time 2025-01-08 16:36:05 [2025-01-08 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203502', 'tblTempUsageDetail_20' ) start [2025-01-08 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203502', 'tblTempUsageDetail_20' ) end [2025-01-08 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203502', 'tblTempVendorCDR_20' ) start [2025-01-08 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203502', 'tblTempVendorCDR_20' ) end [2025-01-08 16:36:24] Production.INFO: ProcessCDR(1,14203502,1,1,2) [2025-01-08 16:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203502', 'tblTempUsageDetail_20' ) start [2025-01-08 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203502', 'tblTempUsageDetail_20' ) end [2025-01-08 16:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:36:29] Production.INFO: ==26149== Releasing lock... [2025-01-08 16:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:36:29] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:37:04 [end_date_ymd] => 2025-01-08 16:37:04 [RateCDR] => 1 ) [2025-01-08 16:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:37:04' and `end` < '2025-01-08 16:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:37:24] Production.INFO: count ==4965 [2025-01-08 16:37:26] Production.ERROR: pbx CDR StartTime 2025-01-08 13:37:04 - End Time 2025-01-08 16:37:04 [2025-01-08 16:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203507', 'tblTempUsageDetail_20' ) start [2025-01-08 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203507', 'tblTempUsageDetail_20' ) end [2025-01-08 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203507', 'tblTempVendorCDR_20' ) start [2025-01-08 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203507', 'tblTempVendorCDR_20' ) end [2025-01-08 16:37:26] Production.INFO: ProcessCDR(1,14203507,1,1,2) [2025-01-08 16:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203507', 'tblTempUsageDetail_20' ) start [2025-01-08 16:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203507', 'tblTempUsageDetail_20' ) end [2025-01-08 16:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:37:31] Production.INFO: ==26227== Releasing lock... [2025-01-08 16:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:37:31] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:38:05 [end_date_ymd] => 2025-01-08 16:38:05 [RateCDR] => 1 ) [2025-01-08 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:38:05' and `end` < '2025-01-08 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:38:23] Production.INFO: count ==4970 [2025-01-08 16:38:25] Production.ERROR: pbx CDR StartTime 2025-01-08 13:38:05 - End Time 2025-01-08 16:38:05 [2025-01-08 16:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203512', 'tblTempUsageDetail_20' ) start [2025-01-08 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203512', 'tblTempUsageDetail_20' ) end [2025-01-08 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203512', 'tblTempVendorCDR_20' ) start [2025-01-08 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203512', 'tblTempVendorCDR_20' ) end [2025-01-08 16:38:25] Production.INFO: ProcessCDR(1,14203512,1,1,2) [2025-01-08 16:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203512', 'tblTempUsageDetail_20' ) start [2025-01-08 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203512', 'tblTempUsageDetail_20' ) end [2025-01-08 16:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:38:29] Production.INFO: ==26299== Releasing lock... [2025-01-08 16:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:38:29] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:39:04 [end_date_ymd] => 2025-01-08 16:39:04 [RateCDR] => 1 ) [2025-01-08 16:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:39:04' and `end` < '2025-01-08 16:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:39:27] Production.INFO: count ==4962 [2025-01-08 16:39:29] Production.ERROR: pbx CDR StartTime 2025-01-08 13:39:04 - End Time 2025-01-08 16:39:04 [2025-01-08 16:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203517', 'tblTempUsageDetail_20' ) start [2025-01-08 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203517', 'tblTempUsageDetail_20' ) end [2025-01-08 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203517', 'tblTempVendorCDR_20' ) start [2025-01-08 16:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203517', 'tblTempVendorCDR_20' ) end [2025-01-08 16:39:29] Production.INFO: ProcessCDR(1,14203517,1,1,2) [2025-01-08 16:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203517', 'tblTempUsageDetail_20' ) start [2025-01-08 16:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203517', 'tblTempUsageDetail_20' ) end [2025-01-08 16:39:34] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:39:34] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:39:34] Production.INFO: ==26369== Releasing lock... [2025-01-08 16:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:39:34] Production.INFO: 65.25 MB #Memory Used# [2025-01-08 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:40:05 [end_date_ymd] => 2025-01-08 16:40:05 [RateCDR] => 1 ) [2025-01-08 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:40:05' and `end` < '2025-01-08 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:40:22] Production.INFO: count ==4946 [2025-01-08 16:40:23] Production.ERROR: pbx CDR StartTime 2025-01-08 13:40:05 - End Time 2025-01-08 16:40:05 [2025-01-08 16:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203522', 'tblTempUsageDetail_20' ) start [2025-01-08 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203522', 'tblTempUsageDetail_20' ) end [2025-01-08 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203522', 'tblTempVendorCDR_20' ) start [2025-01-08 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203522', 'tblTempVendorCDR_20' ) end [2025-01-08 16:40:23] Production.INFO: ProcessCDR(1,14203522,1,1,2) [2025-01-08 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203522', 'tblTempUsageDetail_20' ) start [2025-01-08 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203522', 'tblTempUsageDetail_20' ) end [2025-01-08 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:40:28] Production.INFO: ==26441== Releasing lock... [2025-01-08 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:40:28] Production.INFO: 65 MB #Memory Used# [2025-01-08 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:41:05 [end_date_ymd] => 2025-01-08 16:41:05 [RateCDR] => 1 ) [2025-01-08 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:41:05' and `end` < '2025-01-08 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:41:21] Production.INFO: count ==4885 [2025-01-08 16:41:23] Production.ERROR: pbx CDR StartTime 2025-01-08 13:41:05 - End Time 2025-01-08 16:41:05 [2025-01-08 16:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203528', 'tblTempUsageDetail_20' ) start [2025-01-08 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203528', 'tblTempUsageDetail_20' ) end [2025-01-08 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203528', 'tblTempVendorCDR_20' ) start [2025-01-08 16:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203528', 'tblTempVendorCDR_20' ) end [2025-01-08 16:41:23] Production.INFO: ProcessCDR(1,14203528,1,1,2) [2025-01-08 16:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203528', 'tblTempUsageDetail_20' ) start [2025-01-08 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203528', 'tblTempUsageDetail_20' ) end [2025-01-08 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:41:28] Production.INFO: ==26515== Releasing lock... [2025-01-08 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:41:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:42:05 [end_date_ymd] => 2025-01-08 16:42:05 [RateCDR] => 1 ) [2025-01-08 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:42:05' and `end` < '2025-01-08 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:42:22] Production.INFO: count ==4876 [2025-01-08 16:42:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:42:05 - End Time 2025-01-08 16:42:05 [2025-01-08 16:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203533', 'tblTempUsageDetail_20' ) start [2025-01-08 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203533', 'tblTempUsageDetail_20' ) end [2025-01-08 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203533', 'tblTempVendorCDR_20' ) start [2025-01-08 16:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203533', 'tblTempVendorCDR_20' ) end [2025-01-08 16:42:24] Production.INFO: ProcessCDR(1,14203533,1,1,2) [2025-01-08 16:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203533', 'tblTempUsageDetail_20' ) start [2025-01-08 16:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203533', 'tblTempUsageDetail_20' ) end [2025-01-08 16:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:42:29] Production.INFO: ==26589== Releasing lock... [2025-01-08 16:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:42:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:43:05 [end_date_ymd] => 2025-01-08 16:43:05 [RateCDR] => 1 ) [2025-01-08 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:43:05' and `end` < '2025-01-08 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:43:21] Production.INFO: count ==4880 [2025-01-08 16:43:23] Production.ERROR: pbx CDR StartTime 2025-01-08 13:43:05 - End Time 2025-01-08 16:43:05 [2025-01-08 16:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203538', 'tblTempUsageDetail_20' ) start [2025-01-08 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203538', 'tblTempUsageDetail_20' ) end [2025-01-08 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203538', 'tblTempVendorCDR_20' ) start [2025-01-08 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203538', 'tblTempVendorCDR_20' ) end [2025-01-08 16:43:23] Production.INFO: ProcessCDR(1,14203538,1,1,2) [2025-01-08 16:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203538', 'tblTempUsageDetail_20' ) start [2025-01-08 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203538', 'tblTempUsageDetail_20' ) end [2025-01-08 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:43:27] Production.INFO: ==26663== Releasing lock... [2025-01-08 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:43:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:44:04 [end_date_ymd] => 2025-01-08 16:44:04 [RateCDR] => 1 ) [2025-01-08 16:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:44:04' and `end` < '2025-01-08 16:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:44:19] Production.INFO: count ==4879 [2025-01-08 16:44:21] Production.ERROR: pbx CDR StartTime 2025-01-08 13:44:04 - End Time 2025-01-08 16:44:04 [2025-01-08 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203543', 'tblTempUsageDetail_20' ) start [2025-01-08 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203543', 'tblTempUsageDetail_20' ) end [2025-01-08 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203543', 'tblTempVendorCDR_20' ) start [2025-01-08 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203543', 'tblTempVendorCDR_20' ) end [2025-01-08 16:44:21] Production.INFO: ProcessCDR(1,14203543,1,1,2) [2025-01-08 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203543', 'tblTempUsageDetail_20' ) start [2025-01-08 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203543', 'tblTempUsageDetail_20' ) end [2025-01-08 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:44:26] Production.INFO: ==26736== Releasing lock... [2025-01-08 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:44:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:45:05 [end_date_ymd] => 2025-01-08 16:45:05 [RateCDR] => 1 ) [2025-01-08 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:45:05' and `end` < '2025-01-08 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:45:26] Production.INFO: count ==4875 [2025-01-08 16:45:28] Production.ERROR: pbx CDR StartTime 2025-01-08 13:45:05 - End Time 2025-01-08 16:45:05 [2025-01-08 16:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203548', 'tblTempUsageDetail_20' ) start [2025-01-08 16:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203548', 'tblTempUsageDetail_20' ) end [2025-01-08 16:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203548', 'tblTempVendorCDR_20' ) start [2025-01-08 16:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203548', 'tblTempVendorCDR_20' ) end [2025-01-08 16:45:28] Production.INFO: ProcessCDR(1,14203548,1,1,2) [2025-01-08 16:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203548', 'tblTempUsageDetail_20' ) start [2025-01-08 16:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203548', 'tblTempUsageDetail_20' ) end [2025-01-08 16:45:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:45:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:45:33] Production.INFO: ==26846== Releasing lock... [2025-01-08 16:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:45:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:46:05 [end_date_ymd] => 2025-01-08 16:46:05 [RateCDR] => 1 ) [2025-01-08 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:46:05' and `end` < '2025-01-08 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:46:22] Production.INFO: count ==4871 [2025-01-08 16:46:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:46:05 - End Time 2025-01-08 16:46:05 [2025-01-08 16:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203553', 'tblTempUsageDetail_20' ) start [2025-01-08 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203553', 'tblTempUsageDetail_20' ) end [2025-01-08 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203553', 'tblTempVendorCDR_20' ) start [2025-01-08 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203553', 'tblTempVendorCDR_20' ) end [2025-01-08 16:46:24] Production.INFO: ProcessCDR(1,14203553,1,1,2) [2025-01-08 16:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203553', 'tblTempUsageDetail_20' ) start [2025-01-08 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203553', 'tblTempUsageDetail_20' ) end [2025-01-08 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:46:28] Production.INFO: ==26916== Releasing lock... [2025-01-08 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:46:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-08 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:47:04 [end_date_ymd] => 2025-01-08 16:47:04 [RateCDR] => 1 ) [2025-01-08 16:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:47:04' and `end` < '2025-01-08 16:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:47:24] Production.INFO: count ==4841 [2025-01-08 16:47:26] Production.ERROR: pbx CDR StartTime 2025-01-08 13:47:04 - End Time 2025-01-08 16:47:04 [2025-01-08 16:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203558', 'tblTempUsageDetail_20' ) start [2025-01-08 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203558', 'tblTempUsageDetail_20' ) end [2025-01-08 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203558', 'tblTempVendorCDR_20' ) start [2025-01-08 16:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203558', 'tblTempVendorCDR_20' ) end [2025-01-08 16:47:26] Production.INFO: ProcessCDR(1,14203558,1,1,2) [2025-01-08 16:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203558', 'tblTempUsageDetail_20' ) start [2025-01-08 16:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203558', 'tblTempUsageDetail_20' ) end [2025-01-08 16:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:47:30] Production.INFO: ==26989== Releasing lock... [2025-01-08 16:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:47:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:48:05 [end_date_ymd] => 2025-01-08 16:48:05 [RateCDR] => 1 ) [2025-01-08 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:48:05' and `end` < '2025-01-08 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:48:19] Production.INFO: count ==4837 [2025-01-08 16:48:20] Production.ERROR: pbx CDR StartTime 2025-01-08 13:48:05 - End Time 2025-01-08 16:48:05 [2025-01-08 16:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203563', 'tblTempUsageDetail_20' ) start [2025-01-08 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203563', 'tblTempUsageDetail_20' ) end [2025-01-08 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203563', 'tblTempVendorCDR_20' ) start [2025-01-08 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203563', 'tblTempVendorCDR_20' ) end [2025-01-08 16:48:21] Production.INFO: ProcessCDR(1,14203563,1,1,2) [2025-01-08 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203563', 'tblTempUsageDetail_20' ) start [2025-01-08 16:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203563', 'tblTempUsageDetail_20' ) end [2025-01-08 16:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:48:25] Production.INFO: ==27068== Releasing lock... [2025-01-08 16:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:48:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-08 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:49:04 [end_date_ymd] => 2025-01-08 16:49:04 [RateCDR] => 1 ) [2025-01-08 16:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:49:04' and `end` < '2025-01-08 16:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:49:19] Production.INFO: count ==4797 [2025-01-08 16:49:20] Production.ERROR: pbx CDR StartTime 2025-01-08 13:49:04 - End Time 2025-01-08 16:49:04 [2025-01-08 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203568', 'tblTempUsageDetail_20' ) start [2025-01-08 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203568', 'tblTempUsageDetail_20' ) end [2025-01-08 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203568', 'tblTempVendorCDR_20' ) start [2025-01-08 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203568', 'tblTempVendorCDR_20' ) end [2025-01-08 16:49:20] Production.INFO: ProcessCDR(1,14203568,1,1,2) [2025-01-08 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203568', 'tblTempUsageDetail_20' ) start [2025-01-08 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203568', 'tblTempUsageDetail_20' ) end [2025-01-08 16:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:49:25] Production.INFO: ==27140== Releasing lock... [2025-01-08 16:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:49:25] Production.INFO: 64 MB #Memory Used# [2025-01-08 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:50:06 [end_date_ymd] => 2025-01-08 16:50:06 [RateCDR] => 1 ) [2025-01-08 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:50:06' and `end` < '2025-01-08 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:50:31] Production.INFO: count ==4772 [2025-01-08 16:50:33] Production.ERROR: pbx CDR StartTime 2025-01-08 13:50:06 - End Time 2025-01-08 16:50:06 [2025-01-08 16:50:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203574', 'tblTempUsageDetail_20' ) start [2025-01-08 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203574', 'tblTempUsageDetail_20' ) end [2025-01-08 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203574', 'tblTempVendorCDR_20' ) start [2025-01-08 16:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203574', 'tblTempVendorCDR_20' ) end [2025-01-08 16:50:33] Production.INFO: ProcessCDR(1,14203574,1,1,2) [2025-01-08 16:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203574', 'tblTempUsageDetail_20' ) start [2025-01-08 16:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203574', 'tblTempUsageDetail_20' ) end [2025-01-08 16:50:38] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:50:38] Production.INFO: ==27213== Releasing lock... [2025-01-08 16:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:50:38] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:51:05 [end_date_ymd] => 2025-01-08 16:51:05 [RateCDR] => 1 ) [2025-01-08 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:51:05' and `end` < '2025-01-08 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:51:22] Production.INFO: count ==4770 [2025-01-08 16:51:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:51:05 - End Time 2025-01-08 16:51:05 [2025-01-08 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203579', 'tblTempUsageDetail_20' ) start [2025-01-08 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203579', 'tblTempUsageDetail_20' ) end [2025-01-08 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203579', 'tblTempVendorCDR_20' ) start [2025-01-08 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203579', 'tblTempVendorCDR_20' ) end [2025-01-08 16:51:24] Production.INFO: ProcessCDR(1,14203579,1,1,2) [2025-01-08 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203579', 'tblTempUsageDetail_20' ) start [2025-01-08 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203579', 'tblTempUsageDetail_20' ) end [2025-01-08 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:51:28] Production.INFO: ==27287== Releasing lock... [2025-01-08 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:51:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:52:05 [end_date_ymd] => 2025-01-08 16:52:05 [RateCDR] => 1 ) [2025-01-08 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:52:05' and `end` < '2025-01-08 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:52:19] Production.INFO: count ==4761 [2025-01-08 16:52:21] Production.ERROR: pbx CDR StartTime 2025-01-08 13:52:05 - End Time 2025-01-08 16:52:05 [2025-01-08 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203584', 'tblTempUsageDetail_20' ) start [2025-01-08 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203584', 'tblTempUsageDetail_20' ) end [2025-01-08 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203584', 'tblTempVendorCDR_20' ) start [2025-01-08 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203584', 'tblTempVendorCDR_20' ) end [2025-01-08 16:52:21] Production.INFO: ProcessCDR(1,14203584,1,1,2) [2025-01-08 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203584', 'tblTempUsageDetail_20' ) start [2025-01-08 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203584', 'tblTempUsageDetail_20' ) end [2025-01-08 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:52:25] Production.INFO: ==27358== Releasing lock... [2025-01-08 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:52:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-08 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:53:05 [end_date_ymd] => 2025-01-08 16:53:05 [RateCDR] => 1 ) [2025-01-08 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:53:05' and `end` < '2025-01-08 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:53:19] Production.INFO: count ==4748 [2025-01-08 16:53:20] Production.ERROR: pbx CDR StartTime 2025-01-08 13:53:05 - End Time 2025-01-08 16:53:05 [2025-01-08 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203589', 'tblTempUsageDetail_20' ) start [2025-01-08 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203589', 'tblTempUsageDetail_20' ) end [2025-01-08 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203589', 'tblTempVendorCDR_20' ) start [2025-01-08 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203589', 'tblTempVendorCDR_20' ) end [2025-01-08 16:53:21] Production.INFO: ProcessCDR(1,14203589,1,1,2) [2025-01-08 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203589', 'tblTempUsageDetail_20' ) start [2025-01-08 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203589', 'tblTempUsageDetail_20' ) end [2025-01-08 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:53:25] Production.INFO: ==27430== Releasing lock... [2025-01-08 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:53:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-08 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:54:04 [end_date_ymd] => 2025-01-08 16:54:04 [RateCDR] => 1 ) [2025-01-08 16:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:54:04' and `end` < '2025-01-08 16:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:54:23] Production.INFO: count ==4719 [2025-01-08 16:54:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:54:04 - End Time 2025-01-08 16:54:04 [2025-01-08 16:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203594', 'tblTempUsageDetail_20' ) start [2025-01-08 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203594', 'tblTempUsageDetail_20' ) end [2025-01-08 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203594', 'tblTempVendorCDR_20' ) start [2025-01-08 16:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203594', 'tblTempVendorCDR_20' ) end [2025-01-08 16:54:25] Production.INFO: ProcessCDR(1,14203594,1,1,2) [2025-01-08 16:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203594', 'tblTempUsageDetail_20' ) start [2025-01-08 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203594', 'tblTempUsageDetail_20' ) end [2025-01-08 16:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:54:29] Production.INFO: ==27501== Releasing lock... [2025-01-08 16:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:54:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-08 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:55:05 [end_date_ymd] => 2025-01-08 16:55:05 [RateCDR] => 1 ) [2025-01-08 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:55:05' and `end` < '2025-01-08 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:55:24] Production.INFO: count ==4683 [2025-01-08 16:55:25] Production.ERROR: pbx CDR StartTime 2025-01-08 13:55:05 - End Time 2025-01-08 16:55:05 [2025-01-08 16:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203599', 'tblTempUsageDetail_20' ) start [2025-01-08 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203599', 'tblTempUsageDetail_20' ) end [2025-01-08 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203599', 'tblTempVendorCDR_20' ) start [2025-01-08 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203599', 'tblTempVendorCDR_20' ) end [2025-01-08 16:55:26] Production.INFO: ProcessCDR(1,14203599,1,1,2) [2025-01-08 16:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203599', 'tblTempUsageDetail_20' ) start [2025-01-08 16:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203599', 'tblTempUsageDetail_20' ) end [2025-01-08 16:55:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:55:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:55:30] Production.INFO: ==27602== Releasing lock... [2025-01-08 16:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:55:30] Production.INFO: 63 MB #Memory Used# [2025-01-08 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:56:05 [end_date_ymd] => 2025-01-08 16:56:05 [RateCDR] => 1 ) [2025-01-08 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:56:05' and `end` < '2025-01-08 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:56:19] Production.INFO: count ==4673 [2025-01-08 16:56:21] Production.ERROR: pbx CDR StartTime 2025-01-08 13:56:05 - End Time 2025-01-08 16:56:05 [2025-01-08 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203604', 'tblTempUsageDetail_20' ) start [2025-01-08 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203604', 'tblTempUsageDetail_20' ) end [2025-01-08 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203604', 'tblTempVendorCDR_20' ) start [2025-01-08 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203604', 'tblTempVendorCDR_20' ) end [2025-01-08 16:56:21] Production.INFO: ProcessCDR(1,14203604,1,1,2) [2025-01-08 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203604', 'tblTempUsageDetail_20' ) start [2025-01-08 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203604', 'tblTempUsageDetail_20' ) end [2025-01-08 16:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:56:26] Production.INFO: ==27716== Releasing lock... [2025-01-08 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:56:26] Production.INFO: 63 MB #Memory Used# [2025-01-08 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:57:05 [end_date_ymd] => 2025-01-08 16:57:05 [RateCDR] => 1 ) [2025-01-08 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:57:05' and `end` < '2025-01-08 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:57:22] Production.INFO: count ==4680 [2025-01-08 16:57:23] Production.ERROR: pbx CDR StartTime 2025-01-08 13:57:05 - End Time 2025-01-08 16:57:05 [2025-01-08 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203609', 'tblTempUsageDetail_20' ) start [2025-01-08 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203609', 'tblTempUsageDetail_20' ) end [2025-01-08 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203609', 'tblTempVendorCDR_20' ) start [2025-01-08 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203609', 'tblTempVendorCDR_20' ) end [2025-01-08 16:57:24] Production.INFO: ProcessCDR(1,14203609,1,1,2) [2025-01-08 16:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203609', 'tblTempUsageDetail_20' ) start [2025-01-08 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203609', 'tblTempUsageDetail_20' ) end [2025-01-08 16:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:57:28] Production.INFO: ==27801== Releasing lock... [2025-01-08 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:57:28] Production.INFO: 63 MB #Memory Used# [2025-01-08 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:58:05 [end_date_ymd] => 2025-01-08 16:58:05 [RateCDR] => 1 ) [2025-01-08 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:58:05' and `end` < '2025-01-08 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:58:21] Production.INFO: count ==4685 [2025-01-08 16:58:22] Production.ERROR: pbx CDR StartTime 2025-01-08 13:58:05 - End Time 2025-01-08 16:58:05 [2025-01-08 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203614', 'tblTempUsageDetail_20' ) start [2025-01-08 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203614', 'tblTempUsageDetail_20' ) end [2025-01-08 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203614', 'tblTempVendorCDR_20' ) start [2025-01-08 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203614', 'tblTempVendorCDR_20' ) end [2025-01-08 16:58:22] Production.INFO: ProcessCDR(1,14203614,1,1,2) [2025-01-08 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203614', 'tblTempUsageDetail_20' ) start [2025-01-08 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203614', 'tblTempUsageDetail_20' ) end [2025-01-08 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:58:27] Production.INFO: ==27878== Releasing lock... [2025-01-08 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:58:27] Production.INFO: 63 MB #Memory Used# [2025-01-08 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 13:59:04 [end_date_ymd] => 2025-01-08 16:59:04 [RateCDR] => 1 ) [2025-01-08 16:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 13:59:04' and `end` < '2025-01-08 16:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 16:59:23] Production.INFO: count ==4674 [2025-01-08 16:59:24] Production.ERROR: pbx CDR StartTime 2025-01-08 13:59:04 - End Time 2025-01-08 16:59:04 [2025-01-08 16:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203619', 'tblTempUsageDetail_20' ) start [2025-01-08 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203619', 'tblTempUsageDetail_20' ) end [2025-01-08 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203619', 'tblTempVendorCDR_20' ) start [2025-01-08 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203619', 'tblTempVendorCDR_20' ) end [2025-01-08 16:59:24] Production.INFO: ProcessCDR(1,14203619,1,1,2) [2025-01-08 16:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 16:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203619', 'tblTempUsageDetail_20' ) start [2025-01-08 16:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203619', 'tblTempUsageDetail_20' ) end [2025-01-08 16:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 16:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 16:59:29] Production.INFO: ==27953== Releasing lock... [2025-01-08 16:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 16:59:29] Production.INFO: 63 MB #Memory Used# [2025-01-08 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:00:06 [end_date_ymd] => 2025-01-08 17:00:06 [RateCDR] => 1 ) [2025-01-08 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:00:06' and `end` < '2025-01-08 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:00:19] Production.INFO: count ==4626 [2025-01-08 17:00:21] Production.ERROR: pbx CDR StartTime 2025-01-08 14:00:06 - End Time 2025-01-08 17:00:06 [2025-01-08 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203625', 'tblTempUsageDetail_20' ) start [2025-01-08 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203625', 'tblTempUsageDetail_20' ) end [2025-01-08 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203625', 'tblTempVendorCDR_20' ) start [2025-01-08 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203625', 'tblTempVendorCDR_20' ) end [2025-01-08 17:00:21] Production.INFO: ProcessCDR(1,14203625,1,1,2) [2025-01-08 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203625', 'tblTempUsageDetail_20' ) start [2025-01-08 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203625', 'tblTempUsageDetail_20' ) end [2025-01-08 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:00:26] Production.INFO: ==28030== Releasing lock... [2025-01-08 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:00:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-08 17:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:01:04 [end_date_ymd] => 2025-01-08 17:01:04 [RateCDR] => 1 ) [2025-01-08 17:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:01:04' and `end` < '2025-01-08 17:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:01:22] Production.INFO: count ==4560 [2025-01-08 17:01:23] Production.ERROR: pbx CDR StartTime 2025-01-08 14:01:04 - End Time 2025-01-08 17:01:04 [2025-01-08 17:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203630', 'tblTempUsageDetail_20' ) start [2025-01-08 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203630', 'tblTempUsageDetail_20' ) end [2025-01-08 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203630', 'tblTempVendorCDR_20' ) start [2025-01-08 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203630', 'tblTempVendorCDR_20' ) end [2025-01-08 17:01:23] Production.INFO: ProcessCDR(1,14203630,1,1,2) [2025-01-08 17:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203630', 'tblTempUsageDetail_20' ) start [2025-01-08 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203630', 'tblTempUsageDetail_20' ) end [2025-01-08 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:01:28] Production.INFO: ==28156== Releasing lock... [2025-01-08 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:01:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-08 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:02:05 [end_date_ymd] => 2025-01-08 17:02:05 [RateCDR] => 1 ) [2025-01-08 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:02:05' and `end` < '2025-01-08 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:02:30] Production.INFO: count ==4565 [2025-01-08 17:02:31] Production.ERROR: pbx CDR StartTime 2025-01-08 14:02:05 - End Time 2025-01-08 17:02:05 [2025-01-08 17:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203635', 'tblTempUsageDetail_20' ) start [2025-01-08 17:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203635', 'tblTempUsageDetail_20' ) end [2025-01-08 17:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203635', 'tblTempVendorCDR_20' ) start [2025-01-08 17:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203635', 'tblTempVendorCDR_20' ) end [2025-01-08 17:02:32] Production.INFO: ProcessCDR(1,14203635,1,1,2) [2025-01-08 17:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203635', 'tblTempUsageDetail_20' ) start [2025-01-08 17:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203635', 'tblTempUsageDetail_20' ) end [2025-01-08 17:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:02:36] Production.INFO: ==28248== Releasing lock... [2025-01-08 17:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:02:36] Production.INFO: 62.25 MB #Memory Used# [2025-01-08 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:03:05 [end_date_ymd] => 2025-01-08 17:03:05 [RateCDR] => 1 ) [2025-01-08 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:03:05' and `end` < '2025-01-08 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:03:22] Production.INFO: count ==4546 [2025-01-08 17:03:24] Production.ERROR: pbx CDR StartTime 2025-01-08 14:03:05 - End Time 2025-01-08 17:03:05 [2025-01-08 17:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203640', 'tblTempUsageDetail_20' ) start [2025-01-08 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203640', 'tblTempUsageDetail_20' ) end [2025-01-08 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203640', 'tblTempVendorCDR_20' ) start [2025-01-08 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203640', 'tblTempVendorCDR_20' ) end [2025-01-08 17:03:24] Production.INFO: ProcessCDR(1,14203640,1,1,2) [2025-01-08 17:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203640', 'tblTempUsageDetail_20' ) start [2025-01-08 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203640', 'tblTempUsageDetail_20' ) end [2025-01-08 17:03:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:03:29] Production.INFO: ==28338== Releasing lock... [2025-01-08 17:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:03:29] Production.INFO: 62 MB #Memory Used# [2025-01-08 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:04:05 [end_date_ymd] => 2025-01-08 17:04:05 [RateCDR] => 1 ) [2025-01-08 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:04:05' and `end` < '2025-01-08 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:04:22] Production.INFO: count ==4505 [2025-01-08 17:04:23] Production.ERROR: pbx CDR StartTime 2025-01-08 14:04:05 - End Time 2025-01-08 17:04:05 [2025-01-08 17:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203645', 'tblTempUsageDetail_20' ) start [2025-01-08 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203645', 'tblTempUsageDetail_20' ) end [2025-01-08 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203645', 'tblTempVendorCDR_20' ) start [2025-01-08 17:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203645', 'tblTempVendorCDR_20' ) end [2025-01-08 17:04:24] Production.INFO: ProcessCDR(1,14203645,1,1,2) [2025-01-08 17:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203645', 'tblTempUsageDetail_20' ) start [2025-01-08 17:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203645', 'tblTempUsageDetail_20' ) end [2025-01-08 17:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:04:28] Production.INFO: ==28430== Releasing lock... [2025-01-08 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:04:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-08 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:05:05 [end_date_ymd] => 2025-01-08 17:05:05 [RateCDR] => 1 ) [2025-01-08 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:05:05' and `end` < '2025-01-08 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:05:19] Production.INFO: count ==4498 [2025-01-08 17:05:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:05:05 - End Time 2025-01-08 17:05:05 [2025-01-08 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203650', 'tblTempUsageDetail_20' ) start [2025-01-08 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203650', 'tblTempUsageDetail_20' ) end [2025-01-08 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203650', 'tblTempVendorCDR_20' ) start [2025-01-08 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203650', 'tblTempVendorCDR_20' ) end [2025-01-08 17:05:20] Production.INFO: ProcessCDR(1,14203650,1,1,2) [2025-01-08 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203650', 'tblTempUsageDetail_20' ) start [2025-01-08 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203650', 'tblTempUsageDetail_20' ) end [2025-01-08 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:05:23] Production.INFO: ==28524== Releasing lock... [2025-01-08 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:05:23] Production.INFO: 61.75 MB #Memory Used# [2025-01-08 17:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:06:04 [end_date_ymd] => 2025-01-08 17:06:04 [RateCDR] => 1 ) [2025-01-08 17:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:06:04' and `end` < '2025-01-08 17:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:06:19] Production.INFO: count ==4499 [2025-01-08 17:06:21] Production.ERROR: pbx CDR StartTime 2025-01-08 14:06:04 - End Time 2025-01-08 17:06:04 [2025-01-08 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203655', 'tblTempUsageDetail_20' ) start [2025-01-08 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203655', 'tblTempUsageDetail_20' ) end [2025-01-08 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203655', 'tblTempVendorCDR_20' ) start [2025-01-08 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203655', 'tblTempVendorCDR_20' ) end [2025-01-08 17:06:21] Production.INFO: ProcessCDR(1,14203655,1,1,2) [2025-01-08 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203655', 'tblTempUsageDetail_20' ) start [2025-01-08 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203655', 'tblTempUsageDetail_20' ) end [2025-01-08 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:06:26] Production.INFO: ==28615== Releasing lock... [2025-01-08 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:06:26] Production.INFO: 61.75 MB #Memory Used# [2025-01-08 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:07:05 [end_date_ymd] => 2025-01-08 17:07:05 [RateCDR] => 1 ) [2025-01-08 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:07:05' and `end` < '2025-01-08 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:07:20] Production.INFO: count ==4486 [2025-01-08 17:07:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:07:05 - End Time 2025-01-08 17:07:05 [2025-01-08 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203660', 'tblTempUsageDetail_20' ) start [2025-01-08 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203660', 'tblTempUsageDetail_20' ) end [2025-01-08 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203660', 'tblTempVendorCDR_20' ) start [2025-01-08 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203660', 'tblTempVendorCDR_20' ) end [2025-01-08 17:07:22] Production.INFO: ProcessCDR(1,14203660,1,1,2) [2025-01-08 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203660', 'tblTempUsageDetail_20' ) start [2025-01-08 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203660', 'tblTempUsageDetail_20' ) end [2025-01-08 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:07:27] Production.INFO: ==28707== Releasing lock... [2025-01-08 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:07:27] Production.INFO: 61.5 MB #Memory Used# [2025-01-08 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:08:05 [end_date_ymd] => 2025-01-08 17:08:05 [RateCDR] => 1 ) [2025-01-08 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:08:05' and `end` < '2025-01-08 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:08:18] Production.INFO: count ==4479 [2025-01-08 17:08:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:08:05 - End Time 2025-01-08 17:08:05 [2025-01-08 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203665', 'tblTempUsageDetail_20' ) start [2025-01-08 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203665', 'tblTempUsageDetail_20' ) end [2025-01-08 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203665', 'tblTempVendorCDR_20' ) start [2025-01-08 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203665', 'tblTempVendorCDR_20' ) end [2025-01-08 17:08:20] Production.INFO: ProcessCDR(1,14203665,1,1,2) [2025-01-08 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203665', 'tblTempUsageDetail_20' ) start [2025-01-08 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203665', 'tblTempUsageDetail_20' ) end [2025-01-08 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:08:25] Production.INFO: ==28799== Releasing lock... [2025-01-08 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:08:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-08 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:09:05 [end_date_ymd] => 2025-01-08 17:09:05 [RateCDR] => 1 ) [2025-01-08 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:09:05' and `end` < '2025-01-08 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:09:19] Production.INFO: count ==4466 [2025-01-08 17:09:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:09:05 - End Time 2025-01-08 17:09:05 [2025-01-08 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203670', 'tblTempUsageDetail_20' ) start [2025-01-08 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203670', 'tblTempUsageDetail_20' ) end [2025-01-08 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203670', 'tblTempVendorCDR_20' ) start [2025-01-08 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203670', 'tblTempVendorCDR_20' ) end [2025-01-08 17:09:20] Production.INFO: ProcessCDR(1,14203670,1,1,2) [2025-01-08 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203670', 'tblTempUsageDetail_20' ) start [2025-01-08 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203670', 'tblTempUsageDetail_20' ) end [2025-01-08 17:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:09:24] Production.INFO: ==28891== Releasing lock... [2025-01-08 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:09:24] Production.INFO: 61.5 MB #Memory Used# [2025-01-08 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:10:05 [end_date_ymd] => 2025-01-08 17:10:05 [RateCDR] => 1 ) [2025-01-08 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:10:05' and `end` < '2025-01-08 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:10:22] Production.INFO: count ==4475 [2025-01-08 17:10:23] Production.ERROR: pbx CDR StartTime 2025-01-08 14:10:05 - End Time 2025-01-08 17:10:05 [2025-01-08 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203676', 'tblTempUsageDetail_20' ) start [2025-01-08 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203676', 'tblTempUsageDetail_20' ) end [2025-01-08 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203676', 'tblTempVendorCDR_20' ) start [2025-01-08 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203676', 'tblTempVendorCDR_20' ) end [2025-01-08 17:10:24] Production.INFO: ProcessCDR(1,14203676,1,1,2) [2025-01-08 17:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203676', 'tblTempUsageDetail_20' ) start [2025-01-08 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203676', 'tblTempUsageDetail_20' ) end [2025-01-08 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:10:28] Production.INFO: ==28985== Releasing lock... [2025-01-08 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:10:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-08 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:11:05 [end_date_ymd] => 2025-01-08 17:11:05 [RateCDR] => 1 ) [2025-01-08 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:11:05' and `end` < '2025-01-08 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:11:22] Production.INFO: count ==4432 [2025-01-08 17:11:24] Production.ERROR: pbx CDR StartTime 2025-01-08 14:11:05 - End Time 2025-01-08 17:11:05 [2025-01-08 17:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203681', 'tblTempUsageDetail_20' ) start [2025-01-08 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203681', 'tblTempUsageDetail_20' ) end [2025-01-08 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203681', 'tblTempVendorCDR_20' ) start [2025-01-08 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203681', 'tblTempVendorCDR_20' ) end [2025-01-08 17:11:24] Production.INFO: ProcessCDR(1,14203681,1,1,2) [2025-01-08 17:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203681', 'tblTempUsageDetail_20' ) start [2025-01-08 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203681', 'tblTempUsageDetail_20' ) end [2025-01-08 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:11:28] Production.INFO: ==29079== Releasing lock... [2025-01-08 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:11:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-08 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:12:05 [end_date_ymd] => 2025-01-08 17:12:05 [RateCDR] => 1 ) [2025-01-08 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:12:05' and `end` < '2025-01-08 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:12:19] Production.INFO: count ==4407 [2025-01-08 17:12:21] Production.ERROR: pbx CDR StartTime 2025-01-08 14:12:05 - End Time 2025-01-08 17:12:05 [2025-01-08 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203686', 'tblTempUsageDetail_20' ) start [2025-01-08 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203686', 'tblTempUsageDetail_20' ) end [2025-01-08 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203686', 'tblTempVendorCDR_20' ) start [2025-01-08 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203686', 'tblTempVendorCDR_20' ) end [2025-01-08 17:12:21] Production.INFO: ProcessCDR(1,14203686,1,1,2) [2025-01-08 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203686', 'tblTempUsageDetail_20' ) start [2025-01-08 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203686', 'tblTempUsageDetail_20' ) end [2025-01-08 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:12:26] Production.INFO: ==29173== Releasing lock... [2025-01-08 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:12:26] Production.INFO: 61 MB #Memory Used# [2025-01-08 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:13:04 [end_date_ymd] => 2025-01-08 17:13:04 [RateCDR] => 1 ) [2025-01-08 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:13:04' and `end` < '2025-01-08 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:13:18] Production.INFO: count ==4398 [2025-01-08 17:13:19] Production.ERROR: pbx CDR StartTime 2025-01-08 14:13:04 - End Time 2025-01-08 17:13:04 [2025-01-08 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203691', 'tblTempUsageDetail_20' ) start [2025-01-08 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203691', 'tblTempUsageDetail_20' ) end [2025-01-08 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203691', 'tblTempVendorCDR_20' ) start [2025-01-08 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203691', 'tblTempVendorCDR_20' ) end [2025-01-08 17:13:19] Production.INFO: ProcessCDR(1,14203691,1,1,2) [2025-01-08 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203691', 'tblTempUsageDetail_20' ) start [2025-01-08 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203691', 'tblTempUsageDetail_20' ) end [2025-01-08 17:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:13:23] Production.INFO: ==29261== Releasing lock... [2025-01-08 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:13:23] Production.INFO: 61 MB #Memory Used# [2025-01-08 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:14:05 [end_date_ymd] => 2025-01-08 17:14:05 [RateCDR] => 1 ) [2025-01-08 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:14:05' and `end` < '2025-01-08 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:14:20] Production.INFO: count ==4384 [2025-01-08 17:14:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:14:05 - End Time 2025-01-08 17:14:05 [2025-01-08 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203696', 'tblTempUsageDetail_20' ) start [2025-01-08 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203696', 'tblTempUsageDetail_20' ) end [2025-01-08 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203696', 'tblTempVendorCDR_20' ) start [2025-01-08 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203696', 'tblTempVendorCDR_20' ) end [2025-01-08 17:14:22] Production.INFO: ProcessCDR(1,14203696,1,1,2) [2025-01-08 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203696', 'tblTempUsageDetail_20' ) start [2025-01-08 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203696', 'tblTempUsageDetail_20' ) end [2025-01-08 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:14:25] Production.INFO: ==29356== Releasing lock... [2025-01-08 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:14:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-08 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:15:05 [end_date_ymd] => 2025-01-08 17:15:05 [RateCDR] => 1 ) [2025-01-08 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:15:05' and `end` < '2025-01-08 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:15:20] Production.INFO: count ==4368 [2025-01-08 17:15:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:15:05 - End Time 2025-01-08 17:15:05 [2025-01-08 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203701', 'tblTempUsageDetail_20' ) start [2025-01-08 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203701', 'tblTempUsageDetail_20' ) end [2025-01-08 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203701', 'tblTempVendorCDR_20' ) start [2025-01-08 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203701', 'tblTempVendorCDR_20' ) end [2025-01-08 17:15:22] Production.INFO: ProcessCDR(1,14203701,1,1,2) [2025-01-08 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203701', 'tblTempUsageDetail_20' ) start [2025-01-08 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203701', 'tblTempUsageDetail_20' ) end [2025-01-08 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:15:27] Production.INFO: ==29449== Releasing lock... [2025-01-08 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:15:27] Production.INFO: 61 MB #Memory Used# [2025-01-08 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:16:05 [end_date_ymd] => 2025-01-08 17:16:05 [RateCDR] => 1 ) [2025-01-08 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:16:05' and `end` < '2025-01-08 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:16:18] Production.INFO: count ==4383 [2025-01-08 17:16:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:16:05 - End Time 2025-01-08 17:16:05 [2025-01-08 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203706', 'tblTempUsageDetail_20' ) start [2025-01-08 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203706', 'tblTempUsageDetail_20' ) end [2025-01-08 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203706', 'tblTempVendorCDR_20' ) start [2025-01-08 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203706', 'tblTempVendorCDR_20' ) end [2025-01-08 17:16:20] Production.INFO: ProcessCDR(1,14203706,1,1,2) [2025-01-08 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203706', 'tblTempUsageDetail_20' ) start [2025-01-08 17:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203706', 'tblTempUsageDetail_20' ) end [2025-01-08 17:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:16:23] Production.INFO: ==29582== Releasing lock... [2025-01-08 17:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:16:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-08 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:17:05 [end_date_ymd] => 2025-01-08 17:17:05 [RateCDR] => 1 ) [2025-01-08 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:17:05' and `end` < '2025-01-08 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:17:19] Production.INFO: count ==4381 [2025-01-08 17:17:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:17:05 - End Time 2025-01-08 17:17:05 [2025-01-08 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203711', 'tblTempUsageDetail_20' ) start [2025-01-08 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203711', 'tblTempUsageDetail_20' ) end [2025-01-08 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203711', 'tblTempVendorCDR_20' ) start [2025-01-08 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203711', 'tblTempVendorCDR_20' ) end [2025-01-08 17:17:20] Production.INFO: ProcessCDR(1,14203711,1,1,2) [2025-01-08 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203711', 'tblTempUsageDetail_20' ) start [2025-01-08 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203711', 'tblTempUsageDetail_20' ) end [2025-01-08 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:17:25] Production.INFO: ==29678== Releasing lock... [2025-01-08 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:17:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-08 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:18:04 [end_date_ymd] => 2025-01-08 17:18:04 [RateCDR] => 1 ) [2025-01-08 17:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:18:04' and `end` < '2025-01-08 17:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:18:18] Production.INFO: count ==4369 [2025-01-08 17:18:19] Production.ERROR: pbx CDR StartTime 2025-01-08 14:18:04 - End Time 2025-01-08 17:18:04 [2025-01-08 17:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203716', 'tblTempUsageDetail_20' ) start [2025-01-08 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203716', 'tblTempUsageDetail_20' ) end [2025-01-08 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203716', 'tblTempVendorCDR_20' ) start [2025-01-08 17:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203716', 'tblTempVendorCDR_20' ) end [2025-01-08 17:18:19] Production.INFO: ProcessCDR(1,14203716,1,1,2) [2025-01-08 17:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203716', 'tblTempUsageDetail_20' ) start [2025-01-08 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203716', 'tblTempUsageDetail_20' ) end [2025-01-08 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:18:24] Production.INFO: ==29763== Releasing lock... [2025-01-08 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:18:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-08 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:19:05 [end_date_ymd] => 2025-01-08 17:19:05 [RateCDR] => 1 ) [2025-01-08 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:19:05' and `end` < '2025-01-08 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:19:26] Production.INFO: count ==4335 [2025-01-08 17:19:27] Production.ERROR: pbx CDR StartTime 2025-01-08 14:19:05 - End Time 2025-01-08 17:19:05 [2025-01-08 17:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203721', 'tblTempUsageDetail_20' ) start [2025-01-08 17:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203721', 'tblTempUsageDetail_20' ) end [2025-01-08 17:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203721', 'tblTempVendorCDR_20' ) start [2025-01-08 17:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203721', 'tblTempVendorCDR_20' ) end [2025-01-08 17:19:27] Production.INFO: ProcessCDR(1,14203721,1,1,2) [2025-01-08 17:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203721', 'tblTempUsageDetail_20' ) start [2025-01-08 17:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203721', 'tblTempUsageDetail_20' ) end [2025-01-08 17:19:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:19:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:19:32] Production.INFO: ==29857== Releasing lock... [2025-01-08 17:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:19:32] Production.INFO: 60.5 MB #Memory Used# [2025-01-08 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:20:06 [end_date_ymd] => 2025-01-08 17:20:06 [RateCDR] => 1 ) [2025-01-08 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:20:06' and `end` < '2025-01-08 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:20:20] Production.INFO: count ==4315 [2025-01-08 17:20:21] Production.ERROR: pbx CDR StartTime 2025-01-08 14:20:06 - End Time 2025-01-08 17:20:06 [2025-01-08 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203727', 'tblTempUsageDetail_20' ) start [2025-01-08 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203727', 'tblTempUsageDetail_20' ) end [2025-01-08 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203727', 'tblTempVendorCDR_20' ) start [2025-01-08 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203727', 'tblTempVendorCDR_20' ) end [2025-01-08 17:20:21] Production.INFO: ProcessCDR(1,14203727,1,1,2) [2025-01-08 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203727', 'tblTempUsageDetail_20' ) start [2025-01-08 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203727', 'tblTempUsageDetail_20' ) end [2025-01-08 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:20:26] Production.INFO: ==29945== Releasing lock... [2025-01-08 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:20:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-08 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:21:05 [end_date_ymd] => 2025-01-08 17:21:05 [RateCDR] => 1 ) [2025-01-08 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:21:05' and `end` < '2025-01-08 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:21:19] Production.INFO: count ==4310 [2025-01-08 17:21:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:21:05 - End Time 2025-01-08 17:21:05 [2025-01-08 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203732', 'tblTempUsageDetail_20' ) start [2025-01-08 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203732', 'tblTempUsageDetail_20' ) end [2025-01-08 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203732', 'tblTempVendorCDR_20' ) start [2025-01-08 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203732', 'tblTempVendorCDR_20' ) end [2025-01-08 17:21:20] Production.INFO: ProcessCDR(1,14203732,1,1,2) [2025-01-08 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203732', 'tblTempUsageDetail_20' ) start [2025-01-08 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203732', 'tblTempUsageDetail_20' ) end [2025-01-08 17:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:21:23] Production.INFO: ==30026== Releasing lock... [2025-01-08 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:21:23] Production.INFO: 60.25 MB #Memory Used# [2025-01-08 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:22:05 [end_date_ymd] => 2025-01-08 17:22:05 [RateCDR] => 1 ) [2025-01-08 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:22:05' and `end` < '2025-01-08 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:22:18] Production.INFO: count ==4286 [2025-01-08 17:22:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:22:05 - End Time 2025-01-08 17:22:05 [2025-01-08 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203737', 'tblTempUsageDetail_20' ) start [2025-01-08 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203737', 'tblTempUsageDetail_20' ) end [2025-01-08 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203737', 'tblTempVendorCDR_20' ) start [2025-01-08 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203737', 'tblTempVendorCDR_20' ) end [2025-01-08 17:22:20] Production.INFO: ProcessCDR(1,14203737,1,1,2) [2025-01-08 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203737', 'tblTempUsageDetail_20' ) start [2025-01-08 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203737', 'tblTempUsageDetail_20' ) end [2025-01-08 17:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:22:23] Production.INFO: ==30096== Releasing lock... [2025-01-08 17:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:22:23] Production.INFO: 60 MB #Memory Used# [2025-01-08 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:23:04 [end_date_ymd] => 2025-01-08 17:23:04 [RateCDR] => 1 ) [2025-01-08 17:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:23:04' and `end` < '2025-01-08 17:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:23:18] Production.INFO: count ==4279 [2025-01-08 17:23:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:23:04 - End Time 2025-01-08 17:23:04 [2025-01-08 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203742', 'tblTempUsageDetail_20' ) start [2025-01-08 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203742', 'tblTempUsageDetail_20' ) end [2025-01-08 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203742', 'tblTempVendorCDR_20' ) start [2025-01-08 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203742', 'tblTempVendorCDR_20' ) end [2025-01-08 17:23:20] Production.INFO: ProcessCDR(1,14203742,1,1,2) [2025-01-08 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203742', 'tblTempUsageDetail_20' ) start [2025-01-08 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203742', 'tblTempUsageDetail_20' ) end [2025-01-08 17:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:23:24] Production.INFO: ==30165== Releasing lock... [2025-01-08 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:23:24] Production.INFO: 60 MB #Memory Used# [2025-01-08 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:24:05 [end_date_ymd] => 2025-01-08 17:24:05 [RateCDR] => 1 ) [2025-01-08 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:24:05' and `end` < '2025-01-08 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:24:18] Production.INFO: count ==4243 [2025-01-08 17:24:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:24:05 - End Time 2025-01-08 17:24:05 [2025-01-08 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203747', 'tblTempUsageDetail_20' ) start [2025-01-08 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203747', 'tblTempUsageDetail_20' ) end [2025-01-08 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203747', 'tblTempVendorCDR_20' ) start [2025-01-08 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203747', 'tblTempVendorCDR_20' ) end [2025-01-08 17:24:20] Production.INFO: ProcessCDR(1,14203747,1,1,2) [2025-01-08 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203747', 'tblTempUsageDetail_20' ) start [2025-01-08 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203747', 'tblTempUsageDetail_20' ) end [2025-01-08 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:24:25] Production.INFO: ==30236== Releasing lock... [2025-01-08 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:24:25] Production.INFO: 60 MB #Memory Used# [2025-01-08 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:25:04 [end_date_ymd] => 2025-01-08 17:25:04 [RateCDR] => 1 ) [2025-01-08 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:25:04' and `end` < '2025-01-08 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:25:22] Production.INFO: count ==4234 [2025-01-08 17:25:24] Production.ERROR: pbx CDR StartTime 2025-01-08 14:25:04 - End Time 2025-01-08 17:25:04 [2025-01-08 17:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203752', 'tblTempUsageDetail_20' ) start [2025-01-08 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203752', 'tblTempUsageDetail_20' ) end [2025-01-08 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203752', 'tblTempVendorCDR_20' ) start [2025-01-08 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203752', 'tblTempVendorCDR_20' ) end [2025-01-08 17:25:24] Production.INFO: ProcessCDR(1,14203752,1,1,2) [2025-01-08 17:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203752', 'tblTempUsageDetail_20' ) start [2025-01-08 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203752', 'tblTempUsageDetail_20' ) end [2025-01-08 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:25:28] Production.INFO: ==30312== Releasing lock... [2025-01-08 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:25:28] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 17:26:14] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:26:14 [end_date_ymd] => 2025-01-08 17:26:14 [RateCDR] => 1 ) [2025-01-08 17:26:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:26:14' and `end` < '2025-01-08 17:26:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:26:29] Production.INFO: count ==4240 [2025-01-08 17:27:21] Production.ERROR: pbx CDR StartTime 2025-01-08 14:26:14 - End Time 2025-01-08 17:26:14 [2025-01-08 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203757', 'tblTempUsageDetail_20' ) start [2025-01-08 17:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203757', 'tblTempUsageDetail_20' ) end [2025-01-08 17:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203757', 'tblTempVendorCDR_20' ) start [2025-01-08 17:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203757', 'tblTempVendorCDR_20' ) end [2025-01-08 17:27:29] Production.INFO: ProcessCDR(1,14203757,1,1,2) [2025-01-08 17:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:27:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:27:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:27:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:27:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203757', 'tblTempUsageDetail_20' ) start [2025-01-08 17:27:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203757', 'tblTempUsageDetail_20' ) end [2025-01-08 17:27:56] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:27:56] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:27:59] Production.INFO: ==30386== Releasing lock... [2025-01-08 17:27:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:27:59] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 17:28:13] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:28:13 [end_date_ymd] => 2025-01-08 17:28:13 [RateCDR] => 1 ) [2025-01-08 17:28:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:28:13' and `end` < '2025-01-08 17:28:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:28:28] Production.INFO: count ==4261 [2025-01-08 17:28:51] Production.ERROR: pbx CDR StartTime 2025-01-08 14:28:13 - End Time 2025-01-08 17:28:13 [2025-01-08 17:28:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:28:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203765', 'tblTempUsageDetail_20' ) start [2025-01-08 17:28:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203765', 'tblTempUsageDetail_20' ) end [2025-01-08 17:28:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203765', 'tblTempVendorCDR_20' ) start [2025-01-08 17:28:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203765', 'tblTempVendorCDR_20' ) end [2025-01-08 17:28:55] Production.INFO: ProcessCDR(1,14203765,1,1,2) [2025-01-08 17:28:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:29:08] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:29:08] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203765', 'tblTempUsageDetail_20' ) start [2025-01-08 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203765', 'tblTempUsageDetail_20' ) end [2025-01-08 17:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:29:28] Production.INFO: ==30515== Releasing lock... [2025-01-08 17:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:29:28] Production.INFO: 60 MB #Memory Used# [2025-01-08 17:30:16] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:30:16 [end_date_ymd] => 2025-01-08 17:30:16 [RateCDR] => 1 ) [2025-01-08 17:30:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:30:16' and `end` < '2025-01-08 17:30:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:30:30] Production.INFO: count ==4262 [2025-01-08 17:30:59] Production.ERROR: pbx CDR StartTime 2025-01-08 14:30:16 - End Time 2025-01-08 17:30:16 [2025-01-08 17:30:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:30:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203774', 'tblTempUsageDetail_20' ) start [2025-01-08 17:31:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203774', 'tblTempUsageDetail_20' ) end [2025-01-08 17:31:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203774', 'tblTempVendorCDR_20' ) start [2025-01-08 17:31:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203774', 'tblTempVendorCDR_20' ) end [2025-01-08 17:31:02] Production.INFO: ProcessCDR(1,14203774,1,1,2) [2025-01-08 17:31:02] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:31:14] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:31:14] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203774', 'tblTempUsageDetail_20' ) start [2025-01-08 17:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203774', 'tblTempUsageDetail_20' ) end [2025-01-08 17:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:31:29] Production.INFO: ==30653== Releasing lock... [2025-01-08 17:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:31:29] Production.INFO: 60 MB #Memory Used# [2025-01-08 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:32:05 [end_date_ymd] => 2025-01-08 17:32:05 [RateCDR] => 1 ) [2025-01-08 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:32:05' and `end` < '2025-01-08 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:32:18] Production.INFO: count ==4251 [2025-01-08 17:32:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:32:05 - End Time 2025-01-08 17:32:05 [2025-01-08 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203782', 'tblTempUsageDetail_20' ) start [2025-01-08 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203782', 'tblTempUsageDetail_20' ) end [2025-01-08 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203782', 'tblTempVendorCDR_20' ) start [2025-01-08 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203782', 'tblTempVendorCDR_20' ) end [2025-01-08 17:32:20] Production.INFO: ProcessCDR(1,14203782,1,1,2) [2025-01-08 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203782', 'tblTempUsageDetail_20' ) start [2025-01-08 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203782', 'tblTempUsageDetail_20' ) end [2025-01-08 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:32:25] Production.INFO: ==30838== Releasing lock... [2025-01-08 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:32:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:33:05 [end_date_ymd] => 2025-01-08 17:33:05 [RateCDR] => 1 ) [2025-01-08 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:33:05' and `end` < '2025-01-08 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:33:20] Production.INFO: count ==4246 [2025-01-08 17:33:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:33:05 - End Time 2025-01-08 17:33:05 [2025-01-08 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203787', 'tblTempUsageDetail_20' ) start [2025-01-08 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203787', 'tblTempUsageDetail_20' ) end [2025-01-08 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203787', 'tblTempVendorCDR_20' ) start [2025-01-08 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203787', 'tblTempVendorCDR_20' ) end [2025-01-08 17:33:22] Production.INFO: ProcessCDR(1,14203787,1,1,2) [2025-01-08 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203787', 'tblTempUsageDetail_20' ) start [2025-01-08 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203787', 'tblTempUsageDetail_20' ) end [2025-01-08 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:33:27] Production.INFO: ==30911== Releasing lock... [2025-01-08 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:33:27] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:34:05 [end_date_ymd] => 2025-01-08 17:34:05 [RateCDR] => 1 ) [2025-01-08 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:34:05' and `end` < '2025-01-08 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:34:19] Production.INFO: count ==4227 [2025-01-08 17:34:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:34:05 - End Time 2025-01-08 17:34:05 [2025-01-08 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203792', 'tblTempUsageDetail_20' ) start [2025-01-08 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203792', 'tblTempUsageDetail_20' ) end [2025-01-08 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203792', 'tblTempVendorCDR_20' ) start [2025-01-08 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203792', 'tblTempVendorCDR_20' ) end [2025-01-08 17:34:20] Production.INFO: ProcessCDR(1,14203792,1,1,2) [2025-01-08 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203792', 'tblTempUsageDetail_20' ) start [2025-01-08 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203792', 'tblTempUsageDetail_20' ) end [2025-01-08 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:34:25] Production.INFO: ==30984== Releasing lock... [2025-01-08 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:34:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:35:05 [end_date_ymd] => 2025-01-08 17:35:05 [RateCDR] => 1 ) [2025-01-08 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:35:05' and `end` < '2025-01-08 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:35:20] Production.INFO: count ==4233 [2025-01-08 17:35:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:35:05 - End Time 2025-01-08 17:35:05 [2025-01-08 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203797', 'tblTempUsageDetail_20' ) start [2025-01-08 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203797', 'tblTempUsageDetail_20' ) end [2025-01-08 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203797', 'tblTempVendorCDR_20' ) start [2025-01-08 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203797', 'tblTempVendorCDR_20' ) end [2025-01-08 17:35:22] Production.INFO: ProcessCDR(1,14203797,1,1,2) [2025-01-08 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203797', 'tblTempUsageDetail_20' ) start [2025-01-08 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203797', 'tblTempUsageDetail_20' ) end [2025-01-08 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:35:27] Production.INFO: ==31057== Releasing lock... [2025-01-08 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:35:27] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:36:05 [end_date_ymd] => 2025-01-08 17:36:05 [RateCDR] => 1 ) [2025-01-08 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:36:05' and `end` < '2025-01-08 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:36:20] Production.INFO: count ==4210 [2025-01-08 17:36:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:36:05 - End Time 2025-01-08 17:36:05 [2025-01-08 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203802', 'tblTempUsageDetail_20' ) start [2025-01-08 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203802', 'tblTempUsageDetail_20' ) end [2025-01-08 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203802', 'tblTempVendorCDR_20' ) start [2025-01-08 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203802', 'tblTempVendorCDR_20' ) end [2025-01-08 17:36:22] Production.INFO: ProcessCDR(1,14203802,1,1,2) [2025-01-08 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203802', 'tblTempUsageDetail_20' ) start [2025-01-08 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203802', 'tblTempUsageDetail_20' ) end [2025-01-08 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:36:26] Production.INFO: ==31129== Releasing lock... [2025-01-08 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:36:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:37:04 [end_date_ymd] => 2025-01-08 17:37:04 [RateCDR] => 1 ) [2025-01-08 17:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:37:04' and `end` < '2025-01-08 17:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:37:25] Production.INFO: count ==4219 [2025-01-08 17:37:27] Production.ERROR: pbx CDR StartTime 2025-01-08 14:37:04 - End Time 2025-01-08 17:37:04 [2025-01-08 17:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203807', 'tblTempUsageDetail_20' ) start [2025-01-08 17:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203807', 'tblTempUsageDetail_20' ) end [2025-01-08 17:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203807', 'tblTempVendorCDR_20' ) start [2025-01-08 17:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203807', 'tblTempVendorCDR_20' ) end [2025-01-08 17:37:27] Production.INFO: ProcessCDR(1,14203807,1,1,2) [2025-01-08 17:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203807', 'tblTempUsageDetail_20' ) start [2025-01-08 17:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203807', 'tblTempUsageDetail_20' ) end [2025-01-08 17:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:37:32] Production.INFO: ==31201== Releasing lock... [2025-01-08 17:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:37:32] Production.INFO: 59.75 MB #Memory Used# [2025-01-08 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:38:05 [end_date_ymd] => 2025-01-08 17:38:05 [RateCDR] => 1 ) [2025-01-08 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:38:05' and `end` < '2025-01-08 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:38:22] Production.INFO: count ==4185 [2025-01-08 17:38:24] Production.ERROR: pbx CDR StartTime 2025-01-08 14:38:05 - End Time 2025-01-08 17:38:05 [2025-01-08 17:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203812', 'tblTempUsageDetail_20' ) start [2025-01-08 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203812', 'tblTempUsageDetail_20' ) end [2025-01-08 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203812', 'tblTempVendorCDR_20' ) start [2025-01-08 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203812', 'tblTempVendorCDR_20' ) end [2025-01-08 17:38:24] Production.INFO: ProcessCDR(1,14203812,1,1,2) [2025-01-08 17:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203812', 'tblTempUsageDetail_20' ) start [2025-01-08 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203812', 'tblTempUsageDetail_20' ) end [2025-01-08 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:38:27] Production.INFO: ==31276== Releasing lock... [2025-01-08 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:38:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-08 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:39:04 [end_date_ymd] => 2025-01-08 17:39:04 [RateCDR] => 1 ) [2025-01-08 17:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:39:04' and `end` < '2025-01-08 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:39:25] Production.INFO: count ==4171 [2025-01-08 17:39:26] Production.ERROR: pbx CDR StartTime 2025-01-08 14:39:04 - End Time 2025-01-08 17:39:04 [2025-01-08 17:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203817', 'tblTempUsageDetail_20' ) start [2025-01-08 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203817', 'tblTempUsageDetail_20' ) end [2025-01-08 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203817', 'tblTempVendorCDR_20' ) start [2025-01-08 17:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203817', 'tblTempVendorCDR_20' ) end [2025-01-08 17:39:26] Production.INFO: ProcessCDR(1,14203817,1,1,2) [2025-01-08 17:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203817', 'tblTempUsageDetail_20' ) start [2025-01-08 17:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203817', 'tblTempUsageDetail_20' ) end [2025-01-08 17:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:39:31] Production.INFO: ==31345== Releasing lock... [2025-01-08 17:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:39:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-08 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:40:05 [end_date_ymd] => 2025-01-08 17:40:05 [RateCDR] => 1 ) [2025-01-08 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:40:05' and `end` < '2025-01-08 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:40:22] Production.INFO: count ==4167 [2025-01-08 17:40:24] Production.ERROR: pbx CDR StartTime 2025-01-08 14:40:05 - End Time 2025-01-08 17:40:05 [2025-01-08 17:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203823', 'tblTempUsageDetail_20' ) start [2025-01-08 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203823', 'tblTempUsageDetail_20' ) end [2025-01-08 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203823', 'tblTempVendorCDR_20' ) start [2025-01-08 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203823', 'tblTempVendorCDR_20' ) end [2025-01-08 17:40:24] Production.INFO: ProcessCDR(1,14203823,1,1,2) [2025-01-08 17:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203823', 'tblTempUsageDetail_20' ) start [2025-01-08 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203823', 'tblTempUsageDetail_20' ) end [2025-01-08 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:40:27] Production.INFO: ==31420== Releasing lock... [2025-01-08 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:40:27] Production.INFO: 59.25 MB #Memory Used# [2025-01-08 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:41:05 [end_date_ymd] => 2025-01-08 17:41:05 [RateCDR] => 1 ) [2025-01-08 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:41:05' and `end` < '2025-01-08 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:41:18] Production.INFO: count ==4097 [2025-01-08 17:41:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:41:05 - End Time 2025-01-08 17:41:05 [2025-01-08 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203828', 'tblTempUsageDetail_20' ) start [2025-01-08 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203828', 'tblTempUsageDetail_20' ) end [2025-01-08 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203828', 'tblTempVendorCDR_20' ) start [2025-01-08 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203828', 'tblTempVendorCDR_20' ) end [2025-01-08 17:41:20] Production.INFO: ProcessCDR(1,14203828,1,1,2) [2025-01-08 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203828', 'tblTempUsageDetail_20' ) start [2025-01-08 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203828', 'tblTempUsageDetail_20' ) end [2025-01-08 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:41:25] Production.INFO: ==31495== Releasing lock... [2025-01-08 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:41:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-08 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:42:04 [end_date_ymd] => 2025-01-08 17:42:04 [RateCDR] => 1 ) [2025-01-08 17:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:42:04' and `end` < '2025-01-08 17:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:42:35] Production.INFO: count ==4079 [2025-01-08 17:42:36] Production.ERROR: pbx CDR StartTime 2025-01-08 14:42:04 - End Time 2025-01-08 17:42:04 [2025-01-08 17:42:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203833', 'tblTempUsageDetail_20' ) start [2025-01-08 17:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203833', 'tblTempUsageDetail_20' ) end [2025-01-08 17:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203833', 'tblTempVendorCDR_20' ) start [2025-01-08 17:42:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203833', 'tblTempVendorCDR_20' ) end [2025-01-08 17:42:37] Production.INFO: ProcessCDR(1,14203833,1,1,2) [2025-01-08 17:42:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:42:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:42:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:42:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203833', 'tblTempUsageDetail_20' ) start [2025-01-08 17:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203833', 'tblTempUsageDetail_20' ) end [2025-01-08 17:42:41] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:42:41] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:42:41] Production.INFO: ==31587== Releasing lock... [2025-01-08 17:42:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:42:41] Production.INFO: 58.5 MB #Memory Used# [2025-01-08 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:43:05 [end_date_ymd] => 2025-01-08 17:43:05 [RateCDR] => 1 ) [2025-01-08 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:43:05' and `end` < '2025-01-08 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:43:24] Production.INFO: count ==4058 [2025-01-08 17:43:25] Production.ERROR: pbx CDR StartTime 2025-01-08 14:43:05 - End Time 2025-01-08 17:43:05 [2025-01-08 17:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203838', 'tblTempUsageDetail_20' ) start [2025-01-08 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203838', 'tblTempUsageDetail_20' ) end [2025-01-08 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203838', 'tblTempVendorCDR_20' ) start [2025-01-08 17:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203838', 'tblTempVendorCDR_20' ) end [2025-01-08 17:43:26] Production.INFO: ProcessCDR(1,14203838,1,1,2) [2025-01-08 17:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203838', 'tblTempUsageDetail_20' ) start [2025-01-08 17:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203838', 'tblTempUsageDetail_20' ) end [2025-01-08 17:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:43:30] Production.INFO: ==31659== Releasing lock... [2025-01-08 17:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:43:30] Production.INFO: 58.25 MB #Memory Used# [2025-01-08 17:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:44:04 [end_date_ymd] => 2025-01-08 17:44:04 [RateCDR] => 1 ) [2025-01-08 17:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:44:04' and `end` < '2025-01-08 17:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:44:21] Production.INFO: count ==4065 [2025-01-08 17:44:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:44:04 - End Time 2025-01-08 17:44:04 [2025-01-08 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203843', 'tblTempUsageDetail_20' ) start [2025-01-08 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203843', 'tblTempUsageDetail_20' ) end [2025-01-08 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203843', 'tblTempVendorCDR_20' ) start [2025-01-08 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203843', 'tblTempVendorCDR_20' ) end [2025-01-08 17:44:22] Production.INFO: ProcessCDR(1,14203843,1,1,2) [2025-01-08 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203843', 'tblTempUsageDetail_20' ) start [2025-01-08 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203843', 'tblTempUsageDetail_20' ) end [2025-01-08 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:44:25] Production.INFO: ==31728== Releasing lock... [2025-01-08 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:44:25] Production.INFO: 58.5 MB #Memory Used# [2025-01-08 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:45:04 [end_date_ymd] => 2025-01-08 17:45:04 [RateCDR] => 1 ) [2025-01-08 17:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:45:04' and `end` < '2025-01-08 17:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:45:18] Production.INFO: count ==4057 [2025-01-08 17:45:19] Production.ERROR: pbx CDR StartTime 2025-01-08 14:45:04 - End Time 2025-01-08 17:45:04 [2025-01-08 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203848', 'tblTempUsageDetail_20' ) start [2025-01-08 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203848', 'tblTempUsageDetail_20' ) end [2025-01-08 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203848', 'tblTempVendorCDR_20' ) start [2025-01-08 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203848', 'tblTempVendorCDR_20' ) end [2025-01-08 17:45:20] Production.INFO: ProcessCDR(1,14203848,1,1,2) [2025-01-08 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203848', 'tblTempUsageDetail_20' ) start [2025-01-08 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203848', 'tblTempUsageDetail_20' ) end [2025-01-08 17:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:45:24] Production.INFO: ==31802== Releasing lock... [2025-01-08 17:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:45:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-08 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:46:05 [end_date_ymd] => 2025-01-08 17:46:05 [RateCDR] => 1 ) [2025-01-08 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:46:05' and `end` < '2025-01-08 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:46:19] Production.INFO: count ==4045 [2025-01-08 17:46:21] Production.ERROR: pbx CDR StartTime 2025-01-08 14:46:05 - End Time 2025-01-08 17:46:05 [2025-01-08 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203853', 'tblTempUsageDetail_20' ) start [2025-01-08 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203853', 'tblTempUsageDetail_20' ) end [2025-01-08 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203853', 'tblTempVendorCDR_20' ) start [2025-01-08 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203853', 'tblTempVendorCDR_20' ) end [2025-01-08 17:46:21] Production.INFO: ProcessCDR(1,14203853,1,1,2) [2025-01-08 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203853', 'tblTempUsageDetail_20' ) start [2025-01-08 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203853', 'tblTempUsageDetail_20' ) end [2025-01-08 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:46:24] Production.INFO: ==31874== Releasing lock... [2025-01-08 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:46:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-08 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:47:05 [end_date_ymd] => 2025-01-08 17:47:05 [RateCDR] => 1 ) [2025-01-08 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:47:05' and `end` < '2025-01-08 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:47:18] Production.INFO: count ==4032 [2025-01-08 17:47:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:47:05 - End Time 2025-01-08 17:47:05 [2025-01-08 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203858', 'tblTempUsageDetail_20' ) start [2025-01-08 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203858', 'tblTempUsageDetail_20' ) end [2025-01-08 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203858', 'tblTempVendorCDR_20' ) start [2025-01-08 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203858', 'tblTempVendorCDR_20' ) end [2025-01-08 17:47:20] Production.INFO: ProcessCDR(1,14203858,1,1,2) [2025-01-08 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203858', 'tblTempUsageDetail_20' ) start [2025-01-08 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203858', 'tblTempUsageDetail_20' ) end [2025-01-08 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:47:23] Production.INFO: ==31985== Releasing lock... [2025-01-08 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:47:23] Production.INFO: 58 MB #Memory Used# [2025-01-08 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:48:05 [end_date_ymd] => 2025-01-08 17:48:05 [RateCDR] => 1 ) [2025-01-08 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:48:05' and `end` < '2025-01-08 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:48:19] Production.INFO: count ==4029 [2025-01-08 17:48:21] Production.ERROR: pbx CDR StartTime 2025-01-08 14:48:05 - End Time 2025-01-08 17:48:05 [2025-01-08 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203863', 'tblTempUsageDetail_20' ) start [2025-01-08 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203863', 'tblTempUsageDetail_20' ) end [2025-01-08 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203863', 'tblTempVendorCDR_20' ) start [2025-01-08 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203863', 'tblTempVendorCDR_20' ) end [2025-01-08 17:48:21] Production.INFO: ProcessCDR(1,14203863,1,1,2) [2025-01-08 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203863', 'tblTempUsageDetail_20' ) start [2025-01-08 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203863', 'tblTempUsageDetail_20' ) end [2025-01-08 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:48:25] Production.INFO: ==32058== Releasing lock... [2025-01-08 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:48:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-08 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:49:05 [end_date_ymd] => 2025-01-08 17:49:05 [RateCDR] => 1 ) [2025-01-08 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:49:05' and `end` < '2025-01-08 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:49:18] Production.INFO: count ==4021 [2025-01-08 17:49:19] Production.ERROR: pbx CDR StartTime 2025-01-08 14:49:05 - End Time 2025-01-08 17:49:05 [2025-01-08 17:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203868', 'tblTempUsageDetail_20' ) start [2025-01-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203868', 'tblTempUsageDetail_20' ) end [2025-01-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203868', 'tblTempVendorCDR_20' ) start [2025-01-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203868', 'tblTempVendorCDR_20' ) end [2025-01-08 17:49:20] Production.INFO: ProcessCDR(1,14203868,1,1,2) [2025-01-08 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203868', 'tblTempUsageDetail_20' ) start [2025-01-08 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203868', 'tblTempUsageDetail_20' ) end [2025-01-08 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:49:23] Production.INFO: ==32132== Releasing lock... [2025-01-08 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:49:23] Production.INFO: 58 MB #Memory Used# [2025-01-08 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:50:05 [end_date_ymd] => 2025-01-08 17:50:05 [RateCDR] => 1 ) [2025-01-08 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:50:05' and `end` < '2025-01-08 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:50:19] Production.INFO: count ==3994 [2025-01-08 17:50:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:50:05 - End Time 2025-01-08 17:50:05 [2025-01-08 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203874', 'tblTempUsageDetail_20' ) start [2025-01-08 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203874', 'tblTempUsageDetail_20' ) end [2025-01-08 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203874', 'tblTempVendorCDR_20' ) start [2025-01-08 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203874', 'tblTempVendorCDR_20' ) end [2025-01-08 17:50:20] Production.INFO: ProcessCDR(1,14203874,1,1,2) [2025-01-08 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203874', 'tblTempUsageDetail_20' ) start [2025-01-08 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203874', 'tblTempUsageDetail_20' ) end [2025-01-08 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:50:25] Production.INFO: ==32205== Releasing lock... [2025-01-08 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:50:25] Production.INFO: 58 MB #Memory Used# [2025-01-08 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:51:05 [end_date_ymd] => 2025-01-08 17:51:05 [RateCDR] => 1 ) [2025-01-08 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:51:05' and `end` < '2025-01-08 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:51:19] Production.INFO: count ==3990 [2025-01-08 17:51:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:51:05 - End Time 2025-01-08 17:51:05 [2025-01-08 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203879', 'tblTempUsageDetail_20' ) start [2025-01-08 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203879', 'tblTempUsageDetail_20' ) end [2025-01-08 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203879', 'tblTempVendorCDR_20' ) start [2025-01-08 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203879', 'tblTempVendorCDR_20' ) end [2025-01-08 17:51:20] Production.INFO: ProcessCDR(1,14203879,1,1,2) [2025-01-08 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203879', 'tblTempUsageDetail_20' ) start [2025-01-08 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203879', 'tblTempUsageDetail_20' ) end [2025-01-08 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:51:26] Production.INFO: ==32280== Releasing lock... [2025-01-08 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:51:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-08 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:52:05 [end_date_ymd] => 2025-01-08 17:52:05 [RateCDR] => 1 ) [2025-01-08 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:52:05' and `end` < '2025-01-08 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:52:20] Production.INFO: count ==3984 [2025-01-08 17:52:21] Production.ERROR: pbx CDR StartTime 2025-01-08 14:52:05 - End Time 2025-01-08 17:52:05 [2025-01-08 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203884', 'tblTempUsageDetail_20' ) start [2025-01-08 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203884', 'tblTempUsageDetail_20' ) end [2025-01-08 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203884', 'tblTempVendorCDR_20' ) start [2025-01-08 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203884', 'tblTempVendorCDR_20' ) end [2025-01-08 17:52:21] Production.INFO: ProcessCDR(1,14203884,1,1,2) [2025-01-08 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203884', 'tblTempUsageDetail_20' ) start [2025-01-08 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203884', 'tblTempUsageDetail_20' ) end [2025-01-08 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:52:24] Production.INFO: ==32350== Releasing lock... [2025-01-08 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:52:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-08 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:53:05 [end_date_ymd] => 2025-01-08 17:53:05 [RateCDR] => 1 ) [2025-01-08 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:53:05' and `end` < '2025-01-08 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:53:19] Production.INFO: count ==3969 [2025-01-08 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:53:05 - End Time 2025-01-08 17:53:05 [2025-01-08 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203889', 'tblTempUsageDetail_20' ) start [2025-01-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203889', 'tblTempUsageDetail_20' ) end [2025-01-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203889', 'tblTempVendorCDR_20' ) start [2025-01-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203889', 'tblTempVendorCDR_20' ) end [2025-01-08 17:53:20] Production.INFO: ProcessCDR(1,14203889,1,1,2) [2025-01-08 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203889', 'tblTempUsageDetail_20' ) start [2025-01-08 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203889', 'tblTempUsageDetail_20' ) end [2025-01-08 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:53:25] Production.INFO: ==32421== Releasing lock... [2025-01-08 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:53:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-08 17:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:54:04 [end_date_ymd] => 2025-01-08 17:54:04 [RateCDR] => 1 ) [2025-01-08 17:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:54:04' and `end` < '2025-01-08 17:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:54:26] Production.INFO: count ==3953 [2025-01-08 17:54:27] Production.ERROR: pbx CDR StartTime 2025-01-08 14:54:04 - End Time 2025-01-08 17:54:04 [2025-01-08 17:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203894', 'tblTempUsageDetail_20' ) start [2025-01-08 17:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203894', 'tblTempUsageDetail_20' ) end [2025-01-08 17:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203894', 'tblTempVendorCDR_20' ) start [2025-01-08 17:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203894', 'tblTempVendorCDR_20' ) end [2025-01-08 17:54:28] Production.INFO: ProcessCDR(1,14203894,1,1,2) [2025-01-08 17:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203894', 'tblTempUsageDetail_20' ) start [2025-01-08 17:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203894', 'tblTempUsageDetail_20' ) end [2025-01-08 17:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:54:32] Production.INFO: ==32492== Releasing lock... [2025-01-08 17:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:54:32] Production.INFO: 57.75 MB #Memory Used# [2025-01-08 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:55:05 [end_date_ymd] => 2025-01-08 17:55:05 [RateCDR] => 1 ) [2025-01-08 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:55:05' and `end` < '2025-01-08 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:55:19] Production.INFO: count ==3953 [2025-01-08 17:55:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:55:05 - End Time 2025-01-08 17:55:05 [2025-01-08 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203899', 'tblTempUsageDetail_20' ) start [2025-01-08 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203899', 'tblTempUsageDetail_20' ) end [2025-01-08 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203899', 'tblTempVendorCDR_20' ) start [2025-01-08 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203899', 'tblTempVendorCDR_20' ) end [2025-01-08 17:55:20] Production.INFO: ProcessCDR(1,14203899,1,1,2) [2025-01-08 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203899', 'tblTempUsageDetail_20' ) start [2025-01-08 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203899', 'tblTempUsageDetail_20' ) end [2025-01-08 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:55:25] Production.INFO: ==32566== Releasing lock... [2025-01-08 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:55:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-08 17:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:56:04 [end_date_ymd] => 2025-01-08 17:56:04 [RateCDR] => 1 ) [2025-01-08 17:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:56:04' and `end` < '2025-01-08 17:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:56:18] Production.INFO: count ==3936 [2025-01-08 17:56:20] Production.ERROR: pbx CDR StartTime 2025-01-08 14:56:04 - End Time 2025-01-08 17:56:04 [2025-01-08 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203904', 'tblTempUsageDetail_20' ) start [2025-01-08 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203904', 'tblTempUsageDetail_20' ) end [2025-01-08 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203904', 'tblTempVendorCDR_20' ) start [2025-01-08 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203904', 'tblTempVendorCDR_20' ) end [2025-01-08 17:56:20] Production.INFO: ProcessCDR(1,14203904,1,1,2) [2025-01-08 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203904', 'tblTempUsageDetail_20' ) start [2025-01-08 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203904', 'tblTempUsageDetail_20' ) end [2025-01-08 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:56:23] Production.INFO: ==32638== Releasing lock... [2025-01-08 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:56:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-08 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:57:05 [end_date_ymd] => 2025-01-08 17:57:05 [RateCDR] => 1 ) [2025-01-08 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:57:05' and `end` < '2025-01-08 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:57:20] Production.INFO: count ==3916 [2025-01-08 17:57:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:57:05 - End Time 2025-01-08 17:57:05 [2025-01-08 17:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203909', 'tblTempUsageDetail_20' ) start [2025-01-08 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203909', 'tblTempUsageDetail_20' ) end [2025-01-08 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203909', 'tblTempVendorCDR_20' ) start [2025-01-08 17:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203909', 'tblTempVendorCDR_20' ) end [2025-01-08 17:57:22] Production.INFO: ProcessCDR(1,14203909,1,1,2) [2025-01-08 17:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203909', 'tblTempUsageDetail_20' ) start [2025-01-08 17:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203909', 'tblTempUsageDetail_20' ) end [2025-01-08 17:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:57:27] Production.INFO: ==32708== Releasing lock... [2025-01-08 17:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:57:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-08 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:58:05 [end_date_ymd] => 2025-01-08 17:58:05 [RateCDR] => 1 ) [2025-01-08 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:58:05' and `end` < '2025-01-08 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:58:27] Production.INFO: count ==3908 [2025-01-08 17:58:28] Production.ERROR: pbx CDR StartTime 2025-01-08 14:58:05 - End Time 2025-01-08 17:58:05 [2025-01-08 17:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203914', 'tblTempUsageDetail_20' ) start [2025-01-08 17:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203914', 'tblTempUsageDetail_20' ) end [2025-01-08 17:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203914', 'tblTempVendorCDR_20' ) start [2025-01-08 17:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203914', 'tblTempVendorCDR_20' ) end [2025-01-08 17:58:28] Production.INFO: ProcessCDR(1,14203914,1,1,2) [2025-01-08 17:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203914', 'tblTempUsageDetail_20' ) start [2025-01-08 17:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203914', 'tblTempUsageDetail_20' ) end [2025-01-08 17:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:58:33] Production.INFO: ==319== Releasing lock... [2025-01-08 17:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:58:33] Production.INFO: 57.25 MB #Memory Used# [2025-01-08 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 14:59:04 [end_date_ymd] => 2025-01-08 17:59:04 [RateCDR] => 1 ) [2025-01-08 17:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 14:59:04' and `end` < '2025-01-08 17:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 17:59:21] Production.INFO: count ==3899 [2025-01-08 17:59:22] Production.ERROR: pbx CDR StartTime 2025-01-08 14:59:04 - End Time 2025-01-08 17:59:04 [2025-01-08 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203919', 'tblTempUsageDetail_20' ) start [2025-01-08 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203919', 'tblTempUsageDetail_20' ) end [2025-01-08 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203919', 'tblTempVendorCDR_20' ) start [2025-01-08 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203919', 'tblTempVendorCDR_20' ) end [2025-01-08 17:59:22] Production.INFO: ProcessCDR(1,14203919,1,1,2) [2025-01-08 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203919', 'tblTempUsageDetail_20' ) start [2025-01-08 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203919', 'tblTempUsageDetail_20' ) end [2025-01-08 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 17:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 17:59:27] Production.INFO: ==400== Releasing lock... [2025-01-08 17:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 17:59:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-08 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:00:05 [end_date_ymd] => 2025-01-08 18:00:05 [RateCDR] => 1 ) [2025-01-08 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:00:05' and `end` < '2025-01-08 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:00:19] Production.INFO: count ==3887 [2025-01-08 18:00:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:00:05 - End Time 2025-01-08 18:00:05 [2025-01-08 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203925', 'tblTempUsageDetail_20' ) start [2025-01-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203925', 'tblTempUsageDetail_20' ) end [2025-01-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203925', 'tblTempVendorCDR_20' ) start [2025-01-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203925', 'tblTempVendorCDR_20' ) end [2025-01-08 18:00:20] Production.INFO: ProcessCDR(1,14203925,1,1,2) [2025-01-08 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203925', 'tblTempUsageDetail_20' ) start [2025-01-08 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203925', 'tblTempUsageDetail_20' ) end [2025-01-08 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:00:25] Production.INFO: ==480== Releasing lock... [2025-01-08 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:00:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-08 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:01:04 [end_date_ymd] => 2025-01-08 18:01:04 [RateCDR] => 1 ) [2025-01-08 18:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:01:04' and `end` < '2025-01-08 18:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:01:18] Production.INFO: count ==3831 [2025-01-08 18:01:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:01:04 - End Time 2025-01-08 18:01:04 [2025-01-08 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203930', 'tblTempUsageDetail_20' ) start [2025-01-08 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203930', 'tblTempUsageDetail_20' ) end [2025-01-08 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203930', 'tblTempVendorCDR_20' ) start [2025-01-08 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203930', 'tblTempVendorCDR_20' ) end [2025-01-08 18:01:19] Production.INFO: ProcessCDR(1,14203930,1,1,2) [2025-01-08 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203930', 'tblTempUsageDetail_20' ) start [2025-01-08 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203930', 'tblTempUsageDetail_20' ) end [2025-01-08 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:01:24] Production.INFO: ==571== Releasing lock... [2025-01-08 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:01:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:02:05 [end_date_ymd] => 2025-01-08 18:02:05 [RateCDR] => 1 ) [2025-01-08 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:02:05' and `end` < '2025-01-08 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:02:19] Production.INFO: count ==3815 [2025-01-08 18:02:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:02:05 - End Time 2025-01-08 18:02:05 [2025-01-08 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203935', 'tblTempUsageDetail_20' ) start [2025-01-08 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203935', 'tblTempUsageDetail_20' ) end [2025-01-08 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203935', 'tblTempVendorCDR_20' ) start [2025-01-08 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203935', 'tblTempVendorCDR_20' ) end [2025-01-08 18:02:20] Production.INFO: ProcessCDR(1,14203935,1,1,2) [2025-01-08 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203935', 'tblTempUsageDetail_20' ) start [2025-01-08 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203935', 'tblTempUsageDetail_20' ) end [2025-01-08 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:02:23] Production.INFO: ==654== Releasing lock... [2025-01-08 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:02:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:03:05 [end_date_ymd] => 2025-01-08 18:03:05 [RateCDR] => 1 ) [2025-01-08 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:03:05' and `end` < '2025-01-08 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:03:20] Production.INFO: count ==3823 [2025-01-08 18:03:22] Production.ERROR: pbx CDR StartTime 2025-01-08 15:03:05 - End Time 2025-01-08 18:03:05 [2025-01-08 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203940', 'tblTempUsageDetail_20' ) start [2025-01-08 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203940', 'tblTempUsageDetail_20' ) end [2025-01-08 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203940', 'tblTempVendorCDR_20' ) start [2025-01-08 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203940', 'tblTempVendorCDR_20' ) end [2025-01-08 18:03:22] Production.INFO: ProcessCDR(1,14203940,1,1,2) [2025-01-08 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203940', 'tblTempUsageDetail_20' ) start [2025-01-08 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203940', 'tblTempUsageDetail_20' ) end [2025-01-08 18:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:03:27] Production.INFO: ==794== Releasing lock... [2025-01-08 18:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:03:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-08 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:04:04 [end_date_ymd] => 2025-01-08 18:04:04 [RateCDR] => 1 ) [2025-01-08 18:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:04:04' and `end` < '2025-01-08 18:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:04:18] Production.INFO: count ==3815 [2025-01-08 18:04:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:04:04 - End Time 2025-01-08 18:04:04 [2025-01-08 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203945', 'tblTempUsageDetail_20' ) start [2025-01-08 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203945', 'tblTempUsageDetail_20' ) end [2025-01-08 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203945', 'tblTempVendorCDR_20' ) start [2025-01-08 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203945', 'tblTempVendorCDR_20' ) end [2025-01-08 18:04:19] Production.INFO: ProcessCDR(1,14203945,1,1,2) [2025-01-08 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203945', 'tblTempUsageDetail_20' ) start [2025-01-08 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203945', 'tblTempUsageDetail_20' ) end [2025-01-08 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:04:24] Production.INFO: ==867== Releasing lock... [2025-01-08 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:04:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:05:05 [end_date_ymd] => 2025-01-08 18:05:05 [RateCDR] => 1 ) [2025-01-08 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:05:05' and `end` < '2025-01-08 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:05:20] Production.INFO: count ==3821 [2025-01-08 18:05:22] Production.ERROR: pbx CDR StartTime 2025-01-08 15:05:05 - End Time 2025-01-08 18:05:05 [2025-01-08 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203950', 'tblTempUsageDetail_20' ) start [2025-01-08 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203950', 'tblTempUsageDetail_20' ) end [2025-01-08 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203950', 'tblTempVendorCDR_20' ) start [2025-01-08 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203950', 'tblTempVendorCDR_20' ) end [2025-01-08 18:05:22] Production.INFO: ProcessCDR(1,14203950,1,1,2) [2025-01-08 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203950', 'tblTempUsageDetail_20' ) start [2025-01-08 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203950', 'tblTempUsageDetail_20' ) end [2025-01-08 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:05:26] Production.INFO: ==939== Releasing lock... [2025-01-08 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:05:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:06:05 [end_date_ymd] => 2025-01-08 18:06:05 [RateCDR] => 1 ) [2025-01-08 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:06:05' and `end` < '2025-01-08 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:06:18] Production.INFO: count ==3814 [2025-01-08 18:06:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:06:05 - End Time 2025-01-08 18:06:05 [2025-01-08 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203955', 'tblTempUsageDetail_20' ) start [2025-01-08 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203955', 'tblTempUsageDetail_20' ) end [2025-01-08 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203955', 'tblTempVendorCDR_20' ) start [2025-01-08 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203955', 'tblTempVendorCDR_20' ) end [2025-01-08 18:06:20] Production.INFO: ProcessCDR(1,14203955,1,1,2) [2025-01-08 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203955', 'tblTempUsageDetail_20' ) start [2025-01-08 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203955', 'tblTempUsageDetail_20' ) end [2025-01-08 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:06:23] Production.INFO: ==1014== Releasing lock... [2025-01-08 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:06:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:07:05 [end_date_ymd] => 2025-01-08 18:07:05 [RateCDR] => 1 ) [2025-01-08 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:07:05' and `end` < '2025-01-08 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:07:20] Production.INFO: count ==3815 [2025-01-08 18:07:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:07:05 - End Time 2025-01-08 18:07:05 [2025-01-08 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203960', 'tblTempUsageDetail_20' ) start [2025-01-08 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203960', 'tblTempUsageDetail_20' ) end [2025-01-08 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203960', 'tblTempVendorCDR_20' ) start [2025-01-08 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203960', 'tblTempVendorCDR_20' ) end [2025-01-08 18:07:21] Production.INFO: ProcessCDR(1,14203960,1,1,2) [2025-01-08 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203960', 'tblTempUsageDetail_20' ) start [2025-01-08 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203960', 'tblTempUsageDetail_20' ) end [2025-01-08 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:07:25] Production.INFO: ==1093== Releasing lock... [2025-01-08 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:07:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-08 18:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:08:04 [end_date_ymd] => 2025-01-08 18:08:04 [RateCDR] => 1 ) [2025-01-08 18:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:08:04' and `end` < '2025-01-08 18:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:08:20] Production.INFO: count ==3803 [2025-01-08 18:08:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:08:04 - End Time 2025-01-08 18:08:04 [2025-01-08 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203962', 'tblTempUsageDetail_20' ) start [2025-01-08 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203962', 'tblTempUsageDetail_20' ) end [2025-01-08 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203962', 'tblTempVendorCDR_20' ) start [2025-01-08 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203962', 'tblTempVendorCDR_20' ) end [2025-01-08 18:08:21] Production.INFO: ProcessCDR(1,14203962,1,1,2) [2025-01-08 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203962', 'tblTempUsageDetail_20' ) start [2025-01-08 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203962', 'tblTempUsageDetail_20' ) end [2025-01-08 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:08:26] Production.INFO: ==1182== Releasing lock... [2025-01-08 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:08:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:09:05 [end_date_ymd] => 2025-01-08 18:09:05 [RateCDR] => 1 ) [2025-01-08 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:09:05' and `end` < '2025-01-08 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:09:19] Production.INFO: count ==3785 [2025-01-08 18:09:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:09:05 - End Time 2025-01-08 18:09:05 [2025-01-08 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203970', 'tblTempUsageDetail_20' ) start [2025-01-08 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203970', 'tblTempUsageDetail_20' ) end [2025-01-08 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203970', 'tblTempVendorCDR_20' ) start [2025-01-08 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203970', 'tblTempVendorCDR_20' ) end [2025-01-08 18:09:20] Production.INFO: ProcessCDR(1,14203970,1,1,2) [2025-01-08 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203970', 'tblTempUsageDetail_20' ) start [2025-01-08 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203970', 'tblTempUsageDetail_20' ) end [2025-01-08 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:09:23] Production.INFO: ==1276== Releasing lock... [2025-01-08 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:09:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:10:05 [end_date_ymd] => 2025-01-08 18:10:05 [RateCDR] => 1 ) [2025-01-08 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:10:05' and `end` < '2025-01-08 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:10:19] Production.INFO: count ==3778 [2025-01-08 18:10:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:10:05 - End Time 2025-01-08 18:10:05 [2025-01-08 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203975', 'tblTempUsageDetail_20' ) start [2025-01-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203975', 'tblTempUsageDetail_20' ) end [2025-01-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203975', 'tblTempVendorCDR_20' ) start [2025-01-08 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203975', 'tblTempVendorCDR_20' ) end [2025-01-08 18:10:21] Production.INFO: ProcessCDR(1,14203975,1,1,2) [2025-01-08 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203975', 'tblTempUsageDetail_20' ) start [2025-01-08 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203975', 'tblTempUsageDetail_20' ) end [2025-01-08 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:10:24] Production.INFO: ==1356== Releasing lock... [2025-01-08 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:10:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:11:05 [end_date_ymd] => 2025-01-08 18:11:05 [RateCDR] => 1 ) [2025-01-08 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:11:05' and `end` < '2025-01-08 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:11:18] Production.INFO: count ==3772 [2025-01-08 18:11:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:11:05 - End Time 2025-01-08 18:11:05 [2025-01-08 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203981', 'tblTempUsageDetail_20' ) start [2025-01-08 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203981', 'tblTempUsageDetail_20' ) end [2025-01-08 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203981', 'tblTempVendorCDR_20' ) start [2025-01-08 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203981', 'tblTempVendorCDR_20' ) end [2025-01-08 18:11:19] Production.INFO: ProcessCDR(1,14203981,1,1,2) [2025-01-08 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203981', 'tblTempUsageDetail_20' ) start [2025-01-08 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203981', 'tblTempUsageDetail_20' ) end [2025-01-08 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:11:24] Production.INFO: ==1439== Releasing lock... [2025-01-08 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:11:24] Production.INFO: 56.75 MB #Memory Used# [2025-01-08 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:12:05 [end_date_ymd] => 2025-01-08 18:12:05 [RateCDR] => 1 ) [2025-01-08 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:12:05' and `end` < '2025-01-08 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:12:18] Production.INFO: count ==3763 [2025-01-08 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:12:05 - End Time 2025-01-08 18:12:05 [2025-01-08 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203986', 'tblTempUsageDetail_20' ) start [2025-01-08 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203986', 'tblTempUsageDetail_20' ) end [2025-01-08 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203986', 'tblTempVendorCDR_20' ) start [2025-01-08 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203986', 'tblTempVendorCDR_20' ) end [2025-01-08 18:12:20] Production.INFO: ProcessCDR(1,14203986,1,1,2) [2025-01-08 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203986', 'tblTempUsageDetail_20' ) start [2025-01-08 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203986', 'tblTempUsageDetail_20' ) end [2025-01-08 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:12:24] Production.INFO: ==1550== Releasing lock... [2025-01-08 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:12:24] Production.INFO: 56 MB #Memory Used# [2025-01-08 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:13:05 [end_date_ymd] => 2025-01-08 18:13:05 [RateCDR] => 1 ) [2025-01-08 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:13:05' and `end` < '2025-01-08 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:13:19] Production.INFO: count ==3759 [2025-01-08 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:13:05 - End Time 2025-01-08 18:13:05 [2025-01-08 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203991', 'tblTempUsageDetail_20' ) start [2025-01-08 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203991', 'tblTempUsageDetail_20' ) end [2025-01-08 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203991', 'tblTempVendorCDR_20' ) start [2025-01-08 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203991', 'tblTempVendorCDR_20' ) end [2025-01-08 18:13:20] Production.INFO: ProcessCDR(1,14203991,1,1,2) [2025-01-08 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203991', 'tblTempUsageDetail_20' ) start [2025-01-08 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203991', 'tblTempUsageDetail_20' ) end [2025-01-08 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:13:25] Production.INFO: ==1635== Releasing lock... [2025-01-08 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:13:25] Production.INFO: 56 MB #Memory Used# [2025-01-08 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:14:05 [end_date_ymd] => 2025-01-08 18:14:05 [RateCDR] => 1 ) [2025-01-08 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:14:05' and `end` < '2025-01-08 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:14:18] Production.INFO: count ==3746 [2025-01-08 18:14:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:14:05 - End Time 2025-01-08 18:14:05 [2025-01-08 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203996', 'tblTempUsageDetail_20' ) start [2025-01-08 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14203996', 'tblTempUsageDetail_20' ) end [2025-01-08 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203996', 'tblTempVendorCDR_20' ) start [2025-01-08 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14203996', 'tblTempVendorCDR_20' ) end [2025-01-08 18:14:20] Production.INFO: ProcessCDR(1,14203996,1,1,2) [2025-01-08 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14203996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14203996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14203996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14203996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203996', 'tblTempUsageDetail_20' ) start [2025-01-08 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14203996', 'tblTempUsageDetail_20' ) end [2025-01-08 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:14:23] Production.INFO: ==1717== Releasing lock... [2025-01-08 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:14:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-08 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:15:06 [end_date_ymd] => 2025-01-08 18:15:06 [RateCDR] => 1 ) [2025-01-08 18:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:15:06' and `end` < '2025-01-08 18:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:15:19] Production.INFO: count ==3732 [2025-01-08 18:15:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:15:06 - End Time 2025-01-08 18:15:06 [2025-01-08 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204001', 'tblTempUsageDetail_20' ) start [2025-01-08 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204001', 'tblTempUsageDetail_20' ) end [2025-01-08 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204001', 'tblTempVendorCDR_20' ) start [2025-01-08 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204001', 'tblTempVendorCDR_20' ) end [2025-01-08 18:15:21] Production.INFO: ProcessCDR(1,14204001,1,1,2) [2025-01-08 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204001', 'tblTempUsageDetail_20' ) start [2025-01-08 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204001', 'tblTempUsageDetail_20' ) end [2025-01-08 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:15:26] Production.INFO: ==1802== Releasing lock... [2025-01-08 18:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:15:26] Production.INFO: 55.75 MB #Memory Used# [2025-01-08 18:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:16:04 [end_date_ymd] => 2025-01-08 18:16:04 [RateCDR] => 1 ) [2025-01-08 18:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:16:04' and `end` < '2025-01-08 18:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:16:18] Production.INFO: count ==3717 [2025-01-08 18:16:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:16:04 - End Time 2025-01-08 18:16:04 [2025-01-08 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204006', 'tblTempUsageDetail_20' ) start [2025-01-08 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204006', 'tblTempUsageDetail_20' ) end [2025-01-08 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204006', 'tblTempVendorCDR_20' ) start [2025-01-08 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204006', 'tblTempVendorCDR_20' ) end [2025-01-08 18:16:19] Production.INFO: ProcessCDR(1,14204006,1,1,2) [2025-01-08 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204006', 'tblTempUsageDetail_20' ) start [2025-01-08 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204006', 'tblTempUsageDetail_20' ) end [2025-01-08 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:16:24] Production.INFO: ==1889== Releasing lock... [2025-01-08 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:16:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-08 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:17:05 [end_date_ymd] => 2025-01-08 18:17:05 [RateCDR] => 1 ) [2025-01-08 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:17:05' and `end` < '2025-01-08 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:17:18] Production.INFO: count ==3697 [2025-01-08 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:17:05 - End Time 2025-01-08 18:17:05 [2025-01-08 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204011', 'tblTempUsageDetail_20' ) start [2025-01-08 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204011', 'tblTempUsageDetail_20' ) end [2025-01-08 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204011', 'tblTempVendorCDR_20' ) start [2025-01-08 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204011', 'tblTempVendorCDR_20' ) end [2025-01-08 18:17:20] Production.INFO: ProcessCDR(1,14204011,1,1,2) [2025-01-08 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204011', 'tblTempUsageDetail_20' ) start [2025-01-08 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204011', 'tblTempUsageDetail_20' ) end [2025-01-08 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:17:24] Production.INFO: ==1969== Releasing lock... [2025-01-08 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:17:24] Production.INFO: 56 MB #Memory Used# [2025-01-08 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:18:04 [end_date_ymd] => 2025-01-08 18:18:04 [RateCDR] => 1 ) [2025-01-08 18:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:18:04' and `end` < '2025-01-08 18:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:18:18] Production.INFO: count ==3686 [2025-01-08 18:18:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:18:04 - End Time 2025-01-08 18:18:04 [2025-01-08 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204016', 'tblTempUsageDetail_20' ) start [2025-01-08 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204016', 'tblTempUsageDetail_20' ) end [2025-01-08 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204016', 'tblTempVendorCDR_20' ) start [2025-01-08 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204016', 'tblTempVendorCDR_20' ) end [2025-01-08 18:18:20] Production.INFO: ProcessCDR(1,14204016,1,1,2) [2025-01-08 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204016', 'tblTempUsageDetail_20' ) start [2025-01-08 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204016', 'tblTempUsageDetail_20' ) end [2025-01-08 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:18:23] Production.INFO: ==2050== Releasing lock... [2025-01-08 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:18:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-08 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:19:05 [end_date_ymd] => 2025-01-08 18:19:05 [RateCDR] => 1 ) [2025-01-08 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:19:05' and `end` < '2025-01-08 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:19:18] Production.INFO: count ==3681 [2025-01-08 18:19:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:19:05 - End Time 2025-01-08 18:19:05 [2025-01-08 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204021', 'tblTempUsageDetail_20' ) start [2025-01-08 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204021', 'tblTempUsageDetail_20' ) end [2025-01-08 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204021', 'tblTempVendorCDR_20' ) start [2025-01-08 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204021', 'tblTempVendorCDR_20' ) end [2025-01-08 18:19:20] Production.INFO: ProcessCDR(1,14204021,1,1,2) [2025-01-08 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204021', 'tblTempUsageDetail_20' ) start [2025-01-08 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204021', 'tblTempUsageDetail_20' ) end [2025-01-08 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:19:25] Production.INFO: ==2170== Releasing lock... [2025-01-08 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:19:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-08 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:20:05 [end_date_ymd] => 2025-01-08 18:20:05 [RateCDR] => 1 ) [2025-01-08 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:20:05' and `end` < '2025-01-08 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:20:18] Production.INFO: count ==3677 [2025-01-08 18:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:20:05 - End Time 2025-01-08 18:20:05 [2025-01-08 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204026', 'tblTempUsageDetail_20' ) start [2025-01-08 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204026', 'tblTempUsageDetail_20' ) end [2025-01-08 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204026', 'tblTempVendorCDR_20' ) start [2025-01-08 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204026', 'tblTempVendorCDR_20' ) end [2025-01-08 18:20:19] Production.INFO: ProcessCDR(1,14204026,1,1,2) [2025-01-08 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204026', 'tblTempUsageDetail_20' ) start [2025-01-08 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204026', 'tblTempUsageDetail_20' ) end [2025-01-08 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:20:23] Production.INFO: ==2252== Releasing lock... [2025-01-08 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:20:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-08 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:21:05 [end_date_ymd] => 2025-01-08 18:21:05 [RateCDR] => 1 ) [2025-01-08 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:21:05' and `end` < '2025-01-08 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:21:18] Production.INFO: count ==3635 [2025-01-08 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:21:05 - End Time 2025-01-08 18:21:05 [2025-01-08 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204032', 'tblTempUsageDetail_20' ) start [2025-01-08 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204032', 'tblTempUsageDetail_20' ) end [2025-01-08 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204032', 'tblTempVendorCDR_20' ) start [2025-01-08 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204032', 'tblTempVendorCDR_20' ) end [2025-01-08 18:21:20] Production.INFO: ProcessCDR(1,14204032,1,1,2) [2025-01-08 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204032', 'tblTempUsageDetail_20' ) start [2025-01-08 18:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204032', 'tblTempUsageDetail_20' ) end [2025-01-08 18:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:21:23] Production.INFO: ==2337== Releasing lock... [2025-01-08 18:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:21:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-08 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:22:04 [end_date_ymd] => 2025-01-08 18:22:04 [RateCDR] => 1 ) [2025-01-08 18:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:22:04' and `end` < '2025-01-08 18:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:22:18] Production.INFO: count ==3623 [2025-01-08 18:22:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:22:04 - End Time 2025-01-08 18:22:04 [2025-01-08 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204037', 'tblTempUsageDetail_20' ) start [2025-01-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204037', 'tblTempUsageDetail_20' ) end [2025-01-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204037', 'tblTempVendorCDR_20' ) start [2025-01-08 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204037', 'tblTempVendorCDR_20' ) end [2025-01-08 18:22:19] Production.INFO: ProcessCDR(1,14204037,1,1,2) [2025-01-08 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204037', 'tblTempUsageDetail_20' ) start [2025-01-08 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204037', 'tblTempUsageDetail_20' ) end [2025-01-08 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:22:23] Production.INFO: ==2420== Releasing lock... [2025-01-08 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:22:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-08 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:23:04 [end_date_ymd] => 2025-01-08 18:23:04 [RateCDR] => 1 ) [2025-01-08 18:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:23:04' and `end` < '2025-01-08 18:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:23:18] Production.INFO: count ==3611 [2025-01-08 18:23:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:23:04 - End Time 2025-01-08 18:23:04 [2025-01-08 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204042', 'tblTempUsageDetail_20' ) start [2025-01-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204042', 'tblTempUsageDetail_20' ) end [2025-01-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204042', 'tblTempVendorCDR_20' ) start [2025-01-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204042', 'tblTempVendorCDR_20' ) end [2025-01-08 18:23:19] Production.INFO: ProcessCDR(1,14204042,1,1,2) [2025-01-08 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204042', 'tblTempUsageDetail_20' ) start [2025-01-08 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204042', 'tblTempUsageDetail_20' ) end [2025-01-08 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:23:23] Production.INFO: ==2500== Releasing lock... [2025-01-08 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:23:23] Production.INFO: 55 MB #Memory Used# [2025-01-08 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:24:05 [end_date_ymd] => 2025-01-08 18:24:05 [RateCDR] => 1 ) [2025-01-08 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:24:05' and `end` < '2025-01-08 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:24:22] Production.INFO: count ==3609 [2025-01-08 18:24:24] Production.ERROR: pbx CDR StartTime 2025-01-08 15:24:05 - End Time 2025-01-08 18:24:05 [2025-01-08 18:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204047', 'tblTempUsageDetail_20' ) start [2025-01-08 18:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204047', 'tblTempUsageDetail_20' ) end [2025-01-08 18:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204047', 'tblTempVendorCDR_20' ) start [2025-01-08 18:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204047', 'tblTempVendorCDR_20' ) end [2025-01-08 18:24:24] Production.INFO: ProcessCDR(1,14204047,1,1,2) [2025-01-08 18:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204047', 'tblTempUsageDetail_20' ) start [2025-01-08 18:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204047', 'tblTempUsageDetail_20' ) end [2025-01-08 18:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:24:28] Production.INFO: ==2581== Releasing lock... [2025-01-08 18:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:24:28] Production.INFO: 55.5 MB #Memory Used# [2025-01-08 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:25:05 [end_date_ymd] => 2025-01-08 18:25:05 [RateCDR] => 1 ) [2025-01-08 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:25:05' and `end` < '2025-01-08 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:25:23] Production.INFO: count ==3604 [2025-01-08 18:25:24] Production.ERROR: pbx CDR StartTime 2025-01-08 15:25:05 - End Time 2025-01-08 18:25:05 [2025-01-08 18:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204052', 'tblTempUsageDetail_20' ) start [2025-01-08 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204052', 'tblTempUsageDetail_20' ) end [2025-01-08 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204052', 'tblTempVendorCDR_20' ) start [2025-01-08 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204052', 'tblTempVendorCDR_20' ) end [2025-01-08 18:25:24] Production.INFO: ProcessCDR(1,14204052,1,1,2) [2025-01-08 18:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204052', 'tblTempUsageDetail_20' ) start [2025-01-08 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204052', 'tblTempUsageDetail_20' ) end [2025-01-08 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:25:29] Production.INFO: ==2656== Releasing lock... [2025-01-08 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:25:29] Production.INFO: 55.25 MB #Memory Used# [2025-01-08 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:26:05 [end_date_ymd] => 2025-01-08 18:26:05 [RateCDR] => 1 ) [2025-01-08 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:26:05' and `end` < '2025-01-08 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:26:19] Production.INFO: count ==3609 [2025-01-08 18:26:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:26:05 - End Time 2025-01-08 18:26:05 [2025-01-08 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204057', 'tblTempUsageDetail_20' ) start [2025-01-08 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204057', 'tblTempUsageDetail_20' ) end [2025-01-08 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204057', 'tblTempVendorCDR_20' ) start [2025-01-08 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204057', 'tblTempVendorCDR_20' ) end [2025-01-08 18:26:20] Production.INFO: ProcessCDR(1,14204057,1,1,2) [2025-01-08 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204057', 'tblTempUsageDetail_20' ) start [2025-01-08 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204057', 'tblTempUsageDetail_20' ) end [2025-01-08 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:26:23] Production.INFO: ==2734== Releasing lock... [2025-01-08 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:26:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-08 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:27:04 [end_date_ymd] => 2025-01-08 18:27:04 [RateCDR] => 1 ) [2025-01-08 18:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:27:04' and `end` < '2025-01-08 18:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:27:20] Production.INFO: count ==3594 [2025-01-08 18:27:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:27:04 - End Time 2025-01-08 18:27:04 [2025-01-08 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204062', 'tblTempUsageDetail_20' ) start [2025-01-08 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204062', 'tblTempUsageDetail_20' ) end [2025-01-08 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204062', 'tblTempVendorCDR_20' ) start [2025-01-08 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204062', 'tblTempVendorCDR_20' ) end [2025-01-08 18:27:21] Production.INFO: ProcessCDR(1,14204062,1,1,2) [2025-01-08 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204062', 'tblTempUsageDetail_20' ) start [2025-01-08 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204062', 'tblTempUsageDetail_20' ) end [2025-01-08 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:27:24] Production.INFO: ==2809== Releasing lock... [2025-01-08 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:27:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-08 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:28:05 [end_date_ymd] => 2025-01-08 18:28:05 [RateCDR] => 1 ) [2025-01-08 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:28:05' and `end` < '2025-01-08 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:28:21] Production.INFO: count ==3576 [2025-01-08 18:28:22] Production.ERROR: pbx CDR StartTime 2025-01-08 15:28:05 - End Time 2025-01-08 18:28:05 [2025-01-08 18:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204067', 'tblTempUsageDetail_20' ) start [2025-01-08 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204067', 'tblTempUsageDetail_20' ) end [2025-01-08 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204067', 'tblTempVendorCDR_20' ) start [2025-01-08 18:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204067', 'tblTempVendorCDR_20' ) end [2025-01-08 18:28:22] Production.INFO: ProcessCDR(1,14204067,1,1,2) [2025-01-08 18:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204067', 'tblTempUsageDetail_20' ) start [2025-01-08 18:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204067', 'tblTempUsageDetail_20' ) end [2025-01-08 18:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:28:27] Production.INFO: ==2886== Releasing lock... [2025-01-08 18:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:28:27] Production.INFO: 55 MB #Memory Used# [2025-01-08 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:29:05 [end_date_ymd] => 2025-01-08 18:29:05 [RateCDR] => 1 ) [2025-01-08 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:29:05' and `end` < '2025-01-08 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:29:20] Production.INFO: count ==3572 [2025-01-08 18:29:22] Production.ERROR: pbx CDR StartTime 2025-01-08 15:29:05 - End Time 2025-01-08 18:29:05 [2025-01-08 18:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204072', 'tblTempUsageDetail_20' ) start [2025-01-08 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204072', 'tblTempUsageDetail_20' ) end [2025-01-08 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204072', 'tblTempVendorCDR_20' ) start [2025-01-08 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204072', 'tblTempVendorCDR_20' ) end [2025-01-08 18:29:22] Production.INFO: ProcessCDR(1,14204072,1,1,2) [2025-01-08 18:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204072', 'tblTempUsageDetail_20' ) start [2025-01-08 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204072', 'tblTempUsageDetail_20' ) end [2025-01-08 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:29:26] Production.INFO: ==2966== Releasing lock... [2025-01-08 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:29:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-08 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:30:06 [end_date_ymd] => 2025-01-08 18:30:06 [RateCDR] => 1 ) [2025-01-08 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:30:06' and `end` < '2025-01-08 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:30:20] Production.INFO: count ==3557 [2025-01-08 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:30:06 - End Time 2025-01-08 18:30:06 [2025-01-08 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204078', 'tblTempUsageDetail_20' ) start [2025-01-08 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204078', 'tblTempUsageDetail_20' ) end [2025-01-08 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204078', 'tblTempVendorCDR_20' ) start [2025-01-08 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204078', 'tblTempVendorCDR_20' ) end [2025-01-08 18:30:21] Production.INFO: ProcessCDR(1,14204078,1,1,2) [2025-01-08 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204078', 'tblTempUsageDetail_20' ) start [2025-01-08 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204078', 'tblTempUsageDetail_20' ) end [2025-01-08 18:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:30:26] Production.INFO: ==3045== Releasing lock... [2025-01-08 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:30:26] Production.INFO: 55.25 MB #Memory Used# [2025-01-08 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:31:05 [end_date_ymd] => 2025-01-08 18:31:05 [RateCDR] => 1 ) [2025-01-08 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:31:05' and `end` < '2025-01-08 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:31:19] Production.INFO: count ==3543 [2025-01-08 18:31:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:31:05 - End Time 2025-01-08 18:31:05 [2025-01-08 18:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204083', 'tblTempUsageDetail_20' ) start [2025-01-08 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204083', 'tblTempUsageDetail_20' ) end [2025-01-08 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204083', 'tblTempVendorCDR_20' ) start [2025-01-08 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204083', 'tblTempVendorCDR_20' ) end [2025-01-08 18:31:21] Production.INFO: ProcessCDR(1,14204083,1,1,2) [2025-01-08 18:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204083', 'tblTempUsageDetail_20' ) start [2025-01-08 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204083', 'tblTempUsageDetail_20' ) end [2025-01-08 18:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:31:25] Production.INFO: ==3122== Releasing lock... [2025-01-08 18:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:31:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-08 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:32:05 [end_date_ymd] => 2025-01-08 18:32:05 [RateCDR] => 1 ) [2025-01-08 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:32:05' and `end` < '2025-01-08 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:32:19] Production.INFO: count ==3527 [2025-01-08 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:32:05 - End Time 2025-01-08 18:32:05 [2025-01-08 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204088', 'tblTempUsageDetail_20' ) start [2025-01-08 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204088', 'tblTempUsageDetail_20' ) end [2025-01-08 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204088', 'tblTempVendorCDR_20' ) start [2025-01-08 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204088', 'tblTempVendorCDR_20' ) end [2025-01-08 18:32:20] Production.INFO: ProcessCDR(1,14204088,1,1,2) [2025-01-08 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204088', 'tblTempUsageDetail_20' ) start [2025-01-08 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204088', 'tblTempUsageDetail_20' ) end [2025-01-08 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:32:25] Production.INFO: ==3198== Releasing lock... [2025-01-08 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:32:25] Production.INFO: 55 MB #Memory Used# [2025-01-08 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:33:05 [end_date_ymd] => 2025-01-08 18:33:05 [RateCDR] => 1 ) [2025-01-08 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:33:05' and `end` < '2025-01-08 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:33:23] Production.INFO: count ==3517 [2025-01-08 18:33:24] Production.ERROR: pbx CDR StartTime 2025-01-08 15:33:05 - End Time 2025-01-08 18:33:05 [2025-01-08 18:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204093', 'tblTempUsageDetail_20' ) start [2025-01-08 18:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204093', 'tblTempUsageDetail_20' ) end [2025-01-08 18:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204093', 'tblTempVendorCDR_20' ) start [2025-01-08 18:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204093', 'tblTempVendorCDR_20' ) end [2025-01-08 18:33:24] Production.INFO: ProcessCDR(1,14204093,1,1,2) [2025-01-08 18:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204093', 'tblTempUsageDetail_20' ) start [2025-01-08 18:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204093', 'tblTempUsageDetail_20' ) end [2025-01-08 18:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:33:29] Production.INFO: ==3269== Releasing lock... [2025-01-08 18:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:33:29] Production.INFO: 54.75 MB #Memory Used# [2025-01-08 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:34:05 [end_date_ymd] => 2025-01-08 18:34:05 [RateCDR] => 1 ) [2025-01-08 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:34:05' and `end` < '2025-01-08 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:34:20] Production.INFO: count ==3495 [2025-01-08 18:34:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:34:05 - End Time 2025-01-08 18:34:05 [2025-01-08 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204098', 'tblTempUsageDetail_20' ) start [2025-01-08 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204098', 'tblTempUsageDetail_20' ) end [2025-01-08 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204098', 'tblTempVendorCDR_20' ) start [2025-01-08 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204098', 'tblTempVendorCDR_20' ) end [2025-01-08 18:34:21] Production.INFO: ProcessCDR(1,14204098,1,1,2) [2025-01-08 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204098', 'tblTempUsageDetail_20' ) start [2025-01-08 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204098', 'tblTempUsageDetail_20' ) end [2025-01-08 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:34:26] Production.INFO: ==3380== Releasing lock... [2025-01-08 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:34:26] Production.INFO: 54.25 MB #Memory Used# [2025-01-08 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:35:05 [end_date_ymd] => 2025-01-08 18:35:05 [RateCDR] => 1 ) [2025-01-08 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:35:05' and `end` < '2025-01-08 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:35:27] Production.INFO: count ==3470 [2025-01-08 18:35:28] Production.ERROR: pbx CDR StartTime 2025-01-08 15:35:05 - End Time 2025-01-08 18:35:05 [2025-01-08 18:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204103', 'tblTempUsageDetail_20' ) start [2025-01-08 18:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204103', 'tblTempUsageDetail_20' ) end [2025-01-08 18:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204103', 'tblTempVendorCDR_20' ) start [2025-01-08 18:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204103', 'tblTempVendorCDR_20' ) end [2025-01-08 18:35:28] Production.INFO: ProcessCDR(1,14204103,1,1,2) [2025-01-08 18:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204103', 'tblTempUsageDetail_20' ) start [2025-01-08 18:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204103', 'tblTempUsageDetail_20' ) end [2025-01-08 18:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:35:31] Production.INFO: ==3450== Releasing lock... [2025-01-08 18:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:35:31] Production.INFO: 54 MB #Memory Used# [2025-01-08 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:36:04 [end_date_ymd] => 2025-01-08 18:36:04 [RateCDR] => 1 ) [2025-01-08 18:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:36:04' and `end` < '2025-01-08 18:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:36:22] Production.INFO: count ==3448 [2025-01-08 18:36:23] Production.ERROR: pbx CDR StartTime 2025-01-08 15:36:04 - End Time 2025-01-08 18:36:04 [2025-01-08 18:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204108', 'tblTempUsageDetail_20' ) start [2025-01-08 18:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204108', 'tblTempUsageDetail_20' ) end [2025-01-08 18:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204108', 'tblTempVendorCDR_20' ) start [2025-01-08 18:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204108', 'tblTempVendorCDR_20' ) end [2025-01-08 18:36:23] Production.INFO: ProcessCDR(1,14204108,1,1,2) [2025-01-08 18:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204108', 'tblTempUsageDetail_20' ) start [2025-01-08 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204108', 'tblTempUsageDetail_20' ) end [2025-01-08 18:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:36:27] Production.INFO: ==3521== Releasing lock... [2025-01-08 18:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:36:27] Production.INFO: 53.75 MB #Memory Used# [2025-01-08 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:37:04 [end_date_ymd] => 2025-01-08 18:37:04 [RateCDR] => 1 ) [2025-01-08 18:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:37:04' and `end` < '2025-01-08 18:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:37:18] Production.INFO: count ==3439 [2025-01-08 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:37:04 - End Time 2025-01-08 18:37:04 [2025-01-08 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204113', 'tblTempUsageDetail_20' ) start [2025-01-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204113', 'tblTempUsageDetail_20' ) end [2025-01-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204113', 'tblTempVendorCDR_20' ) start [2025-01-08 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204113', 'tblTempVendorCDR_20' ) end [2025-01-08 18:37:19] Production.INFO: ProcessCDR(1,14204113,1,1,2) [2025-01-08 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204113', 'tblTempUsageDetail_20' ) start [2025-01-08 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204113', 'tblTempUsageDetail_20' ) end [2025-01-08 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:37:22] Production.INFO: ==3591== Releasing lock... [2025-01-08 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:37:22] Production.INFO: 53.75 MB #Memory Used# [2025-01-08 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:38:05 [end_date_ymd] => 2025-01-08 18:38:05 [RateCDR] => 1 ) [2025-01-08 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:38:05' and `end` < '2025-01-08 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:38:20] Production.INFO: count ==3423 [2025-01-08 18:38:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:38:05 - End Time 2025-01-08 18:38:05 [2025-01-08 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204118', 'tblTempUsageDetail_20' ) start [2025-01-08 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204118', 'tblTempUsageDetail_20' ) end [2025-01-08 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204118', 'tblTempVendorCDR_20' ) start [2025-01-08 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204118', 'tblTempVendorCDR_20' ) end [2025-01-08 18:38:21] Production.INFO: ProcessCDR(1,14204118,1,1,2) [2025-01-08 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204118', 'tblTempUsageDetail_20' ) start [2025-01-08 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204118', 'tblTempUsageDetail_20' ) end [2025-01-08 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:38:24] Production.INFO: ==3662== Releasing lock... [2025-01-08 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:38:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-08 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:39:05 [end_date_ymd] => 2025-01-08 18:39:05 [RateCDR] => 1 ) [2025-01-08 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:39:05' and `end` < '2025-01-08 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:39:18] Production.INFO: count ==3400 [2025-01-08 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:39:05 - End Time 2025-01-08 18:39:05 [2025-01-08 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204123', 'tblTempUsageDetail_20' ) start [2025-01-08 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204123', 'tblTempUsageDetail_20' ) end [2025-01-08 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204123', 'tblTempVendorCDR_20' ) start [2025-01-08 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204123', 'tblTempVendorCDR_20' ) end [2025-01-08 18:39:19] Production.INFO: ProcessCDR(1,14204123,1,1,2) [2025-01-08 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204123', 'tblTempUsageDetail_20' ) start [2025-01-08 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204123', 'tblTempUsageDetail_20' ) end [2025-01-08 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:39:22] Production.INFO: ==3733== Releasing lock... [2025-01-08 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:39:22] Production.INFO: 53.5 MB #Memory Used# [2025-01-08 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:40:05 [end_date_ymd] => 2025-01-08 18:40:05 [RateCDR] => 1 ) [2025-01-08 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:40:05' and `end` < '2025-01-08 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:40:19] Production.INFO: count ==3397 [2025-01-08 18:40:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:40:05 - End Time 2025-01-08 18:40:05 [2025-01-08 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204128', 'tblTempUsageDetail_20' ) start [2025-01-08 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204128', 'tblTempUsageDetail_20' ) end [2025-01-08 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204128', 'tblTempVendorCDR_20' ) start [2025-01-08 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204128', 'tblTempVendorCDR_20' ) end [2025-01-08 18:40:20] Production.INFO: ProcessCDR(1,14204128,1,1,2) [2025-01-08 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204128', 'tblTempUsageDetail_20' ) start [2025-01-08 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204128', 'tblTempUsageDetail_20' ) end [2025-01-08 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:40:23] Production.INFO: ==3805== Releasing lock... [2025-01-08 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:40:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-08 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:41:04 [end_date_ymd] => 2025-01-08 18:41:04 [RateCDR] => 1 ) [2025-01-08 18:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:41:04' and `end` < '2025-01-08 18:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:41:18] Production.INFO: count ==3317 [2025-01-08 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:41:04 - End Time 2025-01-08 18:41:04 [2025-01-08 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204134', 'tblTempUsageDetail_20' ) start [2025-01-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204134', 'tblTempUsageDetail_20' ) end [2025-01-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204134', 'tblTempVendorCDR_20' ) start [2025-01-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204134', 'tblTempVendorCDR_20' ) end [2025-01-08 18:41:19] Production.INFO: ProcessCDR(1,14204134,1,1,2) [2025-01-08 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204134', 'tblTempUsageDetail_20' ) start [2025-01-08 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204134', 'tblTempUsageDetail_20' ) end [2025-01-08 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:41:23] Production.INFO: ==3878== Releasing lock... [2025-01-08 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:41:23] Production.INFO: 53 MB #Memory Used# [2025-01-08 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:42:05 [end_date_ymd] => 2025-01-08 18:42:05 [RateCDR] => 1 ) [2025-01-08 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:42:05' and `end` < '2025-01-08 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:42:19] Production.INFO: count ==3305 [2025-01-08 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:42:05 - End Time 2025-01-08 18:42:05 [2025-01-08 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204139', 'tblTempUsageDetail_20' ) start [2025-01-08 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204139', 'tblTempUsageDetail_20' ) end [2025-01-08 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204139', 'tblTempVendorCDR_20' ) start [2025-01-08 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204139', 'tblTempVendorCDR_20' ) end [2025-01-08 18:42:21] Production.INFO: ProcessCDR(1,14204139,1,1,2) [2025-01-08 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204139', 'tblTempUsageDetail_20' ) start [2025-01-08 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204139', 'tblTempUsageDetail_20' ) end [2025-01-08 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:42:25] Production.INFO: ==3952== Releasing lock... [2025-01-08 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:42:25] Production.INFO: 52.75 MB #Memory Used# [2025-01-08 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:43:05 [end_date_ymd] => 2025-01-08 18:43:05 [RateCDR] => 1 ) [2025-01-08 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:43:05' and `end` < '2025-01-08 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:43:18] Production.INFO: count ==3293 [2025-01-08 18:43:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:43:05 - End Time 2025-01-08 18:43:05 [2025-01-08 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204144', 'tblTempUsageDetail_20' ) start [2025-01-08 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204144', 'tblTempUsageDetail_20' ) end [2025-01-08 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204144', 'tblTempVendorCDR_20' ) start [2025-01-08 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204144', 'tblTempVendorCDR_20' ) end [2025-01-08 18:43:19] Production.INFO: ProcessCDR(1,14204144,1,1,2) [2025-01-08 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204144', 'tblTempUsageDetail_20' ) start [2025-01-08 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204144', 'tblTempUsageDetail_20' ) end [2025-01-08 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:43:24] Production.INFO: ==4030== Releasing lock... [2025-01-08 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:43:24] Production.INFO: 52.75 MB #Memory Used# [2025-01-08 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:44:05 [end_date_ymd] => 2025-01-08 18:44:05 [RateCDR] => 1 ) [2025-01-08 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:44:05' and `end` < '2025-01-08 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:44:19] Production.INFO: count ==3262 [2025-01-08 18:44:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:44:05 - End Time 2025-01-08 18:44:05 [2025-01-08 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204149', 'tblTempUsageDetail_20' ) start [2025-01-08 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204149', 'tblTempUsageDetail_20' ) end [2025-01-08 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204149', 'tblTempVendorCDR_20' ) start [2025-01-08 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204149', 'tblTempVendorCDR_20' ) end [2025-01-08 18:44:20] Production.INFO: ProcessCDR(1,14204149,1,1,2) [2025-01-08 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204149', 'tblTempUsageDetail_20' ) start [2025-01-08 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204149', 'tblTempUsageDetail_20' ) end [2025-01-08 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:44:24] Production.INFO: ==4100== Releasing lock... [2025-01-08 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:44:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-08 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:45:05 [end_date_ymd] => 2025-01-08 18:45:05 [RateCDR] => 1 ) [2025-01-08 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:45:05' and `end` < '2025-01-08 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:45:19] Production.INFO: count ==3246 [2025-01-08 18:45:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:45:05 - End Time 2025-01-08 18:45:05 [2025-01-08 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204154', 'tblTempUsageDetail_20' ) start [2025-01-08 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204154', 'tblTempUsageDetail_20' ) end [2025-01-08 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204154', 'tblTempVendorCDR_20' ) start [2025-01-08 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204154', 'tblTempVendorCDR_20' ) end [2025-01-08 18:45:20] Production.INFO: ProcessCDR(1,14204154,1,1,2) [2025-01-08 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204154', 'tblTempUsageDetail_20' ) start [2025-01-08 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204154', 'tblTempUsageDetail_20' ) end [2025-01-08 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:45:23] Production.INFO: ==4172== Releasing lock... [2025-01-08 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:45:23] Production.INFO: 53 MB #Memory Used# [2025-01-08 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:46:05 [end_date_ymd] => 2025-01-08 18:46:05 [RateCDR] => 1 ) [2025-01-08 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:46:05' and `end` < '2025-01-08 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:46:18] Production.INFO: count ==3232 [2025-01-08 18:46:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:46:05 - End Time 2025-01-08 18:46:05 [2025-01-08 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204159', 'tblTempUsageDetail_20' ) start [2025-01-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204159', 'tblTempUsageDetail_20' ) end [2025-01-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204159', 'tblTempVendorCDR_20' ) start [2025-01-08 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204159', 'tblTempVendorCDR_20' ) end [2025-01-08 18:46:19] Production.INFO: ProcessCDR(1,14204159,1,1,2) [2025-01-08 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204159', 'tblTempUsageDetail_20' ) start [2025-01-08 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204159', 'tblTempUsageDetail_20' ) end [2025-01-08 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:46:24] Production.INFO: ==4244== Releasing lock... [2025-01-08 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:46:24] Production.INFO: 52.25 MB #Memory Used# [2025-01-08 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:47:05 [end_date_ymd] => 2025-01-08 18:47:05 [RateCDR] => 1 ) [2025-01-08 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:47:05' and `end` < '2025-01-08 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:47:20] Production.INFO: count ==3216 [2025-01-08 18:47:21] Production.ERROR: pbx CDR StartTime 2025-01-08 15:47:05 - End Time 2025-01-08 18:47:05 [2025-01-08 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204164', 'tblTempUsageDetail_20' ) start [2025-01-08 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204164', 'tblTempUsageDetail_20' ) end [2025-01-08 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204164', 'tblTempVendorCDR_20' ) start [2025-01-08 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204164', 'tblTempVendorCDR_20' ) end [2025-01-08 18:47:21] Production.INFO: ProcessCDR(1,14204164,1,1,2) [2025-01-08 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204164', 'tblTempUsageDetail_20' ) start [2025-01-08 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204164', 'tblTempUsageDetail_20' ) end [2025-01-08 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:47:25] Production.INFO: ==4316== Releasing lock... [2025-01-08 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:47:25] Production.INFO: 52 MB #Memory Used# [2025-01-08 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:48:05 [end_date_ymd] => 2025-01-08 18:48:05 [RateCDR] => 1 ) [2025-01-08 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:48:05' and `end` < '2025-01-08 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:48:18] Production.INFO: count ==3210 [2025-01-08 18:48:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:48:05 - End Time 2025-01-08 18:48:05 [2025-01-08 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204169', 'tblTempUsageDetail_20' ) start [2025-01-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204169', 'tblTempUsageDetail_20' ) end [2025-01-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204169', 'tblTempVendorCDR_20' ) start [2025-01-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204169', 'tblTempVendorCDR_20' ) end [2025-01-08 18:48:19] Production.INFO: ProcessCDR(1,14204169,1,1,2) [2025-01-08 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204169', 'tblTempUsageDetail_20' ) start [2025-01-08 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204169', 'tblTempUsageDetail_20' ) end [2025-01-08 18:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:48:22] Production.INFO: ==4385== Releasing lock... [2025-01-08 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:48:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-08 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:49:05 [end_date_ymd] => 2025-01-08 18:49:05 [RateCDR] => 1 ) [2025-01-08 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:49:05' and `end` < '2025-01-08 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:49:18] Production.INFO: count ==3185 [2025-01-08 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:49:05 - End Time 2025-01-08 18:49:05 [2025-01-08 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204174', 'tblTempUsageDetail_20' ) start [2025-01-08 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204174', 'tblTempUsageDetail_20' ) end [2025-01-08 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204174', 'tblTempVendorCDR_20' ) start [2025-01-08 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204174', 'tblTempVendorCDR_20' ) end [2025-01-08 18:49:19] Production.INFO: ProcessCDR(1,14204174,1,1,2) [2025-01-08 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204174', 'tblTempUsageDetail_20' ) start [2025-01-08 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204174', 'tblTempUsageDetail_20' ) end [2025-01-08 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:49:23] Production.INFO: ==4456== Releasing lock... [2025-01-08 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:49:23] Production.INFO: 52 MB #Memory Used# [2025-01-08 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:50:05 [end_date_ymd] => 2025-01-08 18:50:05 [RateCDR] => 1 ) [2025-01-08 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:50:05' and `end` < '2025-01-08 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:50:19] Production.INFO: count ==3172 [2025-01-08 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:50:05 - End Time 2025-01-08 18:50:05 [2025-01-08 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204180', 'tblTempUsageDetail_20' ) start [2025-01-08 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204180', 'tblTempUsageDetail_20' ) end [2025-01-08 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204180', 'tblTempVendorCDR_20' ) start [2025-01-08 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204180', 'tblTempVendorCDR_20' ) end [2025-01-08 18:50:20] Production.INFO: ProcessCDR(1,14204180,1,1,2) [2025-01-08 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204180', 'tblTempUsageDetail_20' ) start [2025-01-08 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204180', 'tblTempUsageDetail_20' ) end [2025-01-08 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:50:24] Production.INFO: ==4566== Releasing lock... [2025-01-08 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:50:24] Production.INFO: 51.75 MB #Memory Used# [2025-01-08 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:51:04 [end_date_ymd] => 2025-01-08 18:51:04 [RateCDR] => 1 ) [2025-01-08 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:51:04' and `end` < '2025-01-08 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:51:18] Production.INFO: count ==3103 [2025-01-08 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:51:04 - End Time 2025-01-08 18:51:04 [2025-01-08 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204185', 'tblTempUsageDetail_20' ) start [2025-01-08 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204185', 'tblTempUsageDetail_20' ) end [2025-01-08 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204185', 'tblTempVendorCDR_20' ) start [2025-01-08 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204185', 'tblTempVendorCDR_20' ) end [2025-01-08 18:51:19] Production.INFO: ProcessCDR(1,14204185,1,1,2) [2025-01-08 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204185', 'tblTempUsageDetail_20' ) start [2025-01-08 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204185', 'tblTempUsageDetail_20' ) end [2025-01-08 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:51:23] Production.INFO: ==4652== Releasing lock... [2025-01-08 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:51:23] Production.INFO: 52.25 MB #Memory Used# [2025-01-08 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:52:05 [end_date_ymd] => 2025-01-08 18:52:05 [RateCDR] => 1 ) [2025-01-08 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:52:05' and `end` < '2025-01-08 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:52:18] Production.INFO: count ==3097 [2025-01-08 18:52:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:52:05 - End Time 2025-01-08 18:52:05 [2025-01-08 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204190', 'tblTempUsageDetail_20' ) start [2025-01-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204190', 'tblTempUsageDetail_20' ) end [2025-01-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204190', 'tblTempVendorCDR_20' ) start [2025-01-08 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204190', 'tblTempVendorCDR_20' ) end [2025-01-08 18:52:19] Production.INFO: ProcessCDR(1,14204190,1,1,2) [2025-01-08 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204190', 'tblTempUsageDetail_20' ) start [2025-01-08 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204190', 'tblTempUsageDetail_20' ) end [2025-01-08 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:52:22] Production.INFO: ==4732== Releasing lock... [2025-01-08 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:52:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-08 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:53:05 [end_date_ymd] => 2025-01-08 18:53:05 [RateCDR] => 1 ) [2025-01-08 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:53:05' and `end` < '2025-01-08 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:53:19] Production.INFO: count ==3076 [2025-01-08 18:53:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:53:05 - End Time 2025-01-08 18:53:05 [2025-01-08 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204195', 'tblTempUsageDetail_20' ) start [2025-01-08 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204195', 'tblTempUsageDetail_20' ) end [2025-01-08 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204195', 'tblTempVendorCDR_20' ) start [2025-01-08 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204195', 'tblTempVendorCDR_20' ) end [2025-01-08 18:53:20] Production.INFO: ProcessCDR(1,14204195,1,1,2) [2025-01-08 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204195', 'tblTempUsageDetail_20' ) start [2025-01-08 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204195', 'tblTempUsageDetail_20' ) end [2025-01-08 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:53:24] Production.INFO: ==4807== Releasing lock... [2025-01-08 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:53:24] Production.INFO: 51 MB #Memory Used# [2025-01-08 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:54:05 [end_date_ymd] => 2025-01-08 18:54:05 [RateCDR] => 1 ) [2025-01-08 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:54:05' and `end` < '2025-01-08 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:54:18] Production.INFO: count ==3051 [2025-01-08 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:54:05 - End Time 2025-01-08 18:54:05 [2025-01-08 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204200', 'tblTempUsageDetail_20' ) start [2025-01-08 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204200', 'tblTempUsageDetail_20' ) end [2025-01-08 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204200', 'tblTempVendorCDR_20' ) start [2025-01-08 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204200', 'tblTempVendorCDR_20' ) end [2025-01-08 18:54:19] Production.INFO: ProcessCDR(1,14204200,1,1,2) [2025-01-08 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204200', 'tblTempUsageDetail_20' ) start [2025-01-08 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204200', 'tblTempUsageDetail_20' ) end [2025-01-08 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:54:22] Production.INFO: ==4884== Releasing lock... [2025-01-08 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:54:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-08 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:55:05 [end_date_ymd] => 2025-01-08 18:55:05 [RateCDR] => 1 ) [2025-01-08 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:55:05' and `end` < '2025-01-08 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:55:18] Production.INFO: count ==3045 [2025-01-08 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:55:05 - End Time 2025-01-08 18:55:05 [2025-01-08 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204205', 'tblTempUsageDetail_20' ) start [2025-01-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204205', 'tblTempUsageDetail_20' ) end [2025-01-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204205', 'tblTempVendorCDR_20' ) start [2025-01-08 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204205', 'tblTempVendorCDR_20' ) end [2025-01-08 18:55:19] Production.INFO: ProcessCDR(1,14204205,1,1,2) [2025-01-08 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204205', 'tblTempUsageDetail_20' ) start [2025-01-08 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204205', 'tblTempUsageDetail_20' ) end [2025-01-08 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:55:22] Production.INFO: ==4959== Releasing lock... [2025-01-08 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:55:22] Production.INFO: 51 MB #Memory Used# [2025-01-08 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:56:06 [end_date_ymd] => 2025-01-08 18:56:06 [RateCDR] => 1 ) [2025-01-08 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:56:06' and `end` < '2025-01-08 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:56:19] Production.INFO: count ==3039 [2025-01-08 18:56:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:56:06 - End Time 2025-01-08 18:56:06 [2025-01-08 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204210', 'tblTempUsageDetail_20' ) start [2025-01-08 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204210', 'tblTempUsageDetail_20' ) end [2025-01-08 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204210', 'tblTempVendorCDR_20' ) start [2025-01-08 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204210', 'tblTempVendorCDR_20' ) end [2025-01-08 18:56:20] Production.INFO: ProcessCDR(1,14204210,1,1,2) [2025-01-08 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204210', 'tblTempUsageDetail_20' ) start [2025-01-08 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204210', 'tblTempUsageDetail_20' ) end [2025-01-08 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:56:25] Production.INFO: ==5039== Releasing lock... [2025-01-08 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:56:25] Production.INFO: 50.75 MB #Memory Used# [2025-01-08 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:57:05 [end_date_ymd] => 2025-01-08 18:57:05 [RateCDR] => 1 ) [2025-01-08 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:57:05' and `end` < '2025-01-08 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:57:19] Production.INFO: count ==3031 [2025-01-08 18:57:20] Production.ERROR: pbx CDR StartTime 2025-01-08 15:57:05 - End Time 2025-01-08 18:57:05 [2025-01-08 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204215', 'tblTempUsageDetail_20' ) start [2025-01-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204215', 'tblTempUsageDetail_20' ) end [2025-01-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204215', 'tblTempVendorCDR_20' ) start [2025-01-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204215', 'tblTempVendorCDR_20' ) end [2025-01-08 18:57:20] Production.INFO: ProcessCDR(1,14204215,1,1,2) [2025-01-08 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204215', 'tblTempUsageDetail_20' ) start [2025-01-08 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204215', 'tblTempUsageDetail_20' ) end [2025-01-08 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:57:25] Production.INFO: ==5125== Releasing lock... [2025-01-08 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:57:25] Production.INFO: 50.5 MB #Memory Used# [2025-01-08 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:58:05 [end_date_ymd] => 2025-01-08 18:58:05 [RateCDR] => 1 ) [2025-01-08 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:58:05' and `end` < '2025-01-08 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:58:18] Production.INFO: count ==3027 [2025-01-08 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:58:05 - End Time 2025-01-08 18:58:05 [2025-01-08 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204220', 'tblTempUsageDetail_20' ) start [2025-01-08 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204220', 'tblTempUsageDetail_20' ) end [2025-01-08 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204220', 'tblTempVendorCDR_20' ) start [2025-01-08 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204220', 'tblTempVendorCDR_20' ) end [2025-01-08 18:58:19] Production.INFO: ProcessCDR(1,14204220,1,1,2) [2025-01-08 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204220', 'tblTempUsageDetail_20' ) start [2025-01-08 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204220', 'tblTempUsageDetail_20' ) end [2025-01-08 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:58:24] Production.INFO: ==5203== Releasing lock... [2025-01-08 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:58:24] Production.INFO: 50.5 MB #Memory Used# [2025-01-08 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 15:59:04 [end_date_ymd] => 2025-01-08 18:59:04 [RateCDR] => 1 ) [2025-01-08 18:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 15:59:04' and `end` < '2025-01-08 18:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 18:59:18] Production.INFO: count ==3002 [2025-01-08 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-08 15:59:04 - End Time 2025-01-08 18:59:04 [2025-01-08 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204225', 'tblTempUsageDetail_20' ) start [2025-01-08 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204225', 'tblTempUsageDetail_20' ) end [2025-01-08 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204225', 'tblTempVendorCDR_20' ) start [2025-01-08 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204225', 'tblTempVendorCDR_20' ) end [2025-01-08 18:59:19] Production.INFO: ProcessCDR(1,14204225,1,1,2) [2025-01-08 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204225', 'tblTempUsageDetail_20' ) start [2025-01-08 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204225', 'tblTempUsageDetail_20' ) end [2025-01-08 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 18:59:23] Production.INFO: ==5278== Releasing lock... [2025-01-08 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 18:59:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-08 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:00:05 [end_date_ymd] => 2025-01-08 19:00:05 [RateCDR] => 1 ) [2025-01-08 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:00:05' and `end` < '2025-01-08 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:00:21] Production.INFO: count ==2992 [2025-01-08 19:00:22] Production.ERROR: pbx CDR StartTime 2025-01-08 16:00:05 - End Time 2025-01-08 19:00:05 [2025-01-08 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204230', 'tblTempUsageDetail_20' ) start [2025-01-08 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204230', 'tblTempUsageDetail_20' ) end [2025-01-08 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204230', 'tblTempVendorCDR_20' ) start [2025-01-08 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204230', 'tblTempVendorCDR_20' ) end [2025-01-08 19:00:22] Production.INFO: ProcessCDR(1,14204230,1,1,2) [2025-01-08 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204230', 'tblTempUsageDetail_20' ) start [2025-01-08 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204230', 'tblTempUsageDetail_20' ) end [2025-01-08 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:00:25] Production.INFO: ==5359== Releasing lock... [2025-01-08 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:00:25] Production.INFO: 50.25 MB #Memory Used# [2025-01-08 19:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:01:04 [end_date_ymd] => 2025-01-08 19:01:04 [RateCDR] => 1 ) [2025-01-08 19:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:01:04' and `end` < '2025-01-08 19:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:01:18] Production.INFO: count ==2891 [2025-01-08 19:01:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:01:04 - End Time 2025-01-08 19:01:04 [2025-01-08 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204236', 'tblTempUsageDetail_20' ) start [2025-01-08 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204236', 'tblTempUsageDetail_20' ) end [2025-01-08 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204236', 'tblTempVendorCDR_20' ) start [2025-01-08 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204236', 'tblTempVendorCDR_20' ) end [2025-01-08 19:01:18] Production.INFO: ProcessCDR(1,14204236,1,1,2) [2025-01-08 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204236', 'tblTempUsageDetail_20' ) start [2025-01-08 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204236', 'tblTempUsageDetail_20' ) end [2025-01-08 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:01:23] Production.INFO: ==5451== Releasing lock... [2025-01-08 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:01:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-08 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:02:05 [end_date_ymd] => 2025-01-08 19:02:05 [RateCDR] => 1 ) [2025-01-08 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:02:05' and `end` < '2025-01-08 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:02:18] Production.INFO: count ==2878 [2025-01-08 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:02:05 - End Time 2025-01-08 19:02:05 [2025-01-08 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204241', 'tblTempUsageDetail_20' ) start [2025-01-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204241', 'tblTempUsageDetail_20' ) end [2025-01-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204241', 'tblTempVendorCDR_20' ) start [2025-01-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204241', 'tblTempVendorCDR_20' ) end [2025-01-08 19:02:19] Production.INFO: ProcessCDR(1,14204241,1,1,2) [2025-01-08 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204241', 'tblTempUsageDetail_20' ) start [2025-01-08 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204241', 'tblTempUsageDetail_20' ) end [2025-01-08 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:02:22] Production.INFO: ==5601== Releasing lock... [2025-01-08 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:02:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-08 19:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:03:04 [end_date_ymd] => 2025-01-08 19:03:04 [RateCDR] => 1 ) [2025-01-08 19:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:03:04' and `end` < '2025-01-08 19:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:03:19] Production.INFO: count ==2860 [2025-01-08 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-08 16:03:04 - End Time 2025-01-08 19:03:04 [2025-01-08 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204246', 'tblTempUsageDetail_20' ) start [2025-01-08 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204246', 'tblTempUsageDetail_20' ) end [2025-01-08 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204246', 'tblTempVendorCDR_20' ) start [2025-01-08 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204246', 'tblTempVendorCDR_20' ) end [2025-01-08 19:03:20] Production.INFO: ProcessCDR(1,14204246,1,1,2) [2025-01-08 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204246', 'tblTempUsageDetail_20' ) start [2025-01-08 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204246', 'tblTempUsageDetail_20' ) end [2025-01-08 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:03:23] Production.INFO: ==5671== Releasing lock... [2025-01-08 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:03:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-08 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:04:05 [end_date_ymd] => 2025-01-08 19:04:05 [RateCDR] => 1 ) [2025-01-08 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:04:05' and `end` < '2025-01-08 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:04:18] Production.INFO: count ==2834 [2025-01-08 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:04:05 - End Time 2025-01-08 19:04:05 [2025-01-08 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204251', 'tblTempUsageDetail_20' ) start [2025-01-08 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204251', 'tblTempUsageDetail_20' ) end [2025-01-08 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204251', 'tblTempVendorCDR_20' ) start [2025-01-08 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204251', 'tblTempVendorCDR_20' ) end [2025-01-08 19:04:19] Production.INFO: ProcessCDR(1,14204251,1,1,2) [2025-01-08 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204251', 'tblTempUsageDetail_20' ) start [2025-01-08 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204251', 'tblTempUsageDetail_20' ) end [2025-01-08 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:04:22] Production.INFO: ==5741== Releasing lock... [2025-01-08 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:04:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-08 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:05:04 [end_date_ymd] => 2025-01-08 19:05:04 [RateCDR] => 1 ) [2025-01-08 19:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:05:04' and `end` < '2025-01-08 19:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:05:18] Production.INFO: count ==2811 [2025-01-08 19:05:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:05:04 - End Time 2025-01-08 19:05:04 [2025-01-08 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204256', 'tblTempUsageDetail_20' ) start [2025-01-08 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204256', 'tblTempUsageDetail_20' ) end [2025-01-08 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204256', 'tblTempVendorCDR_20' ) start [2025-01-08 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204256', 'tblTempVendorCDR_20' ) end [2025-01-08 19:05:19] Production.INFO: ProcessCDR(1,14204256,1,1,2) [2025-01-08 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204256', 'tblTempUsageDetail_20' ) start [2025-01-08 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204256', 'tblTempUsageDetail_20' ) end [2025-01-08 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:05:23] Production.INFO: ==5929== Releasing lock... [2025-01-08 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:05:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-08 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:06:05 [end_date_ymd] => 2025-01-08 19:06:05 [RateCDR] => 1 ) [2025-01-08 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:06:05' and `end` < '2025-01-08 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:06:19] Production.INFO: count ==2793 [2025-01-08 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-08 16:06:05 - End Time 2025-01-08 19:06:05 [2025-01-08 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204261', 'tblTempUsageDetail_20' ) start [2025-01-08 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204261', 'tblTempUsageDetail_20' ) end [2025-01-08 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204261', 'tblTempVendorCDR_20' ) start [2025-01-08 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204261', 'tblTempVendorCDR_20' ) end [2025-01-08 19:06:20] Production.INFO: ProcessCDR(1,14204261,1,1,2) [2025-01-08 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204261', 'tblTempUsageDetail_20' ) start [2025-01-08 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204261', 'tblTempUsageDetail_20' ) end [2025-01-08 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:06:25] Production.INFO: ==6000== Releasing lock... [2025-01-08 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:06:25] Production.INFO: 49 MB #Memory Used# [2025-01-08 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:07:04 [end_date_ymd] => 2025-01-08 19:07:04 [RateCDR] => 1 ) [2025-01-08 19:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:07:04' and `end` < '2025-01-08 19:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:07:17] Production.INFO: count ==2779 [2025-01-08 19:07:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:07:04 - End Time 2025-01-08 19:07:04 [2025-01-08 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204266', 'tblTempUsageDetail_20' ) start [2025-01-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204266', 'tblTempUsageDetail_20' ) end [2025-01-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204266', 'tblTempVendorCDR_20' ) start [2025-01-08 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204266', 'tblTempVendorCDR_20' ) end [2025-01-08 19:07:18] Production.INFO: ProcessCDR(1,14204266,1,1,2) [2025-01-08 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204266', 'tblTempUsageDetail_20' ) start [2025-01-08 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204266', 'tblTempUsageDetail_20' ) end [2025-01-08 19:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:07:21] Production.INFO: ==6072== Releasing lock... [2025-01-08 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:07:21] Production.INFO: 49 MB #Memory Used# [2025-01-08 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:08:05 [end_date_ymd] => 2025-01-08 19:08:05 [RateCDR] => 1 ) [2025-01-08 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:08:05' and `end` < '2025-01-08 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:08:18] Production.INFO: count ==2782 [2025-01-08 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:08:05 - End Time 2025-01-08 19:08:05 [2025-01-08 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204271', 'tblTempUsageDetail_20' ) start [2025-01-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204271', 'tblTempUsageDetail_20' ) end [2025-01-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204271', 'tblTempVendorCDR_20' ) start [2025-01-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204271', 'tblTempVendorCDR_20' ) end [2025-01-08 19:08:19] Production.INFO: ProcessCDR(1,14204271,1,1,2) [2025-01-08 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204271', 'tblTempUsageDetail_20' ) start [2025-01-08 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204271', 'tblTempUsageDetail_20' ) end [2025-01-08 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:08:22] Production.INFO: ==6182== Releasing lock... [2025-01-08 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:08:22] Production.INFO: 49 MB #Memory Used# [2025-01-08 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:09:05 [end_date_ymd] => 2025-01-08 19:09:05 [RateCDR] => 1 ) [2025-01-08 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:09:05' and `end` < '2025-01-08 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:09:19] Production.INFO: count ==2760 [2025-01-08 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:09:05 - End Time 2025-01-08 19:09:05 [2025-01-08 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204276', 'tblTempUsageDetail_20' ) start [2025-01-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204276', 'tblTempUsageDetail_20' ) end [2025-01-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204276', 'tblTempVendorCDR_20' ) start [2025-01-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204276', 'tblTempVendorCDR_20' ) end [2025-01-08 19:09:19] Production.INFO: ProcessCDR(1,14204276,1,1,2) [2025-01-08 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204276', 'tblTempUsageDetail_20' ) start [2025-01-08 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204276', 'tblTempUsageDetail_20' ) end [2025-01-08 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:09:23] Production.INFO: ==6292== Releasing lock... [2025-01-08 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:09:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-08 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:10:05 [end_date_ymd] => 2025-01-08 19:10:05 [RateCDR] => 1 ) [2025-01-08 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:10:05' and `end` < '2025-01-08 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:10:19] Production.INFO: count ==2763 [2025-01-08 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:10:05 - End Time 2025-01-08 19:10:05 [2025-01-08 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204282', 'tblTempUsageDetail_20' ) start [2025-01-08 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204282', 'tblTempUsageDetail_20' ) end [2025-01-08 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204282', 'tblTempVendorCDR_20' ) start [2025-01-08 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204282', 'tblTempVendorCDR_20' ) end [2025-01-08 19:10:20] Production.INFO: ProcessCDR(1,14204282,1,1,2) [2025-01-08 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204282', 'tblTempUsageDetail_20' ) start [2025-01-08 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204282', 'tblTempUsageDetail_20' ) end [2025-01-08 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:10:23] Production.INFO: ==6366== Releasing lock... [2025-01-08 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:10:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-08 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:11:05 [end_date_ymd] => 2025-01-08 19:11:05 [RateCDR] => 1 ) [2025-01-08 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:11:05' and `end` < '2025-01-08 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:11:18] Production.INFO: count ==2697 [2025-01-08 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:11:05 - End Time 2025-01-08 19:11:05 [2025-01-08 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204287', 'tblTempUsageDetail_20' ) start [2025-01-08 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204287', 'tblTempUsageDetail_20' ) end [2025-01-08 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204287', 'tblTempVendorCDR_20' ) start [2025-01-08 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204287', 'tblTempVendorCDR_20' ) end [2025-01-08 19:11:19] Production.INFO: ProcessCDR(1,14204287,1,1,2) [2025-01-08 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204287', 'tblTempUsageDetail_20' ) start [2025-01-08 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204287', 'tblTempUsageDetail_20' ) end [2025-01-08 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:11:22] Production.INFO: ==6440== Releasing lock... [2025-01-08 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:11:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-08 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:12:04 [end_date_ymd] => 2025-01-08 19:12:04 [RateCDR] => 1 ) [2025-01-08 19:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:12:04' and `end` < '2025-01-08 19:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:12:17] Production.INFO: count ==2676 [2025-01-08 19:12:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:12:04 - End Time 2025-01-08 19:12:04 [2025-01-08 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204292', 'tblTempUsageDetail_20' ) start [2025-01-08 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204292', 'tblTempUsageDetail_20' ) end [2025-01-08 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204292', 'tblTempVendorCDR_20' ) start [2025-01-08 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204292', 'tblTempVendorCDR_20' ) end [2025-01-08 19:12:18] Production.INFO: ProcessCDR(1,14204292,1,1,2) [2025-01-08 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204292', 'tblTempUsageDetail_20' ) start [2025-01-08 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204292', 'tblTempUsageDetail_20' ) end [2025-01-08 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:12:21] Production.INFO: ==6589== Releasing lock... [2025-01-08 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:12:21] Production.INFO: 48.25 MB #Memory Used# [2025-01-08 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:13:05 [end_date_ymd] => 2025-01-08 19:13:05 [RateCDR] => 1 ) [2025-01-08 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:13:05' and `end` < '2025-01-08 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:13:19] Production.INFO: count ==2662 [2025-01-08 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:13:05 - End Time 2025-01-08 19:13:05 [2025-01-08 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204297', 'tblTempUsageDetail_20' ) start [2025-01-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204297', 'tblTempUsageDetail_20' ) end [2025-01-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204297', 'tblTempVendorCDR_20' ) start [2025-01-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204297', 'tblTempVendorCDR_20' ) end [2025-01-08 19:13:19] Production.INFO: ProcessCDR(1,14204297,1,1,2) [2025-01-08 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204297', 'tblTempUsageDetail_20' ) start [2025-01-08 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204297', 'tblTempUsageDetail_20' ) end [2025-01-08 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:13:22] Production.INFO: ==6660== Releasing lock... [2025-01-08 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:13:22] Production.INFO: 48 MB #Memory Used# [2025-01-08 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:14:05 [end_date_ymd] => 2025-01-08 19:14:05 [RateCDR] => 1 ) [2025-01-08 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:14:05' and `end` < '2025-01-08 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:14:18] Production.INFO: count ==2650 [2025-01-08 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:14:05 - End Time 2025-01-08 19:14:05 [2025-01-08 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204302', 'tblTempUsageDetail_20' ) start [2025-01-08 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204302', 'tblTempUsageDetail_20' ) end [2025-01-08 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204302', 'tblTempVendorCDR_20' ) start [2025-01-08 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204302', 'tblTempVendorCDR_20' ) end [2025-01-08 19:14:19] Production.INFO: ProcessCDR(1,14204302,1,1,2) [2025-01-08 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204302', 'tblTempUsageDetail_20' ) start [2025-01-08 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204302', 'tblTempUsageDetail_20' ) end [2025-01-08 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:14:22] Production.INFO: ==6732== Releasing lock... [2025-01-08 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:14:22] Production.INFO: 48 MB #Memory Used# [2025-01-08 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:15:04 [end_date_ymd] => 2025-01-08 19:15:04 [RateCDR] => 1 ) [2025-01-08 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:15:04' and `end` < '2025-01-08 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:15:18] Production.INFO: count ==2638 [2025-01-08 19:15:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:15:04 - End Time 2025-01-08 19:15:04 [2025-01-08 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204307', 'tblTempUsageDetail_20' ) start [2025-01-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204307', 'tblTempUsageDetail_20' ) end [2025-01-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204307', 'tblTempVendorCDR_20' ) start [2025-01-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204307', 'tblTempVendorCDR_20' ) end [2025-01-08 19:15:19] Production.INFO: ProcessCDR(1,14204307,1,1,2) [2025-01-08 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204307', 'tblTempUsageDetail_20' ) start [2025-01-08 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204307', 'tblTempUsageDetail_20' ) end [2025-01-08 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:15:23] Production.INFO: ==6885== Releasing lock... [2025-01-08 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:15:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-08 19:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:16:04 [end_date_ymd] => 2025-01-08 19:16:04 [RateCDR] => 1 ) [2025-01-08 19:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:16:04' and `end` < '2025-01-08 19:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:16:17] Production.INFO: count ==2630 [2025-01-08 19:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:16:04 - End Time 2025-01-08 19:16:04 [2025-01-08 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204312', 'tblTempUsageDetail_20' ) start [2025-01-08 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204312', 'tblTempUsageDetail_20' ) end [2025-01-08 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204312', 'tblTempVendorCDR_20' ) start [2025-01-08 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204312', 'tblTempVendorCDR_20' ) end [2025-01-08 19:16:18] Production.INFO: ProcessCDR(1,14204312,1,1,2) [2025-01-08 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204312', 'tblTempUsageDetail_20' ) start [2025-01-08 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204312', 'tblTempUsageDetail_20' ) end [2025-01-08 19:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:16:21] Production.INFO: ==6954== Releasing lock... [2025-01-08 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:16:21] Production.INFO: 47.75 MB #Memory Used# [2025-01-08 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:17:05 [end_date_ymd] => 2025-01-08 19:17:05 [RateCDR] => 1 ) [2025-01-08 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:17:05' and `end` < '2025-01-08 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:17:18] Production.INFO: count ==2621 [2025-01-08 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:17:05 - End Time 2025-01-08 19:17:05 [2025-01-08 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204317', 'tblTempUsageDetail_20' ) start [2025-01-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204317', 'tblTempUsageDetail_20' ) end [2025-01-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204317', 'tblTempVendorCDR_20' ) start [2025-01-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204317', 'tblTempVendorCDR_20' ) end [2025-01-08 19:17:19] Production.INFO: ProcessCDR(1,14204317,1,1,2) [2025-01-08 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204317', 'tblTempUsageDetail_20' ) start [2025-01-08 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204317', 'tblTempUsageDetail_20' ) end [2025-01-08 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:17:22] Production.INFO: ==7031== Releasing lock... [2025-01-08 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:17:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-08 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:18:05 [end_date_ymd] => 2025-01-08 19:18:05 [RateCDR] => 1 ) [2025-01-08 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:18:05' and `end` < '2025-01-08 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:18:19] Production.INFO: count ==2600 [2025-01-08 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:18:05 - End Time 2025-01-08 19:18:05 [2025-01-08 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204322', 'tblTempUsageDetail_20' ) start [2025-01-08 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204322', 'tblTempUsageDetail_20' ) end [2025-01-08 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204322', 'tblTempVendorCDR_20' ) start [2025-01-08 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204322', 'tblTempVendorCDR_20' ) end [2025-01-08 19:18:20] Production.INFO: ProcessCDR(1,14204322,1,1,2) [2025-01-08 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204322', 'tblTempUsageDetail_20' ) start [2025-01-08 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204322', 'tblTempUsageDetail_20' ) end [2025-01-08 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:18:23] Production.INFO: ==7102== Releasing lock... [2025-01-08 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:18:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-08 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:19:05 [end_date_ymd] => 2025-01-08 19:19:05 [RateCDR] => 1 ) [2025-01-08 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:19:05' and `end` < '2025-01-08 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:19:18] Production.INFO: count ==2594 [2025-01-08 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:19:05 - End Time 2025-01-08 19:19:05 [2025-01-08 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204327', 'tblTempUsageDetail_20' ) start [2025-01-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204327', 'tblTempUsageDetail_20' ) end [2025-01-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204327', 'tblTempVendorCDR_20' ) start [2025-01-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204327', 'tblTempVendorCDR_20' ) end [2025-01-08 19:19:19] Production.INFO: ProcessCDR(1,14204327,1,1,2) [2025-01-08 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204327', 'tblTempUsageDetail_20' ) start [2025-01-08 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204327', 'tblTempUsageDetail_20' ) end [2025-01-08 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:19:22] Production.INFO: ==7172== Releasing lock... [2025-01-08 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:19:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-08 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:20:06 [end_date_ymd] => 2025-01-08 19:20:06 [RateCDR] => 1 ) [2025-01-08 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:20:06' and `end` < '2025-01-08 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:20:19] Production.INFO: count ==2586 [2025-01-08 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-08 16:20:06 - End Time 2025-01-08 19:20:06 [2025-01-08 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204332', 'tblTempUsageDetail_20' ) start [2025-01-08 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204332', 'tblTempUsageDetail_20' ) end [2025-01-08 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204332', 'tblTempVendorCDR_20' ) start [2025-01-08 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204332', 'tblTempVendorCDR_20' ) end [2025-01-08 19:20:20] Production.INFO: ProcessCDR(1,14204332,1,1,2) [2025-01-08 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204332', 'tblTempUsageDetail_20' ) start [2025-01-08 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204332', 'tblTempUsageDetail_20' ) end [2025-01-08 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:20:23] Production.INFO: ==7251== Releasing lock... [2025-01-08 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:20:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-08 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:21:04 [end_date_ymd] => 2025-01-08 19:21:04 [RateCDR] => 1 ) [2025-01-08 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:21:04' and `end` < '2025-01-08 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:21:20] Production.INFO: count ==2528 [2025-01-08 19:21:20] Production.ERROR: pbx CDR StartTime 2025-01-08 16:21:04 - End Time 2025-01-08 19:21:04 [2025-01-08 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204338', 'tblTempUsageDetail_20' ) start [2025-01-08 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204338', 'tblTempUsageDetail_20' ) end [2025-01-08 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204338', 'tblTempVendorCDR_20' ) start [2025-01-08 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204338', 'tblTempVendorCDR_20' ) end [2025-01-08 19:21:21] Production.INFO: ProcessCDR(1,14204338,1,1,2) [2025-01-08 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204338', 'tblTempUsageDetail_20' ) start [2025-01-08 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204338', 'tblTempUsageDetail_20' ) end [2025-01-08 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:21:25] Production.INFO: ==7361== Releasing lock... [2025-01-08 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:21:25] Production.INFO: 47 MB #Memory Used# [2025-01-08 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:22:05 [end_date_ymd] => 2025-01-08 19:22:05 [RateCDR] => 1 ) [2025-01-08 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:22:05' and `end` < '2025-01-08 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:22:19] Production.INFO: count ==2521 [2025-01-08 19:22:20] Production.ERROR: pbx CDR StartTime 2025-01-08 16:22:05 - End Time 2025-01-08 19:22:05 [2025-01-08 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204343', 'tblTempUsageDetail_20' ) start [2025-01-08 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204343', 'tblTempUsageDetail_20' ) end [2025-01-08 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204343', 'tblTempVendorCDR_20' ) start [2025-01-08 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204343', 'tblTempVendorCDR_20' ) end [2025-01-08 19:22:20] Production.INFO: ProcessCDR(1,14204343,1,1,2) [2025-01-08 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204343', 'tblTempUsageDetail_20' ) start [2025-01-08 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204343', 'tblTempUsageDetail_20' ) end [2025-01-08 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:22:23] Production.INFO: ==7433== Releasing lock... [2025-01-08 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:22:23] Production.INFO: 47 MB #Memory Used# [2025-01-08 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:23:04 [end_date_ymd] => 2025-01-08 19:23:04 [RateCDR] => 1 ) [2025-01-08 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:23:04' and `end` < '2025-01-08 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:23:18] Production.INFO: count ==2513 [2025-01-08 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:23:04 - End Time 2025-01-08 19:23:04 [2025-01-08 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204348', 'tblTempUsageDetail_20' ) start [2025-01-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204348', 'tblTempUsageDetail_20' ) end [2025-01-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204348', 'tblTempVendorCDR_20' ) start [2025-01-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204348', 'tblTempVendorCDR_20' ) end [2025-01-08 19:23:19] Production.INFO: ProcessCDR(1,14204348,1,1,2) [2025-01-08 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204348', 'tblTempUsageDetail_20' ) start [2025-01-08 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204348', 'tblTempUsageDetail_20' ) end [2025-01-08 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:23:23] Production.INFO: ==7507== Releasing lock... [2025-01-08 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:23:23] Production.INFO: 47 MB #Memory Used# [2025-01-08 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:24:05 [end_date_ymd] => 2025-01-08 19:24:05 [RateCDR] => 1 ) [2025-01-08 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:24:05' and `end` < '2025-01-08 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:24:18] Production.INFO: count ==2497 [2025-01-08 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:24:05 - End Time 2025-01-08 19:24:05 [2025-01-08 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204353', 'tblTempUsageDetail_20' ) start [2025-01-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204353', 'tblTempUsageDetail_20' ) end [2025-01-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204353', 'tblTempVendorCDR_20' ) start [2025-01-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204353', 'tblTempVendorCDR_20' ) end [2025-01-08 19:24:19] Production.INFO: ProcessCDR(1,14204353,1,1,2) [2025-01-08 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204353', 'tblTempUsageDetail_20' ) start [2025-01-08 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204353', 'tblTempUsageDetail_20' ) end [2025-01-08 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:24:23] Production.INFO: ==7578== Releasing lock... [2025-01-08 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:24:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-08 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:25:04 [end_date_ymd] => 2025-01-08 19:25:04 [RateCDR] => 1 ) [2025-01-08 19:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:25:04' and `end` < '2025-01-08 19:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:25:17] Production.INFO: count ==2476 [2025-01-08 19:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:25:04 - End Time 2025-01-08 19:25:04 [2025-01-08 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204358', 'tblTempUsageDetail_20' ) start [2025-01-08 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204358', 'tblTempUsageDetail_20' ) end [2025-01-08 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204358', 'tblTempVendorCDR_20' ) start [2025-01-08 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204358', 'tblTempVendorCDR_20' ) end [2025-01-08 19:25:18] Production.INFO: ProcessCDR(1,14204358,1,1,2) [2025-01-08 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204358', 'tblTempUsageDetail_20' ) start [2025-01-08 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204358', 'tblTempUsageDetail_20' ) end [2025-01-08 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:25:21] Production.INFO: ==7649== Releasing lock... [2025-01-08 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:25:21] Production.INFO: 47 MB #Memory Used# [2025-01-08 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:26:05 [end_date_ymd] => 2025-01-08 19:26:05 [RateCDR] => 1 ) [2025-01-08 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:26:05' and `end` < '2025-01-08 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:26:18] Production.INFO: count ==2455 [2025-01-08 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:26:05 - End Time 2025-01-08 19:26:05 [2025-01-08 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204363', 'tblTempUsageDetail_20' ) start [2025-01-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204363', 'tblTempUsageDetail_20' ) end [2025-01-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204363', 'tblTempVendorCDR_20' ) start [2025-01-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204363', 'tblTempVendorCDR_20' ) end [2025-01-08 19:26:19] Production.INFO: ProcessCDR(1,14204363,1,1,2) [2025-01-08 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204363', 'tblTempUsageDetail_20' ) start [2025-01-08 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204363', 'tblTempUsageDetail_20' ) end [2025-01-08 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:26:22] Production.INFO: ==7723== Releasing lock... [2025-01-08 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:26:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-08 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:27:05 [end_date_ymd] => 2025-01-08 19:27:05 [RateCDR] => 1 ) [2025-01-08 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:27:05' and `end` < '2025-01-08 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:27:18] Production.INFO: count ==2440 [2025-01-08 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:27:05 - End Time 2025-01-08 19:27:05 [2025-01-08 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204368', 'tblTempUsageDetail_20' ) start [2025-01-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204368', 'tblTempUsageDetail_20' ) end [2025-01-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204368', 'tblTempVendorCDR_20' ) start [2025-01-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204368', 'tblTempVendorCDR_20' ) end [2025-01-08 19:27:19] Production.INFO: ProcessCDR(1,14204368,1,1,2) [2025-01-08 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204368', 'tblTempUsageDetail_20' ) start [2025-01-08 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204368', 'tblTempUsageDetail_20' ) end [2025-01-08 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:27:23] Production.INFO: ==7800== Releasing lock... [2025-01-08 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:27:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-08 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:28:04 [end_date_ymd] => 2025-01-08 19:28:04 [RateCDR] => 1 ) [2025-01-08 19:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:28:04' and `end` < '2025-01-08 19:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:28:17] Production.INFO: count ==2427 [2025-01-08 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:28:04 - End Time 2025-01-08 19:28:04 [2025-01-08 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204373', 'tblTempUsageDetail_20' ) start [2025-01-08 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204373', 'tblTempUsageDetail_20' ) end [2025-01-08 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204373', 'tblTempVendorCDR_20' ) start [2025-01-08 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204373', 'tblTempVendorCDR_20' ) end [2025-01-08 19:28:18] Production.INFO: ProcessCDR(1,14204373,1,1,2) [2025-01-08 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204373', 'tblTempUsageDetail_20' ) start [2025-01-08 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204373', 'tblTempUsageDetail_20' ) end [2025-01-08 19:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:28:21] Production.INFO: ==7870== Releasing lock... [2025-01-08 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:28:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-08 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:29:05 [end_date_ymd] => 2025-01-08 19:29:05 [RateCDR] => 1 ) [2025-01-08 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:29:05' and `end` < '2025-01-08 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:29:18] Production.INFO: count ==2432 [2025-01-08 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:29:05 - End Time 2025-01-08 19:29:05 [2025-01-08 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204378', 'tblTempUsageDetail_20' ) start [2025-01-08 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204378', 'tblTempUsageDetail_20' ) end [2025-01-08 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204378', 'tblTempVendorCDR_20' ) start [2025-01-08 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204378', 'tblTempVendorCDR_20' ) end [2025-01-08 19:29:19] Production.INFO: ProcessCDR(1,14204378,1,1,2) [2025-01-08 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204378', 'tblTempUsageDetail_20' ) start [2025-01-08 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204378', 'tblTempUsageDetail_20' ) end [2025-01-08 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:29:24] Production.INFO: ==7941== Releasing lock... [2025-01-08 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:29:24] Production.INFO: 46.25 MB #Memory Used# [2025-01-08 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:30:05 [end_date_ymd] => 2025-01-08 19:30:05 [RateCDR] => 1 ) [2025-01-08 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:30:05' and `end` < '2025-01-08 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:30:18] Production.INFO: count ==2433 [2025-01-08 19:30:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:30:05 - End Time 2025-01-08 19:30:05 [2025-01-08 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204383', 'tblTempUsageDetail_20' ) start [2025-01-08 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204383', 'tblTempUsageDetail_20' ) end [2025-01-08 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204383', 'tblTempVendorCDR_20' ) start [2025-01-08 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204383', 'tblTempVendorCDR_20' ) end [2025-01-08 19:30:18] Production.INFO: ProcessCDR(1,14204383,1,1,2) [2025-01-08 19:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204383', 'tblTempUsageDetail_20' ) start [2025-01-08 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204383', 'tblTempUsageDetail_20' ) end [2025-01-08 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:30:23] Production.INFO: ==8017== Releasing lock... [2025-01-08 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:30:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-08 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:31:05 [end_date_ymd] => 2025-01-08 19:31:05 [RateCDR] => 1 ) [2025-01-08 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:31:05' and `end` < '2025-01-08 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:31:18] Production.INFO: count ==2407 [2025-01-08 19:31:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:31:05 - End Time 2025-01-08 19:31:05 [2025-01-08 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204389', 'tblTempUsageDetail_20' ) start [2025-01-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204389', 'tblTempUsageDetail_20' ) end [2025-01-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204389', 'tblTempVendorCDR_20' ) start [2025-01-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204389', 'tblTempVendorCDR_20' ) end [2025-01-08 19:31:19] Production.INFO: ProcessCDR(1,14204389,1,1,2) [2025-01-08 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204389', 'tblTempUsageDetail_20' ) start [2025-01-08 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204389', 'tblTempUsageDetail_20' ) end [2025-01-08 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:31:22] Production.INFO: ==8092== Releasing lock... [2025-01-08 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:31:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-08 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:32:05 [end_date_ymd] => 2025-01-08 19:32:05 [RateCDR] => 1 ) [2025-01-08 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:32:05' and `end` < '2025-01-08 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:32:18] Production.INFO: count ==2391 [2025-01-08 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:32:05 - End Time 2025-01-08 19:32:05 [2025-01-08 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204394', 'tblTempUsageDetail_20' ) start [2025-01-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204394', 'tblTempUsageDetail_20' ) end [2025-01-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204394', 'tblTempVendorCDR_20' ) start [2025-01-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204394', 'tblTempVendorCDR_20' ) end [2025-01-08 19:32:19] Production.INFO: ProcessCDR(1,14204394,1,1,2) [2025-01-08 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204394', 'tblTempUsageDetail_20' ) start [2025-01-08 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204394', 'tblTempUsageDetail_20' ) end [2025-01-08 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:32:22] Production.INFO: ==8164== Releasing lock... [2025-01-08 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:32:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-08 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:33:04 [end_date_ymd] => 2025-01-08 19:33:04 [RateCDR] => 1 ) [2025-01-08 19:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:33:04' and `end` < '2025-01-08 19:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:33:17] Production.INFO: count ==2392 [2025-01-08 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:33:04 - End Time 2025-01-08 19:33:04 [2025-01-08 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204399', 'tblTempUsageDetail_20' ) start [2025-01-08 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204399', 'tblTempUsageDetail_20' ) end [2025-01-08 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204399', 'tblTempVendorCDR_20' ) start [2025-01-08 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204399', 'tblTempVendorCDR_20' ) end [2025-01-08 19:33:18] Production.INFO: ProcessCDR(1,14204399,1,1,2) [2025-01-08 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204399', 'tblTempUsageDetail_20' ) start [2025-01-08 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204399', 'tblTempUsageDetail_20' ) end [2025-01-08 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:33:21] Production.INFO: ==8233== Releasing lock... [2025-01-08 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:33:21] Production.INFO: 46 MB #Memory Used# [2025-01-08 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:34:05 [end_date_ymd] => 2025-01-08 19:34:05 [RateCDR] => 1 ) [2025-01-08 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:34:05' and `end` < '2025-01-08 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:34:19] Production.INFO: count ==2389 [2025-01-08 19:34:20] Production.ERROR: pbx CDR StartTime 2025-01-08 16:34:05 - End Time 2025-01-08 19:34:05 [2025-01-08 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204404', 'tblTempUsageDetail_20' ) start [2025-01-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204404', 'tblTempUsageDetail_20' ) end [2025-01-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204404', 'tblTempVendorCDR_20' ) start [2025-01-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204404', 'tblTempVendorCDR_20' ) end [2025-01-08 19:34:20] Production.INFO: ProcessCDR(1,14204404,1,1,2) [2025-01-08 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204404', 'tblTempUsageDetail_20' ) start [2025-01-08 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204404', 'tblTempUsageDetail_20' ) end [2025-01-08 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:34:24] Production.INFO: ==8305== Releasing lock... [2025-01-08 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:34:24] Production.INFO: 46 MB #Memory Used# [2025-01-08 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:35:04 [end_date_ymd] => 2025-01-08 19:35:04 [RateCDR] => 1 ) [2025-01-08 19:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:35:04' and `end` < '2025-01-08 19:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:35:18] Production.INFO: count ==2371 [2025-01-08 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:35:04 - End Time 2025-01-08 19:35:04 [2025-01-08 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204409', 'tblTempUsageDetail_20' ) start [2025-01-08 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204409', 'tblTempUsageDetail_20' ) end [2025-01-08 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204409', 'tblTempVendorCDR_20' ) start [2025-01-08 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204409', 'tblTempVendorCDR_20' ) end [2025-01-08 19:35:18] Production.INFO: ProcessCDR(1,14204409,1,1,2) [2025-01-08 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204409', 'tblTempUsageDetail_20' ) start [2025-01-08 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204409', 'tblTempUsageDetail_20' ) end [2025-01-08 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:35:23] Production.INFO: ==8374== Releasing lock... [2025-01-08 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:35:23] Production.INFO: 45.75 MB #Memory Used# [2025-01-08 19:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:36:04 [end_date_ymd] => 2025-01-08 19:36:04 [RateCDR] => 1 ) [2025-01-08 19:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:36:04' and `end` < '2025-01-08 19:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:36:18] Production.INFO: count ==2358 [2025-01-08 19:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:36:04 - End Time 2025-01-08 19:36:04 [2025-01-08 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204414', 'tblTempUsageDetail_20' ) start [2025-01-08 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204414', 'tblTempUsageDetail_20' ) end [2025-01-08 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204414', 'tblTempVendorCDR_20' ) start [2025-01-08 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204414', 'tblTempVendorCDR_20' ) end [2025-01-08 19:36:18] Production.INFO: ProcessCDR(1,14204414,1,1,2) [2025-01-08 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204414', 'tblTempUsageDetail_20' ) start [2025-01-08 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204414', 'tblTempUsageDetail_20' ) end [2025-01-08 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:36:22] Production.INFO: ==8448== Releasing lock... [2025-01-08 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:36:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-08 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:37:05 [end_date_ymd] => 2025-01-08 19:37:05 [RateCDR] => 1 ) [2025-01-08 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:37:05' and `end` < '2025-01-08 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:37:19] Production.INFO: count ==2339 [2025-01-08 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:37:05 - End Time 2025-01-08 19:37:05 [2025-01-08 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204419', 'tblTempUsageDetail_20' ) start [2025-01-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204419', 'tblTempUsageDetail_20' ) end [2025-01-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204419', 'tblTempVendorCDR_20' ) start [2025-01-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204419', 'tblTempVendorCDR_20' ) end [2025-01-08 19:37:19] Production.INFO: ProcessCDR(1,14204419,1,1,2) [2025-01-08 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204419', 'tblTempUsageDetail_20' ) start [2025-01-08 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204419', 'tblTempUsageDetail_20' ) end [2025-01-08 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:37:24] Production.INFO: ==8557== Releasing lock... [2025-01-08 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:37:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-08 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:38:04 [end_date_ymd] => 2025-01-08 19:38:04 [RateCDR] => 1 ) [2025-01-08 19:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:38:04' and `end` < '2025-01-08 19:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:38:19] Production.INFO: count ==2295 [2025-01-08 19:38:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:38:04 - End Time 2025-01-08 19:38:04 [2025-01-08 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204424', 'tblTempUsageDetail_20' ) start [2025-01-08 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204424', 'tblTempUsageDetail_20' ) end [2025-01-08 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204424', 'tblTempVendorCDR_20' ) start [2025-01-08 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204424', 'tblTempVendorCDR_20' ) end [2025-01-08 19:38:19] Production.INFO: ProcessCDR(1,14204424,1,1,2) [2025-01-08 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204424', 'tblTempUsageDetail_20' ) start [2025-01-08 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204424', 'tblTempUsageDetail_20' ) end [2025-01-08 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:38:22] Production.INFO: ==8628== Releasing lock... [2025-01-08 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:38:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-08 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:39:05 [end_date_ymd] => 2025-01-08 19:39:05 [RateCDR] => 1 ) [2025-01-08 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:39:05' and `end` < '2025-01-08 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:39:18] Production.INFO: count ==2287 [2025-01-08 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:39:05 - End Time 2025-01-08 19:39:05 [2025-01-08 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204429', 'tblTempUsageDetail_20' ) start [2025-01-08 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204429', 'tblTempUsageDetail_20' ) end [2025-01-08 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204429', 'tblTempVendorCDR_20' ) start [2025-01-08 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204429', 'tblTempVendorCDR_20' ) end [2025-01-08 19:39:19] Production.INFO: ProcessCDR(1,14204429,1,1,2) [2025-01-08 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204429', 'tblTempUsageDetail_20' ) start [2025-01-08 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204429', 'tblTempUsageDetail_20' ) end [2025-01-08 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:39:22] Production.INFO: ==8699== Releasing lock... [2025-01-08 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:39:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-08 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:40:05 [end_date_ymd] => 2025-01-08 19:40:05 [RateCDR] => 1 ) [2025-01-08 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:40:05' and `end` < '2025-01-08 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:40:18] Production.INFO: count ==2280 [2025-01-08 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:40:05 - End Time 2025-01-08 19:40:05 [2025-01-08 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204435', 'tblTempUsageDetail_20' ) start [2025-01-08 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204435', 'tblTempUsageDetail_20' ) end [2025-01-08 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204435', 'tblTempVendorCDR_20' ) start [2025-01-08 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204435', 'tblTempVendorCDR_20' ) end [2025-01-08 19:40:19] Production.INFO: ProcessCDR(1,14204435,1,1,2) [2025-01-08 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204435', 'tblTempUsageDetail_20' ) start [2025-01-08 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204435', 'tblTempUsageDetail_20' ) end [2025-01-08 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:40:23] Production.INFO: ==8773== Releasing lock... [2025-01-08 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:40:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-08 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:41:05 [end_date_ymd] => 2025-01-08 19:41:05 [RateCDR] => 1 ) [2025-01-08 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:41:05' and `end` < '2025-01-08 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:41:18] Production.INFO: count ==2231 [2025-01-08 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:41:05 - End Time 2025-01-08 19:41:05 [2025-01-08 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204440', 'tblTempUsageDetail_20' ) start [2025-01-08 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204440', 'tblTempUsageDetail_20' ) end [2025-01-08 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204440', 'tblTempVendorCDR_20' ) start [2025-01-08 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204440', 'tblTempVendorCDR_20' ) end [2025-01-08 19:41:19] Production.INFO: ProcessCDR(1,14204440,1,1,2) [2025-01-08 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204440', 'tblTempUsageDetail_20' ) start [2025-01-08 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204440', 'tblTempUsageDetail_20' ) end [2025-01-08 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:41:24] Production.INFO: ==8854== Releasing lock... [2025-01-08 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:41:24] Production.INFO: 44.75 MB #Memory Used# [2025-01-08 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:42:04 [end_date_ymd] => 2025-01-08 19:42:04 [RateCDR] => 1 ) [2025-01-08 19:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:42:04' and `end` < '2025-01-08 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:42:18] Production.INFO: count ==2226 [2025-01-08 19:42:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:42:04 - End Time 2025-01-08 19:42:04 [2025-01-08 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204445', 'tblTempUsageDetail_20' ) start [2025-01-08 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204445', 'tblTempUsageDetail_20' ) end [2025-01-08 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204445', 'tblTempVendorCDR_20' ) start [2025-01-08 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204445', 'tblTempVendorCDR_20' ) end [2025-01-08 19:42:18] Production.INFO: ProcessCDR(1,14204445,1,1,2) [2025-01-08 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204445', 'tblTempUsageDetail_20' ) start [2025-01-08 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204445', 'tblTempUsageDetail_20' ) end [2025-01-08 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:42:21] Production.INFO: ==8935== Releasing lock... [2025-01-08 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:42:21] Production.INFO: 44.75 MB #Memory Used# [2025-01-08 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:43:05 [end_date_ymd] => 2025-01-08 19:43:05 [RateCDR] => 1 ) [2025-01-08 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:43:05' and `end` < '2025-01-08 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:43:18] Production.INFO: count ==2217 [2025-01-08 19:43:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:43:05 - End Time 2025-01-08 19:43:05 [2025-01-08 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204450', 'tblTempUsageDetail_20' ) start [2025-01-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204450', 'tblTempUsageDetail_20' ) end [2025-01-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204450', 'tblTempVendorCDR_20' ) start [2025-01-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204450', 'tblTempVendorCDR_20' ) end [2025-01-08 19:43:19] Production.INFO: ProcessCDR(1,14204450,1,1,2) [2025-01-08 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204450', 'tblTempUsageDetail_20' ) start [2025-01-08 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204450', 'tblTempUsageDetail_20' ) end [2025-01-08 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:43:23] Production.INFO: ==9014== Releasing lock... [2025-01-08 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:43:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-08 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:44:05 [end_date_ymd] => 2025-01-08 19:44:05 [RateCDR] => 1 ) [2025-01-08 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:44:05' and `end` < '2025-01-08 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:44:20] Production.INFO: count ==2202 [2025-01-08 19:44:20] Production.ERROR: pbx CDR StartTime 2025-01-08 16:44:05 - End Time 2025-01-08 19:44:05 [2025-01-08 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204455', 'tblTempUsageDetail_20' ) start [2025-01-08 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204455', 'tblTempUsageDetail_20' ) end [2025-01-08 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204455', 'tblTempVendorCDR_20' ) start [2025-01-08 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204455', 'tblTempVendorCDR_20' ) end [2025-01-08 19:44:20] Production.INFO: ProcessCDR(1,14204455,1,1,2) [2025-01-08 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204455', 'tblTempUsageDetail_20' ) start [2025-01-08 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204455', 'tblTempUsageDetail_20' ) end [2025-01-08 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:44:23] Production.INFO: ==9095== Releasing lock... [2025-01-08 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:44:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-08 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:45:04 [end_date_ymd] => 2025-01-08 19:45:04 [RateCDR] => 1 ) [2025-01-08 19:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:45:04' and `end` < '2025-01-08 19:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:45:18] Production.INFO: count ==2198 [2025-01-08 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:45:04 - End Time 2025-01-08 19:45:04 [2025-01-08 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204460', 'tblTempUsageDetail_20' ) start [2025-01-08 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204460', 'tblTempUsageDetail_20' ) end [2025-01-08 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204460', 'tblTempVendorCDR_20' ) start [2025-01-08 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204460', 'tblTempVendorCDR_20' ) end [2025-01-08 19:45:18] Production.INFO: ProcessCDR(1,14204460,1,1,2) [2025-01-08 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204460', 'tblTempUsageDetail_20' ) start [2025-01-08 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204460', 'tblTempUsageDetail_20' ) end [2025-01-08 19:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:45:21] Production.INFO: ==9174== Releasing lock... [2025-01-08 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:45:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-08 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:46:05 [end_date_ymd] => 2025-01-08 19:46:05 [RateCDR] => 1 ) [2025-01-08 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:46:05' and `end` < '2025-01-08 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:46:18] Production.INFO: count ==2179 [2025-01-08 19:46:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:46:05 - End Time 2025-01-08 19:46:05 [2025-01-08 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204465', 'tblTempUsageDetail_20' ) start [2025-01-08 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204465', 'tblTempUsageDetail_20' ) end [2025-01-08 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204465', 'tblTempVendorCDR_20' ) start [2025-01-08 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204465', 'tblTempVendorCDR_20' ) end [2025-01-08 19:46:18] Production.INFO: ProcessCDR(1,14204465,1,1,2) [2025-01-08 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204465', 'tblTempUsageDetail_20' ) start [2025-01-08 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204465', 'tblTempUsageDetail_20' ) end [2025-01-08 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:46:22] Production.INFO: ==9253== Releasing lock... [2025-01-08 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:46:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-08 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:47:04 [end_date_ymd] => 2025-01-08 19:47:04 [RateCDR] => 1 ) [2025-01-08 19:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:47:04' and `end` < '2025-01-08 19:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:47:18] Production.INFO: count ==2170 [2025-01-08 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:47:04 - End Time 2025-01-08 19:47:04 [2025-01-08 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204470', 'tblTempUsageDetail_20' ) start [2025-01-08 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204470', 'tblTempUsageDetail_20' ) end [2025-01-08 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204470', 'tblTempVendorCDR_20' ) start [2025-01-08 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204470', 'tblTempVendorCDR_20' ) end [2025-01-08 19:47:18] Production.INFO: ProcessCDR(1,14204470,1,1,2) [2025-01-08 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204470', 'tblTempUsageDetail_20' ) start [2025-01-08 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204470', 'tblTempUsageDetail_20' ) end [2025-01-08 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:47:21] Production.INFO: ==9335== Releasing lock... [2025-01-08 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:47:21] Production.INFO: 44.5 MB #Memory Used# [2025-01-08 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:48:05 [end_date_ymd] => 2025-01-08 19:48:05 [RateCDR] => 1 ) [2025-01-08 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:48:05' and `end` < '2025-01-08 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:48:19] Production.INFO: count ==2164 [2025-01-08 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:48:05 - End Time 2025-01-08 19:48:05 [2025-01-08 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204475', 'tblTempUsageDetail_20' ) start [2025-01-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204475', 'tblTempUsageDetail_20' ) end [2025-01-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204475', 'tblTempVendorCDR_20' ) start [2025-01-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204475', 'tblTempVendorCDR_20' ) end [2025-01-08 19:48:19] Production.INFO: ProcessCDR(1,14204475,1,1,2) [2025-01-08 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204475', 'tblTempUsageDetail_20' ) start [2025-01-08 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204475', 'tblTempUsageDetail_20' ) end [2025-01-08 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:48:22] Production.INFO: ==9420== Releasing lock... [2025-01-08 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:48:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-08 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:49:04 [end_date_ymd] => 2025-01-08 19:49:04 [RateCDR] => 1 ) [2025-01-08 19:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:49:04' and `end` < '2025-01-08 19:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:49:17] Production.INFO: count ==2160 [2025-01-08 19:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:49:04 - End Time 2025-01-08 19:49:04 [2025-01-08 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204480', 'tblTempUsageDetail_20' ) start [2025-01-08 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204480', 'tblTempUsageDetail_20' ) end [2025-01-08 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204480', 'tblTempVendorCDR_20' ) start [2025-01-08 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204480', 'tblTempVendorCDR_20' ) end [2025-01-08 19:49:18] Production.INFO: ProcessCDR(1,14204480,1,1,2) [2025-01-08 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204480', 'tblTempUsageDetail_20' ) start [2025-01-08 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204480', 'tblTempUsageDetail_20' ) end [2025-01-08 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:49:21] Production.INFO: ==9504== Releasing lock... [2025-01-08 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:49:21] Production.INFO: 44.25 MB #Memory Used# [2025-01-08 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:50:05 [end_date_ymd] => 2025-01-08 19:50:05 [RateCDR] => 1 ) [2025-01-08 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:50:05' and `end` < '2025-01-08 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:50:19] Production.INFO: count ==2146 [2025-01-08 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:50:05 - End Time 2025-01-08 19:50:05 [2025-01-08 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204484', 'tblTempUsageDetail_20' ) start [2025-01-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204484', 'tblTempUsageDetail_20' ) end [2025-01-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204484', 'tblTempVendorCDR_20' ) start [2025-01-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204484', 'tblTempVendorCDR_20' ) end [2025-01-08 19:50:19] Production.INFO: ProcessCDR(1,14204484,1,1,2) [2025-01-08 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204484', 'tblTempUsageDetail_20' ) start [2025-01-08 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204484', 'tblTempUsageDetail_20' ) end [2025-01-08 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:50:23] Production.INFO: ==9589== Releasing lock... [2025-01-08 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:50:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-08 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:51:04 [end_date_ymd] => 2025-01-08 19:51:04 [RateCDR] => 1 ) [2025-01-08 19:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:51:04' and `end` < '2025-01-08 19:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:51:18] Production.INFO: count ==2105 [2025-01-08 19:51:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:51:04 - End Time 2025-01-08 19:51:04 [2025-01-08 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204491', 'tblTempUsageDetail_20' ) start [2025-01-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204491', 'tblTempUsageDetail_20' ) end [2025-01-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204491', 'tblTempVendorCDR_20' ) start [2025-01-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204491', 'tblTempVendorCDR_20' ) end [2025-01-08 19:51:18] Production.INFO: ProcessCDR(1,14204491,1,1,2) [2025-01-08 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204491', 'tblTempUsageDetail_20' ) start [2025-01-08 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204491', 'tblTempUsageDetail_20' ) end [2025-01-08 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:51:21] Production.INFO: ==9680== Releasing lock... [2025-01-08 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:51:21] Production.INFO: 43.75 MB #Memory Used# [2025-01-08 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:52:05 [end_date_ymd] => 2025-01-08 19:52:05 [RateCDR] => 1 ) [2025-01-08 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:52:05' and `end` < '2025-01-08 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:52:20] Production.INFO: count ==2100 [2025-01-08 19:52:21] Production.ERROR: pbx CDR StartTime 2025-01-08 16:52:05 - End Time 2025-01-08 19:52:05 [2025-01-08 19:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204496', 'tblTempUsageDetail_20' ) start [2025-01-08 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204496', 'tblTempUsageDetail_20' ) end [2025-01-08 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204496', 'tblTempVendorCDR_20' ) start [2025-01-08 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204496', 'tblTempVendorCDR_20' ) end [2025-01-08 19:52:21] Production.INFO: ProcessCDR(1,14204496,1,1,2) [2025-01-08 19:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204496', 'tblTempUsageDetail_20' ) start [2025-01-08 19:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204496', 'tblTempUsageDetail_20' ) end [2025-01-08 19:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:52:25] Production.INFO: ==9815== Releasing lock... [2025-01-08 19:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:52:25] Production.INFO: 44 MB #Memory Used# [2025-01-08 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:53:05 [end_date_ymd] => 2025-01-08 19:53:05 [RateCDR] => 1 ) [2025-01-08 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:53:05' and `end` < '2025-01-08 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:53:18] Production.INFO: count ==2088 [2025-01-08 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:53:05 - End Time 2025-01-08 19:53:05 [2025-01-08 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204501', 'tblTempUsageDetail_20' ) start [2025-01-08 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204501', 'tblTempUsageDetail_20' ) end [2025-01-08 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204501', 'tblTempVendorCDR_20' ) start [2025-01-08 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204501', 'tblTempVendorCDR_20' ) end [2025-01-08 19:53:19] Production.INFO: ProcessCDR(1,14204501,1,1,2) [2025-01-08 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204501', 'tblTempUsageDetail_20' ) start [2025-01-08 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204501', 'tblTempUsageDetail_20' ) end [2025-01-08 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:53:23] Production.INFO: ==9912== Releasing lock... [2025-01-08 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:53:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-08 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:54:04 [end_date_ymd] => 2025-01-08 19:54:04 [RateCDR] => 1 ) [2025-01-08 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:54:04' and `end` < '2025-01-08 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:54:18] Production.INFO: count ==2074 [2025-01-08 19:54:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:54:04 - End Time 2025-01-08 19:54:04 [2025-01-08 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204506', 'tblTempUsageDetail_20' ) start [2025-01-08 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204506', 'tblTempUsageDetail_20' ) end [2025-01-08 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204506', 'tblTempVendorCDR_20' ) start [2025-01-08 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204506', 'tblTempVendorCDR_20' ) end [2025-01-08 19:54:19] Production.INFO: ProcessCDR(1,14204506,1,1,2) [2025-01-08 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204506', 'tblTempUsageDetail_20' ) start [2025-01-08 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204506', 'tblTempUsageDetail_20' ) end [2025-01-08 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:54:23] Production.INFO: ==10008== Releasing lock... [2025-01-08 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:54:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-08 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:55:05 [end_date_ymd] => 2025-01-08 19:55:05 [RateCDR] => 1 ) [2025-01-08 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:55:05' and `end` < '2025-01-08 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:55:18] Production.INFO: count ==2064 [2025-01-08 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:55:05 - End Time 2025-01-08 19:55:05 [2025-01-08 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204511', 'tblTempUsageDetail_20' ) start [2025-01-08 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204511', 'tblTempUsageDetail_20' ) end [2025-01-08 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204511', 'tblTempVendorCDR_20' ) start [2025-01-08 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204511', 'tblTempVendorCDR_20' ) end [2025-01-08 19:55:18] Production.INFO: ProcessCDR(1,14204511,1,1,2) [2025-01-08 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204511', 'tblTempUsageDetail_20' ) start [2025-01-08 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204511', 'tblTempUsageDetail_20' ) end [2025-01-08 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:55:21] Production.INFO: ==10109== Releasing lock... [2025-01-08 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:55:21] Production.INFO: 43.5 MB #Memory Used# [2025-01-08 19:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:56:04 [end_date_ymd] => 2025-01-08 19:56:04 [RateCDR] => 1 ) [2025-01-08 19:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:56:04' and `end` < '2025-01-08 19:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:56:19] Production.INFO: count ==2050 [2025-01-08 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-08 16:56:04 - End Time 2025-01-08 19:56:04 [2025-01-08 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204516', 'tblTempUsageDetail_20' ) start [2025-01-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204516', 'tblTempUsageDetail_20' ) end [2025-01-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204516', 'tblTempVendorCDR_20' ) start [2025-01-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204516', 'tblTempVendorCDR_20' ) end [2025-01-08 19:56:19] Production.INFO: ProcessCDR(1,14204516,1,1,2) [2025-01-08 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204516', 'tblTempUsageDetail_20' ) start [2025-01-08 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204516', 'tblTempUsageDetail_20' ) end [2025-01-08 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:56:22] Production.INFO: ==10205== Releasing lock... [2025-01-08 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:56:22] Production.INFO: 43.5 MB #Memory Used# [2025-01-08 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:57:05 [end_date_ymd] => 2025-01-08 19:57:05 [RateCDR] => 1 ) [2025-01-08 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:57:05' and `end` < '2025-01-08 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:57:19] Production.INFO: count ==2017 [2025-01-08 19:57:20] Production.ERROR: pbx CDR StartTime 2025-01-08 16:57:05 - End Time 2025-01-08 19:57:05 [2025-01-08 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204521', 'tblTempUsageDetail_20' ) start [2025-01-08 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204521', 'tblTempUsageDetail_20' ) end [2025-01-08 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204521', 'tblTempVendorCDR_20' ) start [2025-01-08 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204521', 'tblTempVendorCDR_20' ) end [2025-01-08 19:57:20] Production.INFO: ProcessCDR(1,14204521,1,1,2) [2025-01-08 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204521', 'tblTempUsageDetail_20' ) start [2025-01-08 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204521', 'tblTempUsageDetail_20' ) end [2025-01-08 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:57:23] Production.INFO: ==10302== Releasing lock... [2025-01-08 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:57:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-08 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:58:04 [end_date_ymd] => 2025-01-08 19:58:04 [RateCDR] => 1 ) [2025-01-08 19:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:58:04' and `end` < '2025-01-08 19:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:58:17] Production.INFO: count ==1991 [2025-01-08 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:58:04 - End Time 2025-01-08 19:58:04 [2025-01-08 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204526', 'tblTempUsageDetail_20' ) start [2025-01-08 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204526', 'tblTempUsageDetail_20' ) end [2025-01-08 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204526', 'tblTempVendorCDR_20' ) start [2025-01-08 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204526', 'tblTempVendorCDR_20' ) end [2025-01-08 19:58:18] Production.INFO: ProcessCDR(1,14204526,1,1,2) [2025-01-08 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204526', 'tblTempUsageDetail_20' ) start [2025-01-08 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204526', 'tblTempUsageDetail_20' ) end [2025-01-08 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:58:23] Production.INFO: ==10399== Releasing lock... [2025-01-08 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:58:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-08 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 16:59:05 [end_date_ymd] => 2025-01-08 19:59:05 [RateCDR] => 1 ) [2025-01-08 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 16:59:05' and `end` < '2025-01-08 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 19:59:18] Production.INFO: count ==1984 [2025-01-08 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-08 16:59:05 - End Time 2025-01-08 19:59:05 [2025-01-08 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204531', 'tblTempUsageDetail_20' ) start [2025-01-08 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204531', 'tblTempUsageDetail_20' ) end [2025-01-08 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204531', 'tblTempVendorCDR_20' ) start [2025-01-08 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204531', 'tblTempVendorCDR_20' ) end [2025-01-08 19:59:18] Production.INFO: ProcessCDR(1,14204531,1,1,2) [2025-01-08 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204531', 'tblTempUsageDetail_20' ) start [2025-01-08 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204531', 'tblTempUsageDetail_20' ) end [2025-01-08 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 19:59:22] Production.INFO: ==10493== Releasing lock... [2025-01-08 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 19:59:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-08 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:00:06 [end_date_ymd] => 2025-01-08 20:00:06 [RateCDR] => 1 ) [2025-01-08 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:00:06' and `end` < '2025-01-08 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:00:19] Production.INFO: count ==1975 [2025-01-08 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:00:06 - End Time 2025-01-08 20:00:06 [2025-01-08 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204537', 'tblTempUsageDetail_20' ) start [2025-01-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204537', 'tblTempUsageDetail_20' ) end [2025-01-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204537', 'tblTempVendorCDR_20' ) start [2025-01-08 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204537', 'tblTempVendorCDR_20' ) end [2025-01-08 20:00:19] Production.INFO: ProcessCDR(1,14204537,1,1,2) [2025-01-08 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204537', 'tblTempUsageDetail_20' ) start [2025-01-08 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204537', 'tblTempUsageDetail_20' ) end [2025-01-08 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:00:24] Production.INFO: ==10589== Releasing lock... [2025-01-08 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:00:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-08 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:01:05 [end_date_ymd] => 2025-01-08 20:01:05 [RateCDR] => 1 ) [2025-01-08 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:01:05' and `end` < '2025-01-08 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:01:19] Production.INFO: count ==1926 [2025-01-08 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:01:05 - End Time 2025-01-08 20:01:05 [2025-01-08 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204542', 'tblTempUsageDetail_20' ) start [2025-01-08 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204542', 'tblTempUsageDetail_20' ) end [2025-01-08 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204542', 'tblTempVendorCDR_20' ) start [2025-01-08 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204542', 'tblTempVendorCDR_20' ) end [2025-01-08 20:01:19] Production.INFO: ProcessCDR(1,14204542,1,1,2) [2025-01-08 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204542', 'tblTempUsageDetail_20' ) start [2025-01-08 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204542', 'tblTempUsageDetail_20' ) end [2025-01-08 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:01:23] Production.INFO: ==10729== Releasing lock... [2025-01-08 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:01:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:02:05 [end_date_ymd] => 2025-01-08 20:02:05 [RateCDR] => 1 ) [2025-01-08 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:02:05' and `end` < '2025-01-08 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:02:18] Production.INFO: count ==1927 [2025-01-08 20:02:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:02:05 - End Time 2025-01-08 20:02:05 [2025-01-08 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204547', 'tblTempUsageDetail_20' ) start [2025-01-08 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204547', 'tblTempUsageDetail_20' ) end [2025-01-08 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204547', 'tblTempVendorCDR_20' ) start [2025-01-08 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204547', 'tblTempVendorCDR_20' ) end [2025-01-08 20:02:19] Production.INFO: ProcessCDR(1,14204547,1,1,2) [2025-01-08 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204547', 'tblTempUsageDetail_20' ) start [2025-01-08 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204547', 'tblTempUsageDetail_20' ) end [2025-01-08 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:02:24] Production.INFO: ==10817== Releasing lock... [2025-01-08 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:02:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:03:05 [end_date_ymd] => 2025-01-08 20:03:05 [RateCDR] => 1 ) [2025-01-08 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:03:05' and `end` < '2025-01-08 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:03:18] Production.INFO: count ==1923 [2025-01-08 20:03:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:03:05 - End Time 2025-01-08 20:03:05 [2025-01-08 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204552', 'tblTempUsageDetail_20' ) start [2025-01-08 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204552', 'tblTempUsageDetail_20' ) end [2025-01-08 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204552', 'tblTempVendorCDR_20' ) start [2025-01-08 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204552', 'tblTempVendorCDR_20' ) end [2025-01-08 20:03:19] Production.INFO: ProcessCDR(1,14204552,1,1,2) [2025-01-08 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204552', 'tblTempUsageDetail_20' ) start [2025-01-08 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204552', 'tblTempUsageDetail_20' ) end [2025-01-08 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:03:22] Production.INFO: ==10904== Releasing lock... [2025-01-08 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:03:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:04:05 [end_date_ymd] => 2025-01-08 20:04:05 [RateCDR] => 1 ) [2025-01-08 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:04:05' and `end` < '2025-01-08 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:04:18] Production.INFO: count ==1919 [2025-01-08 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:04:05 - End Time 2025-01-08 20:04:05 [2025-01-08 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204557', 'tblTempUsageDetail_20' ) start [2025-01-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204557', 'tblTempUsageDetail_20' ) end [2025-01-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204557', 'tblTempVendorCDR_20' ) start [2025-01-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204557', 'tblTempVendorCDR_20' ) end [2025-01-08 20:04:19] Production.INFO: ProcessCDR(1,14204557,1,1,2) [2025-01-08 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204557', 'tblTempUsageDetail_20' ) start [2025-01-08 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204557', 'tblTempUsageDetail_20' ) end [2025-01-08 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:04:22] Production.INFO: ==10993== Releasing lock... [2025-01-08 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:04:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:05:04 [end_date_ymd] => 2025-01-08 20:05:04 [RateCDR] => 1 ) [2025-01-08 20:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:05:04' and `end` < '2025-01-08 20:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:05:17] Production.INFO: count ==1911 [2025-01-08 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:05:04 - End Time 2025-01-08 20:05:04 [2025-01-08 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204562', 'tblTempUsageDetail_20' ) start [2025-01-08 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204562', 'tblTempUsageDetail_20' ) end [2025-01-08 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204562', 'tblTempVendorCDR_20' ) start [2025-01-08 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204562', 'tblTempVendorCDR_20' ) end [2025-01-08 20:05:18] Production.INFO: ProcessCDR(1,14204562,1,1,2) [2025-01-08 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204562', 'tblTempUsageDetail_20' ) start [2025-01-08 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204562', 'tblTempUsageDetail_20' ) end [2025-01-08 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:05:21] Production.INFO: ==11081== Releasing lock... [2025-01-08 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:05:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-08 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:06:05 [end_date_ymd] => 2025-01-08 20:06:05 [RateCDR] => 1 ) [2025-01-08 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:06:05' and `end` < '2025-01-08 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:06:18] Production.INFO: count ==1901 [2025-01-08 20:06:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:06:05 - End Time 2025-01-08 20:06:05 [2025-01-08 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204567', 'tblTempUsageDetail_20' ) start [2025-01-08 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204567', 'tblTempUsageDetail_20' ) end [2025-01-08 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204567', 'tblTempVendorCDR_20' ) start [2025-01-08 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204567', 'tblTempVendorCDR_20' ) end [2025-01-08 20:06:18] Production.INFO: ProcessCDR(1,14204567,1,1,2) [2025-01-08 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204567', 'tblTempUsageDetail_20' ) start [2025-01-08 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204567', 'tblTempUsageDetail_20' ) end [2025-01-08 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:06:22] Production.INFO: ==11170== Releasing lock... [2025-01-08 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:06:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:07:04 [end_date_ymd] => 2025-01-08 20:07:04 [RateCDR] => 1 ) [2025-01-08 20:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:07:04' and `end` < '2025-01-08 20:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:07:18] Production.INFO: count ==1882 [2025-01-08 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:07:04 - End Time 2025-01-08 20:07:04 [2025-01-08 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204572', 'tblTempUsageDetail_20' ) start [2025-01-08 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204572', 'tblTempUsageDetail_20' ) end [2025-01-08 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204572', 'tblTempVendorCDR_20' ) start [2025-01-08 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204572', 'tblTempVendorCDR_20' ) end [2025-01-08 20:07:19] Production.INFO: ProcessCDR(1,14204572,1,1,2) [2025-01-08 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204572', 'tblTempUsageDetail_20' ) start [2025-01-08 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204572', 'tblTempUsageDetail_20' ) end [2025-01-08 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:07:22] Production.INFO: ==11255== Releasing lock... [2025-01-08 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:07:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-08 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:08:04 [end_date_ymd] => 2025-01-08 20:08:04 [RateCDR] => 1 ) [2025-01-08 20:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:08:04' and `end` < '2025-01-08 20:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:08:18] Production.INFO: count ==1876 [2025-01-08 20:08:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:08:04 - End Time 2025-01-08 20:08:04 [2025-01-08 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204577', 'tblTempUsageDetail_20' ) start [2025-01-08 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204577', 'tblTempUsageDetail_20' ) end [2025-01-08 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204577', 'tblTempVendorCDR_20' ) start [2025-01-08 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204577', 'tblTempVendorCDR_20' ) end [2025-01-08 20:08:18] Production.INFO: ProcessCDR(1,14204577,1,1,2) [2025-01-08 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204577', 'tblTempUsageDetail_20' ) start [2025-01-08 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204577', 'tblTempUsageDetail_20' ) end [2025-01-08 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:08:21] Production.INFO: ==11380== Releasing lock... [2025-01-08 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:08:21] Production.INFO: 41.75 MB #Memory Used# [2025-01-08 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:09:05 [end_date_ymd] => 2025-01-08 20:09:05 [RateCDR] => 1 ) [2025-01-08 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:09:05' and `end` < '2025-01-08 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:09:19] Production.INFO: count ==1865 [2025-01-08 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:09:05 - End Time 2025-01-08 20:09:05 [2025-01-08 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204582', 'tblTempUsageDetail_20' ) start [2025-01-08 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204582', 'tblTempUsageDetail_20' ) end [2025-01-08 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204582', 'tblTempVendorCDR_20' ) start [2025-01-08 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204582', 'tblTempVendorCDR_20' ) end [2025-01-08 20:09:19] Production.INFO: ProcessCDR(1,14204582,1,1,2) [2025-01-08 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204582', 'tblTempUsageDetail_20' ) start [2025-01-08 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204582', 'tblTempUsageDetail_20' ) end [2025-01-08 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:09:22] Production.INFO: ==11460== Releasing lock... [2025-01-08 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:09:22] Production.INFO: 42 MB #Memory Used# [2025-01-08 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:10:05 [end_date_ymd] => 2025-01-08 20:10:05 [RateCDR] => 1 ) [2025-01-08 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:10:05' and `end` < '2025-01-08 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:10:18] Production.INFO: count ==1860 [2025-01-08 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:10:05 - End Time 2025-01-08 20:10:05 [2025-01-08 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204588', 'tblTempUsageDetail_20' ) start [2025-01-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204588', 'tblTempUsageDetail_20' ) end [2025-01-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204588', 'tblTempVendorCDR_20' ) start [2025-01-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204588', 'tblTempVendorCDR_20' ) end [2025-01-08 20:10:19] Production.INFO: ProcessCDR(1,14204588,1,1,2) [2025-01-08 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204588', 'tblTempUsageDetail_20' ) start [2025-01-08 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204588', 'tblTempUsageDetail_20' ) end [2025-01-08 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:10:22] Production.INFO: ==11546== Releasing lock... [2025-01-08 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:10:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-08 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:11:05 [end_date_ymd] => 2025-01-08 20:11:05 [RateCDR] => 1 ) [2025-01-08 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:11:05' and `end` < '2025-01-08 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:11:18] Production.INFO: count ==1823 [2025-01-08 20:11:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:11:05 - End Time 2025-01-08 20:11:05 [2025-01-08 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204593', 'tblTempUsageDetail_20' ) start [2025-01-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204593', 'tblTempUsageDetail_20' ) end [2025-01-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204593', 'tblTempVendorCDR_20' ) start [2025-01-08 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204593', 'tblTempVendorCDR_20' ) end [2025-01-08 20:11:19] Production.INFO: ProcessCDR(1,14204593,1,1,2) [2025-01-08 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204593', 'tblTempUsageDetail_20' ) start [2025-01-08 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204593', 'tblTempUsageDetail_20' ) end [2025-01-08 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:11:22] Production.INFO: ==11632== Releasing lock... [2025-01-08 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:11:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-08 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:12:05 [end_date_ymd] => 2025-01-08 20:12:05 [RateCDR] => 1 ) [2025-01-08 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:12:05' and `end` < '2025-01-08 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:12:18] Production.INFO: count ==1820 [2025-01-08 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:12:05 - End Time 2025-01-08 20:12:05 [2025-01-08 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204598', 'tblTempUsageDetail_20' ) start [2025-01-08 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204598', 'tblTempUsageDetail_20' ) end [2025-01-08 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204598', 'tblTempVendorCDR_20' ) start [2025-01-08 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204598', 'tblTempVendorCDR_20' ) end [2025-01-08 20:12:18] Production.INFO: ProcessCDR(1,14204598,1,1,2) [2025-01-08 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204598', 'tblTempUsageDetail_20' ) start [2025-01-08 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204598', 'tblTempUsageDetail_20' ) end [2025-01-08 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:12:22] Production.INFO: ==11706== Releasing lock... [2025-01-08 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:12:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-08 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:13:05 [end_date_ymd] => 2025-01-08 20:13:05 [RateCDR] => 1 ) [2025-01-08 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:13:05' and `end` < '2025-01-08 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:13:18] Production.INFO: count ==1816 [2025-01-08 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:13:05 - End Time 2025-01-08 20:13:05 [2025-01-08 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204603', 'tblTempUsageDetail_20' ) start [2025-01-08 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204603', 'tblTempUsageDetail_20' ) end [2025-01-08 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204603', 'tblTempVendorCDR_20' ) start [2025-01-08 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204603', 'tblTempVendorCDR_20' ) end [2025-01-08 20:13:19] Production.INFO: ProcessCDR(1,14204603,1,1,2) [2025-01-08 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204603', 'tblTempUsageDetail_20' ) start [2025-01-08 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204603', 'tblTempUsageDetail_20' ) end [2025-01-08 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:13:22] Production.INFO: ==11784== Releasing lock... [2025-01-08 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:13:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-08 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:14:05 [end_date_ymd] => 2025-01-08 20:14:05 [RateCDR] => 1 ) [2025-01-08 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:14:05' and `end` < '2025-01-08 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:14:18] Production.INFO: count ==1798 [2025-01-08 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:14:05 - End Time 2025-01-08 20:14:05 [2025-01-08 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204608', 'tblTempUsageDetail_20' ) start [2025-01-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204608', 'tblTempUsageDetail_20' ) end [2025-01-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204608', 'tblTempVendorCDR_20' ) start [2025-01-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204608', 'tblTempVendorCDR_20' ) end [2025-01-08 20:14:19] Production.INFO: ProcessCDR(1,14204608,1,1,2) [2025-01-08 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204608', 'tblTempUsageDetail_20' ) start [2025-01-08 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204608', 'tblTempUsageDetail_20' ) end [2025-01-08 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:14:22] Production.INFO: ==11859== Releasing lock... [2025-01-08 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:14:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-08 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:15:05 [end_date_ymd] => 2025-01-08 20:15:05 [RateCDR] => 1 ) [2025-01-08 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:15:05' and `end` < '2025-01-08 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:15:18] Production.INFO: count ==1790 [2025-01-08 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:15:05 - End Time 2025-01-08 20:15:05 [2025-01-08 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204613', 'tblTempUsageDetail_20' ) start [2025-01-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204613', 'tblTempUsageDetail_20' ) end [2025-01-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204613', 'tblTempVendorCDR_20' ) start [2025-01-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204613', 'tblTempVendorCDR_20' ) end [2025-01-08 20:15:18] Production.INFO: ProcessCDR(1,14204613,1,1,2) [2025-01-08 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204613', 'tblTempUsageDetail_20' ) start [2025-01-08 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204613', 'tblTempUsageDetail_20' ) end [2025-01-08 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:15:21] Production.INFO: ==11931== Releasing lock... [2025-01-08 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:15:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-08 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:16:04 [end_date_ymd] => 2025-01-08 20:16:04 [RateCDR] => 1 ) [2025-01-08 20:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:16:04' and `end` < '2025-01-08 20:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:16:18] Production.INFO: count ==1768 [2025-01-08 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:16:04 - End Time 2025-01-08 20:16:04 [2025-01-08 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204618', 'tblTempUsageDetail_20' ) start [2025-01-08 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204618', 'tblTempUsageDetail_20' ) end [2025-01-08 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204618', 'tblTempVendorCDR_20' ) start [2025-01-08 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204618', 'tblTempVendorCDR_20' ) end [2025-01-08 20:16:19] Production.INFO: ProcessCDR(1,14204618,1,1,2) [2025-01-08 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204618', 'tblTempUsageDetail_20' ) start [2025-01-08 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204618', 'tblTempUsageDetail_20' ) end [2025-01-08 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:16:22] Production.INFO: ==12005== Releasing lock... [2025-01-08 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:16:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-08 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:17:05 [end_date_ymd] => 2025-01-08 20:17:05 [RateCDR] => 1 ) [2025-01-08 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:17:05' and `end` < '2025-01-08 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:17:18] Production.INFO: count ==1755 [2025-01-08 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:17:05 - End Time 2025-01-08 20:17:05 [2025-01-08 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204623', 'tblTempUsageDetail_20' ) start [2025-01-08 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204623', 'tblTempUsageDetail_20' ) end [2025-01-08 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204623', 'tblTempVendorCDR_20' ) start [2025-01-08 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204623', 'tblTempVendorCDR_20' ) end [2025-01-08 20:17:18] Production.INFO: ProcessCDR(1,14204623,1,1,2) [2025-01-08 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204623', 'tblTempUsageDetail_20' ) start [2025-01-08 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204623', 'tblTempUsageDetail_20' ) end [2025-01-08 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:17:21] Production.INFO: ==12086== Releasing lock... [2025-01-08 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:17:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-08 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:18:04 [end_date_ymd] => 2025-01-08 20:18:04 [RateCDR] => 1 ) [2025-01-08 20:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:18:04' and `end` < '2025-01-08 20:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:18:18] Production.INFO: count ==1754 [2025-01-08 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:18:04 - End Time 2025-01-08 20:18:04 [2025-01-08 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204628', 'tblTempUsageDetail_20' ) start [2025-01-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204628', 'tblTempUsageDetail_20' ) end [2025-01-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204628', 'tblTempVendorCDR_20' ) start [2025-01-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204628', 'tblTempVendorCDR_20' ) end [2025-01-08 20:18:18] Production.INFO: ProcessCDR(1,14204628,1,1,2) [2025-01-08 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204628', 'tblTempUsageDetail_20' ) start [2025-01-08 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204628', 'tblTempUsageDetail_20' ) end [2025-01-08 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:18:21] Production.INFO: ==12170== Releasing lock... [2025-01-08 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:18:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-08 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:19:05 [end_date_ymd] => 2025-01-08 20:19:05 [RateCDR] => 1 ) [2025-01-08 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:19:05' and `end` < '2025-01-08 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:19:18] Production.INFO: count ==1753 [2025-01-08 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:19:05 - End Time 2025-01-08 20:19:05 [2025-01-08 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204633', 'tblTempUsageDetail_20' ) start [2025-01-08 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204633', 'tblTempUsageDetail_20' ) end [2025-01-08 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204633', 'tblTempVendorCDR_20' ) start [2025-01-08 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204633', 'tblTempVendorCDR_20' ) end [2025-01-08 20:19:18] Production.INFO: ProcessCDR(1,14204633,1,1,2) [2025-01-08 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204633', 'tblTempUsageDetail_20' ) start [2025-01-08 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204633', 'tblTempUsageDetail_20' ) end [2025-01-08 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:19:21] Production.INFO: ==12242== Releasing lock... [2025-01-08 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:19:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-08 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:20:05 [end_date_ymd] => 2025-01-08 20:20:05 [RateCDR] => 1 ) [2025-01-08 20:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:20:05' and `end` < '2025-01-08 20:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:20:18] Production.INFO: count ==1745 [2025-01-08 20:20:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:20:05 - End Time 2025-01-08 20:20:05 [2025-01-08 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204638', 'tblTempUsageDetail_20' ) start [2025-01-08 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204638', 'tblTempUsageDetail_20' ) end [2025-01-08 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204638', 'tblTempVendorCDR_20' ) start [2025-01-08 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204638', 'tblTempVendorCDR_20' ) end [2025-01-08 20:20:18] Production.INFO: ProcessCDR(1,14204638,1,1,2) [2025-01-08 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204638', 'tblTempUsageDetail_20' ) start [2025-01-08 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204638', 'tblTempUsageDetail_20' ) end [2025-01-08 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:20:23] Production.INFO: ==12314== Releasing lock... [2025-01-08 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-08 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:21:05 [end_date_ymd] => 2025-01-08 20:21:05 [RateCDR] => 1 ) [2025-01-08 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:21:05' and `end` < '2025-01-08 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:21:18] Production.INFO: count ==1701 [2025-01-08 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:21:05 - End Time 2025-01-08 20:21:05 [2025-01-08 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204644', 'tblTempUsageDetail_20' ) start [2025-01-08 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204644', 'tblTempUsageDetail_20' ) end [2025-01-08 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204644', 'tblTempVendorCDR_20' ) start [2025-01-08 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204644', 'tblTempVendorCDR_20' ) end [2025-01-08 20:21:18] Production.INFO: ProcessCDR(1,14204644,1,1,2) [2025-01-08 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204644', 'tblTempUsageDetail_20' ) start [2025-01-08 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204644', 'tblTempUsageDetail_20' ) end [2025-01-08 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:21:22] Production.INFO: ==12391== Releasing lock... [2025-01-08 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:21:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-08 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:22:05 [end_date_ymd] => 2025-01-08 20:22:05 [RateCDR] => 1 ) [2025-01-08 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:22:05' and `end` < '2025-01-08 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:22:18] Production.INFO: count ==1700 [2025-01-08 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:22:05 - End Time 2025-01-08 20:22:05 [2025-01-08 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204649', 'tblTempUsageDetail_20' ) start [2025-01-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204649', 'tblTempUsageDetail_20' ) end [2025-01-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204649', 'tblTempVendorCDR_20' ) start [2025-01-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204649', 'tblTempVendorCDR_20' ) end [2025-01-08 20:22:18] Production.INFO: ProcessCDR(1,14204649,1,1,2) [2025-01-08 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204649', 'tblTempUsageDetail_20' ) start [2025-01-08 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204649', 'tblTempUsageDetail_20' ) end [2025-01-08 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:22:21] Production.INFO: ==12465== Releasing lock... [2025-01-08 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:22:21] Production.INFO: 41 MB #Memory Used# [2025-01-08 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:23:05 [end_date_ymd] => 2025-01-08 20:23:05 [RateCDR] => 1 ) [2025-01-08 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:23:05' and `end` < '2025-01-08 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:23:18] Production.INFO: count ==1698 [2025-01-08 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:23:05 - End Time 2025-01-08 20:23:05 [2025-01-08 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204654', 'tblTempUsageDetail_20' ) start [2025-01-08 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204654', 'tblTempUsageDetail_20' ) end [2025-01-08 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204654', 'tblTempVendorCDR_20' ) start [2025-01-08 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204654', 'tblTempVendorCDR_20' ) end [2025-01-08 20:23:18] Production.INFO: ProcessCDR(1,14204654,1,1,2) [2025-01-08 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204654', 'tblTempUsageDetail_20' ) start [2025-01-08 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204654', 'tblTempUsageDetail_20' ) end [2025-01-08 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:23:22] Production.INFO: ==12538== Releasing lock... [2025-01-08 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:23:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-08 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:24:05 [end_date_ymd] => 2025-01-08 20:24:05 [RateCDR] => 1 ) [2025-01-08 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:24:05' and `end` < '2025-01-08 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:24:18] Production.INFO: count ==1696 [2025-01-08 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:24:05 - End Time 2025-01-08 20:24:05 [2025-01-08 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204659', 'tblTempUsageDetail_20' ) start [2025-01-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204659', 'tblTempUsageDetail_20' ) end [2025-01-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204659', 'tblTempVendorCDR_20' ) start [2025-01-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204659', 'tblTempVendorCDR_20' ) end [2025-01-08 20:24:18] Production.INFO: ProcessCDR(1,14204659,1,1,2) [2025-01-08 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204659', 'tblTempUsageDetail_20' ) start [2025-01-08 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204659', 'tblTempUsageDetail_20' ) end [2025-01-08 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:24:23] Production.INFO: ==12653== Releasing lock... [2025-01-08 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:24:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-08 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:25:04 [end_date_ymd] => 2025-01-08 20:25:04 [RateCDR] => 1 ) [2025-01-08 20:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:25:04' and `end` < '2025-01-08 20:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:25:17] Production.INFO: count ==1691 [2025-01-08 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:25:04 - End Time 2025-01-08 20:25:04 [2025-01-08 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204664', 'tblTempUsageDetail_20' ) start [2025-01-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204664', 'tblTempUsageDetail_20' ) end [2025-01-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204664', 'tblTempVendorCDR_20' ) start [2025-01-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204664', 'tblTempVendorCDR_20' ) end [2025-01-08 20:25:18] Production.INFO: ProcessCDR(1,14204664,1,1,2) [2025-01-08 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204664', 'tblTempUsageDetail_20' ) start [2025-01-08 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204664', 'tblTempUsageDetail_20' ) end [2025-01-08 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:25:21] Production.INFO: ==12737== Releasing lock... [2025-01-08 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:25:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-08 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:26:05 [end_date_ymd] => 2025-01-08 20:26:05 [RateCDR] => 1 ) [2025-01-08 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:26:05' and `end` < '2025-01-08 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:26:19] Production.INFO: count ==1661 [2025-01-08 20:26:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:26:05 - End Time 2025-01-08 20:26:05 [2025-01-08 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204669', 'tblTempUsageDetail_20' ) start [2025-01-08 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204669', 'tblTempUsageDetail_20' ) end [2025-01-08 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204669', 'tblTempVendorCDR_20' ) start [2025-01-08 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204669', 'tblTempVendorCDR_20' ) end [2025-01-08 20:26:19] Production.INFO: ProcessCDR(1,14204669,1,1,2) [2025-01-08 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204669', 'tblTempUsageDetail_20' ) start [2025-01-08 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204669', 'tblTempUsageDetail_20' ) end [2025-01-08 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:26:23] Production.INFO: ==12808== Releasing lock... [2025-01-08 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:26:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-08 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:27:04 [end_date_ymd] => 2025-01-08 20:27:04 [RateCDR] => 1 ) [2025-01-08 20:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:27:04' and `end` < '2025-01-08 20:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:27:19] Production.INFO: count ==1647 [2025-01-08 20:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:27:04 - End Time 2025-01-08 20:27:04 [2025-01-08 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204674', 'tblTempUsageDetail_20' ) start [2025-01-08 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204674', 'tblTempUsageDetail_20' ) end [2025-01-08 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204674', 'tblTempVendorCDR_20' ) start [2025-01-08 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204674', 'tblTempVendorCDR_20' ) end [2025-01-08 20:27:19] Production.INFO: ProcessCDR(1,14204674,1,1,2) [2025-01-08 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204674', 'tblTempUsageDetail_20' ) start [2025-01-08 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204674', 'tblTempUsageDetail_20' ) end [2025-01-08 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:27:24] Production.INFO: ==12879== Releasing lock... [2025-01-08 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:27:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-08 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:28:05 [end_date_ymd] => 2025-01-08 20:28:05 [RateCDR] => 1 ) [2025-01-08 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:28:05' and `end` < '2025-01-08 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:28:18] Production.INFO: count ==1635 [2025-01-08 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:28:05 - End Time 2025-01-08 20:28:05 [2025-01-08 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204679', 'tblTempUsageDetail_20' ) start [2025-01-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204679', 'tblTempUsageDetail_20' ) end [2025-01-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204679', 'tblTempVendorCDR_20' ) start [2025-01-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204679', 'tblTempVendorCDR_20' ) end [2025-01-08 20:28:18] Production.INFO: ProcessCDR(1,14204679,1,1,2) [2025-01-08 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204679', 'tblTempUsageDetail_20' ) start [2025-01-08 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204679', 'tblTempUsageDetail_20' ) end [2025-01-08 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:28:22] Production.INFO: ==12949== Releasing lock... [2025-01-08 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:28:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-08 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:29:04 [end_date_ymd] => 2025-01-08 20:29:04 [RateCDR] => 1 ) [2025-01-08 20:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:29:04' and `end` < '2025-01-08 20:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:29:17] Production.INFO: count ==1634 [2025-01-08 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:29:04 - End Time 2025-01-08 20:29:04 [2025-01-08 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204684', 'tblTempUsageDetail_20' ) start [2025-01-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204684', 'tblTempUsageDetail_20' ) end [2025-01-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204684', 'tblTempVendorCDR_20' ) start [2025-01-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204684', 'tblTempVendorCDR_20' ) end [2025-01-08 20:29:18] Production.INFO: ProcessCDR(1,14204684,1,1,2) [2025-01-08 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204684', 'tblTempUsageDetail_20' ) start [2025-01-08 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204684', 'tblTempUsageDetail_20' ) end [2025-01-08 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:29:21] Production.INFO: ==13018== Releasing lock... [2025-01-08 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:29:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-08 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:30:05 [end_date_ymd] => 2025-01-08 20:30:05 [RateCDR] => 1 ) [2025-01-08 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:30:05' and `end` < '2025-01-08 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:30:19] Production.INFO: count ==1613 [2025-01-08 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:30:05 - End Time 2025-01-08 20:30:05 [2025-01-08 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204690', 'tblTempUsageDetail_20' ) start [2025-01-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204690', 'tblTempUsageDetail_20' ) end [2025-01-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204690', 'tblTempVendorCDR_20' ) start [2025-01-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204690', 'tblTempVendorCDR_20' ) end [2025-01-08 20:30:19] Production.INFO: ProcessCDR(1,14204690,1,1,2) [2025-01-08 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204690', 'tblTempUsageDetail_20' ) start [2025-01-08 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204690', 'tblTempUsageDetail_20' ) end [2025-01-08 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:30:22] Production.INFO: ==13090== Releasing lock... [2025-01-08 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:30:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-08 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:31:04 [end_date_ymd] => 2025-01-08 20:31:04 [RateCDR] => 1 ) [2025-01-08 20:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:31:04' and `end` < '2025-01-08 20:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:31:17] Production.INFO: count ==1557 [2025-01-08 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:31:04 - End Time 2025-01-08 20:31:04 [2025-01-08 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204695', 'tblTempUsageDetail_20' ) start [2025-01-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204695', 'tblTempUsageDetail_20' ) end [2025-01-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204695', 'tblTempVendorCDR_20' ) start [2025-01-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204695', 'tblTempVendorCDR_20' ) end [2025-01-08 20:31:18] Production.INFO: ProcessCDR(1,14204695,1,1,2) [2025-01-08 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204695', 'tblTempUsageDetail_20' ) start [2025-01-08 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204695', 'tblTempUsageDetail_20' ) end [2025-01-08 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:31:22] Production.INFO: ==13162== Releasing lock... [2025-01-08 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:31:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-08 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:32:05 [end_date_ymd] => 2025-01-08 20:32:05 [RateCDR] => 1 ) [2025-01-08 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:32:05' and `end` < '2025-01-08 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:32:18] Production.INFO: count ==1561 [2025-01-08 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:32:05 - End Time 2025-01-08 20:32:05 [2025-01-08 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204700', 'tblTempUsageDetail_20' ) start [2025-01-08 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204700', 'tblTempUsageDetail_20' ) end [2025-01-08 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204700', 'tblTempVendorCDR_20' ) start [2025-01-08 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204700', 'tblTempVendorCDR_20' ) end [2025-01-08 20:32:19] Production.INFO: ProcessCDR(1,14204700,1,1,2) [2025-01-08 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204700', 'tblTempUsageDetail_20' ) start [2025-01-08 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204700', 'tblTempUsageDetail_20' ) end [2025-01-08 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:32:22] Production.INFO: ==13237== Releasing lock... [2025-01-08 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:32:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-08 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:33:04 [end_date_ymd] => 2025-01-08 20:33:04 [RateCDR] => 1 ) [2025-01-08 20:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:33:04' and `end` < '2025-01-08 20:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:33:17] Production.INFO: count ==1549 [2025-01-08 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:33:04 - End Time 2025-01-08 20:33:04 [2025-01-08 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204705', 'tblTempUsageDetail_20' ) start [2025-01-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204705', 'tblTempUsageDetail_20' ) end [2025-01-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204705', 'tblTempVendorCDR_20' ) start [2025-01-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204705', 'tblTempVendorCDR_20' ) end [2025-01-08 20:33:18] Production.INFO: ProcessCDR(1,14204705,1,1,2) [2025-01-08 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204705', 'tblTempUsageDetail_20' ) start [2025-01-08 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204705', 'tblTempUsageDetail_20' ) end [2025-01-08 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:33:21] Production.INFO: ==13306== Releasing lock... [2025-01-08 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:33:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-08 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:34:05 [end_date_ymd] => 2025-01-08 20:34:05 [RateCDR] => 1 ) [2025-01-08 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:34:05' and `end` < '2025-01-08 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:34:18] Production.INFO: count ==1536 [2025-01-08 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:34:05 - End Time 2025-01-08 20:34:05 [2025-01-08 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204710', 'tblTempUsageDetail_20' ) start [2025-01-08 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204710', 'tblTempUsageDetail_20' ) end [2025-01-08 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204710', 'tblTempVendorCDR_20' ) start [2025-01-08 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204710', 'tblTempVendorCDR_20' ) end [2025-01-08 20:34:18] Production.INFO: ProcessCDR(1,14204710,1,1,2) [2025-01-08 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204710', 'tblTempUsageDetail_20' ) start [2025-01-08 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204710', 'tblTempUsageDetail_20' ) end [2025-01-08 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:34:21] Production.INFO: ==13378== Releasing lock... [2025-01-08 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:34:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-08 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:35:05 [end_date_ymd] => 2025-01-08 20:35:05 [RateCDR] => 1 ) [2025-01-08 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:35:05' and `end` < '2025-01-08 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:35:18] Production.INFO: count ==1542 [2025-01-08 20:35:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:35:05 - End Time 2025-01-08 20:35:05 [2025-01-08 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204715', 'tblTempUsageDetail_20' ) start [2025-01-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204715', 'tblTempUsageDetail_20' ) end [2025-01-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204715', 'tblTempVendorCDR_20' ) start [2025-01-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204715', 'tblTempVendorCDR_20' ) end [2025-01-08 20:35:18] Production.INFO: ProcessCDR(1,14204715,1,1,2) [2025-01-08 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204715', 'tblTempUsageDetail_20' ) start [2025-01-08 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204715', 'tblTempUsageDetail_20' ) end [2025-01-08 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:35:21] Production.INFO: ==13448== Releasing lock... [2025-01-08 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:35:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-08 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:36:05 [end_date_ymd] => 2025-01-08 20:36:05 [RateCDR] => 1 ) [2025-01-08 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:36:05' and `end` < '2025-01-08 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:36:18] Production.INFO: count ==1536 [2025-01-08 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:36:05 - End Time 2025-01-08 20:36:05 [2025-01-08 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204720', 'tblTempUsageDetail_20' ) start [2025-01-08 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204720', 'tblTempUsageDetail_20' ) end [2025-01-08 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204720', 'tblTempVendorCDR_20' ) start [2025-01-08 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204720', 'tblTempVendorCDR_20' ) end [2025-01-08 20:36:18] Production.INFO: ProcessCDR(1,14204720,1,1,2) [2025-01-08 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204720', 'tblTempUsageDetail_20' ) start [2025-01-08 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204720', 'tblTempUsageDetail_20' ) end [2025-01-08 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:36:21] Production.INFO: ==13519== Releasing lock... [2025-01-08 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:36:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-08 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:37:05 [end_date_ymd] => 2025-01-08 20:37:05 [RateCDR] => 1 ) [2025-01-08 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:37:05' and `end` < '2025-01-08 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:37:18] Production.INFO: count ==1525 [2025-01-08 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:37:05 - End Time 2025-01-08 20:37:05 [2025-01-08 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204725', 'tblTempUsageDetail_20' ) start [2025-01-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204725', 'tblTempUsageDetail_20' ) end [2025-01-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204725', 'tblTempVendorCDR_20' ) start [2025-01-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204725', 'tblTempVendorCDR_20' ) end [2025-01-08 20:37:18] Production.INFO: ProcessCDR(1,14204725,1,1,2) [2025-01-08 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204725', 'tblTempUsageDetail_20' ) start [2025-01-08 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204725', 'tblTempUsageDetail_20' ) end [2025-01-08 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:37:23] Production.INFO: ==13589== Releasing lock... [2025-01-08 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:37:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-08 20:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:38:04 [end_date_ymd] => 2025-01-08 20:38:04 [RateCDR] => 1 ) [2025-01-08 20:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:38:04' and `end` < '2025-01-08 20:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:38:17] Production.INFO: count ==1509 [2025-01-08 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:38:04 - End Time 2025-01-08 20:38:04 [2025-01-08 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204730', 'tblTempUsageDetail_20' ) start [2025-01-08 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204730', 'tblTempUsageDetail_20' ) end [2025-01-08 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204730', 'tblTempVendorCDR_20' ) start [2025-01-08 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204730', 'tblTempVendorCDR_20' ) end [2025-01-08 20:38:18] Production.INFO: ProcessCDR(1,14204730,1,1,2) [2025-01-08 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204730', 'tblTempUsageDetail_20' ) start [2025-01-08 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204730', 'tblTempUsageDetail_20' ) end [2025-01-08 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:38:21] Production.INFO: ==13663== Releasing lock... [2025-01-08 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:38:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-08 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:39:05 [end_date_ymd] => 2025-01-08 20:39:05 [RateCDR] => 1 ) [2025-01-08 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:39:05' and `end` < '2025-01-08 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:39:20] Production.INFO: count ==1503 [2025-01-08 20:39:20] Production.ERROR: pbx CDR StartTime 2025-01-08 17:39:05 - End Time 2025-01-08 20:39:05 [2025-01-08 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204735', 'tblTempUsageDetail_20' ) start [2025-01-08 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204735', 'tblTempUsageDetail_20' ) end [2025-01-08 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204735', 'tblTempVendorCDR_20' ) start [2025-01-08 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204735', 'tblTempVendorCDR_20' ) end [2025-01-08 20:39:20] Production.INFO: ProcessCDR(1,14204735,1,1,2) [2025-01-08 20:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204735', 'tblTempUsageDetail_20' ) start [2025-01-08 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204735', 'tblTempUsageDetail_20' ) end [2025-01-08 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:39:23] Production.INFO: ==13773== Releasing lock... [2025-01-08 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:39:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-08 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:40:05 [end_date_ymd] => 2025-01-08 20:40:05 [RateCDR] => 1 ) [2025-01-08 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:40:05' and `end` < '2025-01-08 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:40:18] Production.INFO: count ==1496 [2025-01-08 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:40:05 - End Time 2025-01-08 20:40:05 [2025-01-08 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204740', 'tblTempUsageDetail_20' ) start [2025-01-08 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204740', 'tblTempUsageDetail_20' ) end [2025-01-08 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204740', 'tblTempVendorCDR_20' ) start [2025-01-08 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204740', 'tblTempVendorCDR_20' ) end [2025-01-08 20:40:18] Production.INFO: ProcessCDR(1,14204740,1,1,2) [2025-01-08 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204740', 'tblTempUsageDetail_20' ) start [2025-01-08 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204740', 'tblTempUsageDetail_20' ) end [2025-01-08 20:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:40:21] Production.INFO: ==13858== Releasing lock... [2025-01-08 20:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:40:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-08 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:41:05 [end_date_ymd] => 2025-01-08 20:41:05 [RateCDR] => 1 ) [2025-01-08 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:41:05' and `end` < '2025-01-08 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:41:19] Production.INFO: count ==1463 [2025-01-08 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:41:05 - End Time 2025-01-08 20:41:05 [2025-01-08 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204746', 'tblTempUsageDetail_20' ) start [2025-01-08 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204746', 'tblTempUsageDetail_20' ) end [2025-01-08 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204746', 'tblTempVendorCDR_20' ) start [2025-01-08 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204746', 'tblTempVendorCDR_20' ) end [2025-01-08 20:41:19] Production.INFO: ProcessCDR(1,14204746,1,1,2) [2025-01-08 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204746', 'tblTempUsageDetail_20' ) start [2025-01-08 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204746', 'tblTempUsageDetail_20' ) end [2025-01-08 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:41:23] Production.INFO: ==13933== Releasing lock... [2025-01-08 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:41:23] Production.INFO: 39 MB #Memory Used# [2025-01-08 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:42:05 [end_date_ymd] => 2025-01-08 20:42:05 [RateCDR] => 1 ) [2025-01-08 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:42:05' and `end` < '2025-01-08 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:42:19] Production.INFO: count ==1459 [2025-01-08 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:42:05 - End Time 2025-01-08 20:42:05 [2025-01-08 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204751', 'tblTempUsageDetail_20' ) start [2025-01-08 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204751', 'tblTempUsageDetail_20' ) end [2025-01-08 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204751', 'tblTempVendorCDR_20' ) start [2025-01-08 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204751', 'tblTempVendorCDR_20' ) end [2025-01-08 20:42:19] Production.INFO: ProcessCDR(1,14204751,1,1,2) [2025-01-08 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204751', 'tblTempUsageDetail_20' ) start [2025-01-08 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204751', 'tblTempUsageDetail_20' ) end [2025-01-08 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:42:22] Production.INFO: ==14015== Releasing lock... [2025-01-08 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:42:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-08 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:43:05 [end_date_ymd] => 2025-01-08 20:43:05 [RateCDR] => 1 ) [2025-01-08 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:43:05' and `end` < '2025-01-08 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:43:19] Production.INFO: count ==1456 [2025-01-08 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:43:05 - End Time 2025-01-08 20:43:05 [2025-01-08 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204756', 'tblTempUsageDetail_20' ) start [2025-01-08 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204756', 'tblTempUsageDetail_20' ) end [2025-01-08 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204756', 'tblTempVendorCDR_20' ) start [2025-01-08 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204756', 'tblTempVendorCDR_20' ) end [2025-01-08 20:43:19] Production.INFO: ProcessCDR(1,14204756,1,1,2) [2025-01-08 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204756', 'tblTempUsageDetail_20' ) start [2025-01-08 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204756', 'tblTempUsageDetail_20' ) end [2025-01-08 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:43:23] Production.INFO: ==14101== Releasing lock... [2025-01-08 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:43:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-08 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:44:04 [end_date_ymd] => 2025-01-08 20:44:04 [RateCDR] => 1 ) [2025-01-08 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:44:04' and `end` < '2025-01-08 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:44:17] Production.INFO: count ==1453 [2025-01-08 20:44:17] Production.ERROR: pbx CDR StartTime 2025-01-08 17:44:04 - End Time 2025-01-08 20:44:04 [2025-01-08 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204761', 'tblTempUsageDetail_20' ) start [2025-01-08 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204761', 'tblTempUsageDetail_20' ) end [2025-01-08 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204761', 'tblTempVendorCDR_20' ) start [2025-01-08 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204761', 'tblTempVendorCDR_20' ) end [2025-01-08 20:44:17] Production.INFO: ProcessCDR(1,14204761,1,1,2) [2025-01-08 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204761', 'tblTempUsageDetail_20' ) start [2025-01-08 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204761', 'tblTempUsageDetail_20' ) end [2025-01-08 20:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:44:20] Production.INFO: ==14190== Releasing lock... [2025-01-08 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:44:20] Production.INFO: 39 MB #Memory Used# [2025-01-08 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:45:05 [end_date_ymd] => 2025-01-08 20:45:05 [RateCDR] => 1 ) [2025-01-08 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:45:05' and `end` < '2025-01-08 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:45:18] Production.INFO: count ==1448 [2025-01-08 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:45:05 - End Time 2025-01-08 20:45:05 [2025-01-08 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204766', 'tblTempUsageDetail_20' ) start [2025-01-08 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204766', 'tblTempUsageDetail_20' ) end [2025-01-08 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204766', 'tblTempVendorCDR_20' ) start [2025-01-08 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204766', 'tblTempVendorCDR_20' ) end [2025-01-08 20:45:18] Production.INFO: ProcessCDR(1,14204766,1,1,2) [2025-01-08 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204766', 'tblTempUsageDetail_20' ) start [2025-01-08 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204766', 'tblTempUsageDetail_20' ) end [2025-01-08 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:45:22] Production.INFO: ==14279== Releasing lock... [2025-01-08 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:45:22] Production.INFO: 39 MB #Memory Used# [2025-01-08 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:46:04 [end_date_ymd] => 2025-01-08 20:46:04 [RateCDR] => 1 ) [2025-01-08 20:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:46:04' and `end` < '2025-01-08 20:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:46:17] Production.INFO: count ==1447 [2025-01-08 20:46:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:46:04 - End Time 2025-01-08 20:46:04 [2025-01-08 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204771', 'tblTempUsageDetail_20' ) start [2025-01-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204771', 'tblTempUsageDetail_20' ) end [2025-01-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204771', 'tblTempVendorCDR_20' ) start [2025-01-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204771', 'tblTempVendorCDR_20' ) end [2025-01-08 20:46:18] Production.INFO: ProcessCDR(1,14204771,1,1,2) [2025-01-08 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204771', 'tblTempUsageDetail_20' ) start [2025-01-08 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204771', 'tblTempUsageDetail_20' ) end [2025-01-08 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:46:21] Production.INFO: ==14365== Releasing lock... [2025-01-08 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:46:21] Production.INFO: 39 MB #Memory Used# [2025-01-08 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:47:05 [end_date_ymd] => 2025-01-08 20:47:05 [RateCDR] => 1 ) [2025-01-08 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:47:05' and `end` < '2025-01-08 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:47:18] Production.INFO: count ==1447 [2025-01-08 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:47:05 - End Time 2025-01-08 20:47:05 [2025-01-08 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204776', 'tblTempUsageDetail_20' ) start [2025-01-08 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204776', 'tblTempUsageDetail_20' ) end [2025-01-08 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204776', 'tblTempVendorCDR_20' ) start [2025-01-08 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204776', 'tblTempVendorCDR_20' ) end [2025-01-08 20:47:18] Production.INFO: ProcessCDR(1,14204776,1,1,2) [2025-01-08 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204776', 'tblTempUsageDetail_20' ) start [2025-01-08 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204776', 'tblTempUsageDetail_20' ) end [2025-01-08 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:47:21] Production.INFO: ==14455== Releasing lock... [2025-01-08 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:47:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-08 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:48:05 [end_date_ymd] => 2025-01-08 20:48:05 [RateCDR] => 1 ) [2025-01-08 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:48:05' and `end` < '2025-01-08 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:48:18] Production.INFO: count ==1445 [2025-01-08 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:48:05 - End Time 2025-01-08 20:48:05 [2025-01-08 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204781', 'tblTempUsageDetail_20' ) start [2025-01-08 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204781', 'tblTempUsageDetail_20' ) end [2025-01-08 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204781', 'tblTempVendorCDR_20' ) start [2025-01-08 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204781', 'tblTempVendorCDR_20' ) end [2025-01-08 20:48:19] Production.INFO: ProcessCDR(1,14204781,1,1,2) [2025-01-08 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204781', 'tblTempUsageDetail_20' ) start [2025-01-08 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204781', 'tblTempUsageDetail_20' ) end [2025-01-08 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:48:22] Production.INFO: ==14544== Releasing lock... [2025-01-08 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:48:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-08 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:49:05 [end_date_ymd] => 2025-01-08 20:49:05 [RateCDR] => 1 ) [2025-01-08 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:49:05' and `end` < '2025-01-08 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:49:18] Production.INFO: count ==1442 [2025-01-08 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:49:05 - End Time 2025-01-08 20:49:05 [2025-01-08 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204786', 'tblTempUsageDetail_20' ) start [2025-01-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204786', 'tblTempUsageDetail_20' ) end [2025-01-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204786', 'tblTempVendorCDR_20' ) start [2025-01-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204786', 'tblTempVendorCDR_20' ) end [2025-01-08 20:49:18] Production.INFO: ProcessCDR(1,14204786,1,1,2) [2025-01-08 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204786', 'tblTempUsageDetail_20' ) start [2025-01-08 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204786', 'tblTempUsageDetail_20' ) end [2025-01-08 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:49:21] Production.INFO: ==14631== Releasing lock... [2025-01-08 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:49:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-08 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:50:06 [end_date_ymd] => 2025-01-08 20:50:06 [RateCDR] => 1 ) [2025-01-08 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:50:06' and `end` < '2025-01-08 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:50:19] Production.INFO: count ==1448 [2025-01-08 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:50:06 - End Time 2025-01-08 20:50:06 [2025-01-08 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204792', 'tblTempUsageDetail_20' ) start [2025-01-08 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204792', 'tblTempUsageDetail_20' ) end [2025-01-08 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204792', 'tblTempVendorCDR_20' ) start [2025-01-08 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204792', 'tblTempVendorCDR_20' ) end [2025-01-08 20:50:19] Production.INFO: ProcessCDR(1,14204792,1,1,2) [2025-01-08 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204792', 'tblTempUsageDetail_20' ) start [2025-01-08 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204792', 'tblTempUsageDetail_20' ) end [2025-01-08 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:50:22] Production.INFO: ==14721== Releasing lock... [2025-01-08 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:50:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-08 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:51:04 [end_date_ymd] => 2025-01-08 20:51:04 [RateCDR] => 1 ) [2025-01-08 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:51:04' and `end` < '2025-01-08 20:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:51:18] Production.INFO: count ==1380 [2025-01-08 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:51:04 - End Time 2025-01-08 20:51:04 [2025-01-08 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204797', 'tblTempUsageDetail_20' ) start [2025-01-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204797', 'tblTempUsageDetail_20' ) end [2025-01-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204797', 'tblTempVendorCDR_20' ) start [2025-01-08 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204797', 'tblTempVendorCDR_20' ) end [2025-01-08 20:51:18] Production.INFO: ProcessCDR(1,14204797,1,1,2) [2025-01-08 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204797', 'tblTempUsageDetail_20' ) start [2025-01-08 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204797', 'tblTempUsageDetail_20' ) end [2025-01-08 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:51:21] Production.INFO: ==14811== Releasing lock... [2025-01-08 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:51:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-08 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:52:05 [end_date_ymd] => 2025-01-08 20:52:05 [RateCDR] => 1 ) [2025-01-08 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:52:05' and `end` < '2025-01-08 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:52:18] Production.INFO: count ==1366 [2025-01-08 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:52:05 - End Time 2025-01-08 20:52:05 [2025-01-08 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204802', 'tblTempUsageDetail_20' ) start [2025-01-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204802', 'tblTempUsageDetail_20' ) end [2025-01-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204802', 'tblTempVendorCDR_20' ) start [2025-01-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204802', 'tblTempVendorCDR_20' ) end [2025-01-08 20:52:19] Production.INFO: ProcessCDR(1,14204802,1,1,2) [2025-01-08 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204802', 'tblTempUsageDetail_20' ) start [2025-01-08 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204802', 'tblTempUsageDetail_20' ) end [2025-01-08 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:52:22] Production.INFO: ==14900== Releasing lock... [2025-01-08 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:52:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-08 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:53:05 [end_date_ymd] => 2025-01-08 20:53:05 [RateCDR] => 1 ) [2025-01-08 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:53:05' and `end` < '2025-01-08 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:53:19] Production.INFO: count ==1365 [2025-01-08 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:53:05 - End Time 2025-01-08 20:53:05 [2025-01-08 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204807', 'tblTempUsageDetail_20' ) start [2025-01-08 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204807', 'tblTempUsageDetail_20' ) end [2025-01-08 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204807', 'tblTempVendorCDR_20' ) start [2025-01-08 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204807', 'tblTempVendorCDR_20' ) end [2025-01-08 20:53:19] Production.INFO: ProcessCDR(1,14204807,1,1,2) [2025-01-08 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204807', 'tblTempUsageDetail_20' ) start [2025-01-08 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204807', 'tblTempUsageDetail_20' ) end [2025-01-08 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:53:22] Production.INFO: ==14994== Releasing lock... [2025-01-08 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-08 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:54:05 [end_date_ymd] => 2025-01-08 20:54:05 [RateCDR] => 1 ) [2025-01-08 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:54:05' and `end` < '2025-01-08 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:54:18] Production.INFO: count ==1362 [2025-01-08 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:54:05 - End Time 2025-01-08 20:54:05 [2025-01-08 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204812', 'tblTempUsageDetail_20' ) start [2025-01-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204812', 'tblTempUsageDetail_20' ) end [2025-01-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204812', 'tblTempVendorCDR_20' ) start [2025-01-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204812', 'tblTempVendorCDR_20' ) end [2025-01-08 20:54:19] Production.INFO: ProcessCDR(1,14204812,1,1,2) [2025-01-08 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204812', 'tblTempUsageDetail_20' ) start [2025-01-08 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204812', 'tblTempUsageDetail_20' ) end [2025-01-08 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:54:22] Production.INFO: ==15083== Releasing lock... [2025-01-08 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:54:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-08 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:55:05 [end_date_ymd] => 2025-01-08 20:55:05 [RateCDR] => 1 ) [2025-01-08 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:55:05' and `end` < '2025-01-08 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:55:18] Production.INFO: count ==1356 [2025-01-08 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:55:05 - End Time 2025-01-08 20:55:05 [2025-01-08 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204817', 'tblTempUsageDetail_20' ) start [2025-01-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204817', 'tblTempUsageDetail_20' ) end [2025-01-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204817', 'tblTempVendorCDR_20' ) start [2025-01-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204817', 'tblTempVendorCDR_20' ) end [2025-01-08 20:55:18] Production.INFO: ProcessCDR(1,14204817,1,1,2) [2025-01-08 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204817', 'tblTempUsageDetail_20' ) start [2025-01-08 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204817', 'tblTempUsageDetail_20' ) end [2025-01-08 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:55:21] Production.INFO: ==15215== Releasing lock... [2025-01-08 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:55:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-08 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:56:05 [end_date_ymd] => 2025-01-08 20:56:05 [RateCDR] => 1 ) [2025-01-08 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:56:05' and `end` < '2025-01-08 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:56:18] Production.INFO: count ==1357 [2025-01-08 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-08 17:56:05 - End Time 2025-01-08 20:56:05 [2025-01-08 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204822', 'tblTempUsageDetail_20' ) start [2025-01-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204822', 'tblTempUsageDetail_20' ) end [2025-01-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204822', 'tblTempVendorCDR_20' ) start [2025-01-08 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204822', 'tblTempVendorCDR_20' ) end [2025-01-08 20:56:18] Production.INFO: ProcessCDR(1,14204822,1,1,2) [2025-01-08 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204822', 'tblTempUsageDetail_20' ) start [2025-01-08 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204822', 'tblTempUsageDetail_20' ) end [2025-01-08 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:56:23] Production.INFO: ==15303== Releasing lock... [2025-01-08 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:56:23] Production.INFO: 38 MB #Memory Used# [2025-01-08 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:57:05 [end_date_ymd] => 2025-01-08 20:57:05 [RateCDR] => 1 ) [2025-01-08 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:57:05' and `end` < '2025-01-08 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:57:19] Production.INFO: count ==1342 [2025-01-08 20:57:19] Production.ERROR: pbx CDR StartTime 2025-01-08 17:57:05 - End Time 2025-01-08 20:57:05 [2025-01-08 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204827', 'tblTempUsageDetail_20' ) start [2025-01-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204827', 'tblTempUsageDetail_20' ) end [2025-01-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204827', 'tblTempVendorCDR_20' ) start [2025-01-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204827', 'tblTempVendorCDR_20' ) end [2025-01-08 20:57:19] Production.INFO: ProcessCDR(1,14204827,1,1,2) [2025-01-08 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204827', 'tblTempUsageDetail_20' ) start [2025-01-08 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204827', 'tblTempUsageDetail_20' ) end [2025-01-08 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:57:22] Production.INFO: ==15388== Releasing lock... [2025-01-08 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:57:22] Production.INFO: 38 MB #Memory Used# [2025-01-08 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:58:04 [end_date_ymd] => 2025-01-08 20:58:04 [RateCDR] => 1 ) [2025-01-08 20:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:58:04' and `end` < '2025-01-08 20:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:58:17] Production.INFO: count ==1341 [2025-01-08 20:58:17] Production.ERROR: pbx CDR StartTime 2025-01-08 17:58:04 - End Time 2025-01-08 20:58:04 [2025-01-08 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204832', 'tblTempUsageDetail_20' ) start [2025-01-08 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204832', 'tblTempUsageDetail_20' ) end [2025-01-08 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204832', 'tblTempVendorCDR_20' ) start [2025-01-08 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204832', 'tblTempVendorCDR_20' ) end [2025-01-08 20:58:17] Production.INFO: ProcessCDR(1,14204832,1,1,2) [2025-01-08 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204832', 'tblTempUsageDetail_20' ) start [2025-01-08 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204832', 'tblTempUsageDetail_20' ) end [2025-01-08 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:58:21] Production.INFO: ==15478== Releasing lock... [2025-01-08 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:58:21] Production.INFO: 38 MB #Memory Used# [2025-01-08 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 17:59:05 [end_date_ymd] => 2025-01-08 20:59:05 [RateCDR] => 1 ) [2025-01-08 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 17:59:05' and `end` < '2025-01-08 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 20:59:20] Production.INFO: count ==1338 [2025-01-08 20:59:20] Production.ERROR: pbx CDR StartTime 2025-01-08 17:59:05 - End Time 2025-01-08 20:59:05 [2025-01-08 20:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204837', 'tblTempUsageDetail_20' ) start [2025-01-08 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204837', 'tblTempUsageDetail_20' ) end [2025-01-08 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204837', 'tblTempVendorCDR_20' ) start [2025-01-08 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204837', 'tblTempVendorCDR_20' ) end [2025-01-08 20:59:20] Production.INFO: ProcessCDR(1,14204837,1,1,2) [2025-01-08 20:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204837', 'tblTempUsageDetail_20' ) start [2025-01-08 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204837', 'tblTempUsageDetail_20' ) end [2025-01-08 20:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 20:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 20:59:23] Production.INFO: ==15568== Releasing lock... [2025-01-08 20:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 20:59:23] Production.INFO: 38 MB #Memory Used# [2025-01-08 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:00:06 [end_date_ymd] => 2025-01-08 21:00:06 [RateCDR] => 1 ) [2025-01-08 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:00:06' and `end` < '2025-01-08 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:00:19] Production.INFO: count ==1334 [2025-01-08 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:00:06 - End Time 2025-01-08 21:00:06 [2025-01-08 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204842', 'tblTempUsageDetail_20' ) start [2025-01-08 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204842', 'tblTempUsageDetail_20' ) end [2025-01-08 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204842', 'tblTempVendorCDR_20' ) start [2025-01-08 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204842', 'tblTempVendorCDR_20' ) end [2025-01-08 21:00:19] Production.INFO: ProcessCDR(1,14204842,1,1,2) [2025-01-08 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204842', 'tblTempUsageDetail_20' ) start [2025-01-08 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204842', 'tblTempUsageDetail_20' ) end [2025-01-08 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:00:22] Production.INFO: ==15658== Releasing lock... [2025-01-08 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:00:22] Production.INFO: 38 MB #Memory Used# [2025-01-08 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:01:05 [end_date_ymd] => 2025-01-08 21:01:05 [RateCDR] => 1 ) [2025-01-08 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:01:05' and `end` < '2025-01-08 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:01:19] Production.INFO: count ==1281 [2025-01-08 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:01:05 - End Time 2025-01-08 21:01:05 [2025-01-08 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204848', 'tblTempUsageDetail_20' ) start [2025-01-08 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204848', 'tblTempUsageDetail_20' ) end [2025-01-08 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204848', 'tblTempVendorCDR_20' ) start [2025-01-08 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204848', 'tblTempVendorCDR_20' ) end [2025-01-08 21:01:19] Production.INFO: ProcessCDR(1,14204848,1,1,2) [2025-01-08 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204848', 'tblTempUsageDetail_20' ) start [2025-01-08 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204848', 'tblTempUsageDetail_20' ) end [2025-01-08 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:01:22] Production.INFO: ==15759== Releasing lock... [2025-01-08 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:01:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-08 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:02:05 [end_date_ymd] => 2025-01-08 21:02:05 [RateCDR] => 1 ) [2025-01-08 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:02:05' and `end` < '2025-01-08 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:02:19] Production.INFO: count ==1281 [2025-01-08 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:02:05 - End Time 2025-01-08 21:02:05 [2025-01-08 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204853', 'tblTempUsageDetail_20' ) start [2025-01-08 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204853', 'tblTempUsageDetail_20' ) end [2025-01-08 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204853', 'tblTempVendorCDR_20' ) start [2025-01-08 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204853', 'tblTempVendorCDR_20' ) end [2025-01-08 21:02:19] Production.INFO: ProcessCDR(1,14204853,1,1,2) [2025-01-08 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204853', 'tblTempUsageDetail_20' ) start [2025-01-08 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204853', 'tblTempUsageDetail_20' ) end [2025-01-08 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:02:23] Production.INFO: ==15848== Releasing lock... [2025-01-08 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:02:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-08 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:03:04 [end_date_ymd] => 2025-01-08 21:03:04 [RateCDR] => 1 ) [2025-01-08 21:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:03:04' and `end` < '2025-01-08 21:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:03:17] Production.INFO: count ==1264 [2025-01-08 21:03:17] Production.ERROR: pbx CDR StartTime 2025-01-08 18:03:04 - End Time 2025-01-08 21:03:04 [2025-01-08 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204858', 'tblTempUsageDetail_20' ) start [2025-01-08 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204858', 'tblTempUsageDetail_20' ) end [2025-01-08 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204858', 'tblTempVendorCDR_20' ) start [2025-01-08 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204858', 'tblTempVendorCDR_20' ) end [2025-01-08 21:03:17] Production.INFO: ProcessCDR(1,14204858,1,1,2) [2025-01-08 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204858', 'tblTempUsageDetail_20' ) start [2025-01-08 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204858', 'tblTempUsageDetail_20' ) end [2025-01-08 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:03:21] Production.INFO: ==15931== Releasing lock... [2025-01-08 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:03:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-08 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:04:05 [end_date_ymd] => 2025-01-08 21:04:05 [RateCDR] => 1 ) [2025-01-08 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:04:05' and `end` < '2025-01-08 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:04:18] Production.INFO: count ==1240 [2025-01-08 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:04:05 - End Time 2025-01-08 21:04:05 [2025-01-08 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204863', 'tblTempUsageDetail_20' ) start [2025-01-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204863', 'tblTempUsageDetail_20' ) end [2025-01-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204863', 'tblTempVendorCDR_20' ) start [2025-01-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204863', 'tblTempVendorCDR_20' ) end [2025-01-08 21:04:18] Production.INFO: ProcessCDR(1,14204863,1,1,2) [2025-01-08 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204863', 'tblTempUsageDetail_20' ) start [2025-01-08 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204863', 'tblTempUsageDetail_20' ) end [2025-01-08 21:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:04:21] Production.INFO: ==16014== Releasing lock... [2025-01-08 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:04:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-08 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:05:04 [end_date_ymd] => 2025-01-08 21:05:04 [RateCDR] => 1 ) [2025-01-08 21:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:05:04' and `end` < '2025-01-08 21:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:05:17] Production.INFO: count ==1236 [2025-01-08 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:05:04 - End Time 2025-01-08 21:05:04 [2025-01-08 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204868', 'tblTempUsageDetail_20' ) start [2025-01-08 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204868', 'tblTempUsageDetail_20' ) end [2025-01-08 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204868', 'tblTempVendorCDR_20' ) start [2025-01-08 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204868', 'tblTempVendorCDR_20' ) end [2025-01-08 21:05:18] Production.INFO: ProcessCDR(1,14204868,1,1,2) [2025-01-08 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204868', 'tblTempUsageDetail_20' ) start [2025-01-08 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204868', 'tblTempUsageDetail_20' ) end [2025-01-08 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:05:21] Production.INFO: ==16087== Releasing lock... [2025-01-08 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:05:21] Production.INFO: 37 MB #Memory Used# [2025-01-08 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:06:05 [end_date_ymd] => 2025-01-08 21:06:05 [RateCDR] => 1 ) [2025-01-08 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:06:05' and `end` < '2025-01-08 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:06:18] Production.INFO: count ==1237 [2025-01-08 21:06:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:06:05 - End Time 2025-01-08 21:06:05 [2025-01-08 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204873', 'tblTempUsageDetail_20' ) start [2025-01-08 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204873', 'tblTempUsageDetail_20' ) end [2025-01-08 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204873', 'tblTempVendorCDR_20' ) start [2025-01-08 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204873', 'tblTempVendorCDR_20' ) end [2025-01-08 21:06:18] Production.INFO: ProcessCDR(1,14204873,1,1,2) [2025-01-08 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204873', 'tblTempUsageDetail_20' ) start [2025-01-08 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204873', 'tblTempUsageDetail_20' ) end [2025-01-08 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:06:23] Production.INFO: ==16164== Releasing lock... [2025-01-08 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:06:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-08 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:07:05 [end_date_ymd] => 2025-01-08 21:07:05 [RateCDR] => 1 ) [2025-01-08 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:07:05' and `end` < '2025-01-08 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:07:18] Production.INFO: count ==1243 [2025-01-08 21:07:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:07:05 - End Time 2025-01-08 21:07:05 [2025-01-08 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204878', 'tblTempUsageDetail_20' ) start [2025-01-08 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204878', 'tblTempUsageDetail_20' ) end [2025-01-08 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204878', 'tblTempVendorCDR_20' ) start [2025-01-08 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204878', 'tblTempVendorCDR_20' ) end [2025-01-08 21:07:19] Production.INFO: ProcessCDR(1,14204878,1,1,2) [2025-01-08 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204878', 'tblTempUsageDetail_20' ) start [2025-01-08 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204878', 'tblTempUsageDetail_20' ) end [2025-01-08 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:07:22] Production.INFO: ==16239== Releasing lock... [2025-01-08 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:07:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-08 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:08:05 [end_date_ymd] => 2025-01-08 21:08:05 [RateCDR] => 1 ) [2025-01-08 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:08:05' and `end` < '2025-01-08 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:08:18] Production.INFO: count ==1241 [2025-01-08 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:08:05 - End Time 2025-01-08 21:08:05 [2025-01-08 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204883', 'tblTempUsageDetail_20' ) start [2025-01-08 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204883', 'tblTempUsageDetail_20' ) end [2025-01-08 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204883', 'tblTempVendorCDR_20' ) start [2025-01-08 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204883', 'tblTempVendorCDR_20' ) end [2025-01-08 21:08:19] Production.INFO: ProcessCDR(1,14204883,1,1,2) [2025-01-08 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204883', 'tblTempUsageDetail_20' ) start [2025-01-08 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204883', 'tblTempUsageDetail_20' ) end [2025-01-08 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:08:22] Production.INFO: ==16314== Releasing lock... [2025-01-08 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-08 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:09:05 [end_date_ymd] => 2025-01-08 21:09:05 [RateCDR] => 1 ) [2025-01-08 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:09:05' and `end` < '2025-01-08 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:09:19] Production.INFO: count ==1240 [2025-01-08 21:09:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:09:05 - End Time 2025-01-08 21:09:05 [2025-01-08 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204888', 'tblTempUsageDetail_20' ) start [2025-01-08 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204888', 'tblTempUsageDetail_20' ) end [2025-01-08 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204888', 'tblTempVendorCDR_20' ) start [2025-01-08 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204888', 'tblTempVendorCDR_20' ) end [2025-01-08 21:09:19] Production.INFO: ProcessCDR(1,14204888,1,1,2) [2025-01-08 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204888', 'tblTempUsageDetail_20' ) start [2025-01-08 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204888', 'tblTempUsageDetail_20' ) end [2025-01-08 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:09:23] Production.INFO: ==16397== Releasing lock... [2025-01-08 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:09:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-08 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:10:05 [end_date_ymd] => 2025-01-08 21:10:05 [RateCDR] => 1 ) [2025-01-08 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:10:05' and `end` < '2025-01-08 21:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:10:18] Production.INFO: count ==1234 [2025-01-08 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:10:05 - End Time 2025-01-08 21:10:05 [2025-01-08 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204894', 'tblTempUsageDetail_20' ) start [2025-01-08 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204894', 'tblTempUsageDetail_20' ) end [2025-01-08 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204894', 'tblTempVendorCDR_20' ) start [2025-01-08 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204894', 'tblTempVendorCDR_20' ) end [2025-01-08 21:10:19] Production.INFO: ProcessCDR(1,14204894,1,1,2) [2025-01-08 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204894', 'tblTempUsageDetail_20' ) start [2025-01-08 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204894', 'tblTempUsageDetail_20' ) end [2025-01-08 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:10:22] Production.INFO: ==16508== Releasing lock... [2025-01-08 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:10:22] Production.INFO: 37 MB #Memory Used# [2025-01-08 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:11:05 [end_date_ymd] => 2025-01-08 21:11:05 [RateCDR] => 1 ) [2025-01-08 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:11:05' and `end` < '2025-01-08 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:11:18] Production.INFO: count ==1193 [2025-01-08 21:11:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:11:05 - End Time 2025-01-08 21:11:05 [2025-01-08 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204899', 'tblTempUsageDetail_20' ) start [2025-01-08 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204899', 'tblTempUsageDetail_20' ) end [2025-01-08 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204899', 'tblTempVendorCDR_20' ) start [2025-01-08 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204899', 'tblTempVendorCDR_20' ) end [2025-01-08 21:11:18] Production.INFO: ProcessCDR(1,14204899,1,1,2) [2025-01-08 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204899', 'tblTempUsageDetail_20' ) start [2025-01-08 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204899', 'tblTempUsageDetail_20' ) end [2025-01-08 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:11:22] Production.INFO: ==16585== Releasing lock... [2025-01-08 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:11:22] Production.INFO: 37 MB #Memory Used# [2025-01-08 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:12:04 [end_date_ymd] => 2025-01-08 21:12:04 [RateCDR] => 1 ) [2025-01-08 21:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:12:04' and `end` < '2025-01-08 21:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:12:17] Production.INFO: count ==1190 [2025-01-08 21:12:17] Production.ERROR: pbx CDR StartTime 2025-01-08 18:12:04 - End Time 2025-01-08 21:12:04 [2025-01-08 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204904', 'tblTempUsageDetail_20' ) start [2025-01-08 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204904', 'tblTempUsageDetail_20' ) end [2025-01-08 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204904', 'tblTempVendorCDR_20' ) start [2025-01-08 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204904', 'tblTempVendorCDR_20' ) end [2025-01-08 21:12:17] Production.INFO: ProcessCDR(1,14204904,1,1,2) [2025-01-08 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204904', 'tblTempUsageDetail_20' ) start [2025-01-08 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204904', 'tblTempUsageDetail_20' ) end [2025-01-08 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:12:22] Production.INFO: ==16659== Releasing lock... [2025-01-08 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:12:22] Production.INFO: 37 MB #Memory Used# [2025-01-08 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:13:05 [end_date_ymd] => 2025-01-08 21:13:05 [RateCDR] => 1 ) [2025-01-08 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:13:05' and `end` < '2025-01-08 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:13:18] Production.INFO: count ==1191 [2025-01-08 21:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:13:05 - End Time 2025-01-08 21:13:05 [2025-01-08 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204909', 'tblTempUsageDetail_20' ) start [2025-01-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204909', 'tblTempUsageDetail_20' ) end [2025-01-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204909', 'tblTempVendorCDR_20' ) start [2025-01-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204909', 'tblTempVendorCDR_20' ) end [2025-01-08 21:13:18] Production.INFO: ProcessCDR(1,14204909,1,1,2) [2025-01-08 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204909', 'tblTempUsageDetail_20' ) start [2025-01-08 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204909', 'tblTempUsageDetail_20' ) end [2025-01-08 21:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:13:21] Production.INFO: ==16733== Releasing lock... [2025-01-08 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:13:21] Production.INFO: 37 MB #Memory Used# [2025-01-08 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:14:05 [end_date_ymd] => 2025-01-08 21:14:05 [RateCDR] => 1 ) [2025-01-08 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:14:05' and `end` < '2025-01-08 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:14:18] Production.INFO: count ==1190 [2025-01-08 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:14:05 - End Time 2025-01-08 21:14:05 [2025-01-08 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204914', 'tblTempUsageDetail_20' ) start [2025-01-08 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204914', 'tblTempUsageDetail_20' ) end [2025-01-08 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204914', 'tblTempVendorCDR_20' ) start [2025-01-08 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204914', 'tblTempVendorCDR_20' ) end [2025-01-08 21:14:19] Production.INFO: ProcessCDR(1,14204914,1,1,2) [2025-01-08 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204914', 'tblTempUsageDetail_20' ) start [2025-01-08 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204914', 'tblTempUsageDetail_20' ) end [2025-01-08 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:14:22] Production.INFO: ==16811== Releasing lock... [2025-01-08 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:14:22] Production.INFO: 37 MB #Memory Used# [2025-01-08 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:15:04 [end_date_ymd] => 2025-01-08 21:15:04 [RateCDR] => 1 ) [2025-01-08 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:15:04' and `end` < '2025-01-08 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:15:18] Production.INFO: count ==1176 [2025-01-08 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:15:04 - End Time 2025-01-08 21:15:04 [2025-01-08 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204919', 'tblTempUsageDetail_20' ) start [2025-01-08 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204919', 'tblTempUsageDetail_20' ) end [2025-01-08 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204919', 'tblTempVendorCDR_20' ) start [2025-01-08 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204919', 'tblTempVendorCDR_20' ) end [2025-01-08 21:15:18] Production.INFO: ProcessCDR(1,14204919,1,1,2) [2025-01-08 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204919', 'tblTempUsageDetail_20' ) start [2025-01-08 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204919', 'tblTempUsageDetail_20' ) end [2025-01-08 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:15:21] Production.INFO: ==16886== Releasing lock... [2025-01-08 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:15:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-08 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:16:05 [end_date_ymd] => 2025-01-08 21:16:05 [RateCDR] => 1 ) [2025-01-08 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:16:05' and `end` < '2025-01-08 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:16:18] Production.INFO: count ==1175 [2025-01-08 21:16:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:16:05 - End Time 2025-01-08 21:16:05 [2025-01-08 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204924', 'tblTempUsageDetail_20' ) start [2025-01-08 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204924', 'tblTempUsageDetail_20' ) end [2025-01-08 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204924', 'tblTempVendorCDR_20' ) start [2025-01-08 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204924', 'tblTempVendorCDR_20' ) end [2025-01-08 21:16:19] Production.INFO: ProcessCDR(1,14204924,1,1,2) [2025-01-08 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204924', 'tblTempUsageDetail_20' ) start [2025-01-08 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204924', 'tblTempUsageDetail_20' ) end [2025-01-08 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:16:22] Production.INFO: ==16962== Releasing lock... [2025-01-08 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:16:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:17:04 [end_date_ymd] => 2025-01-08 21:17:04 [RateCDR] => 1 ) [2025-01-08 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:17:04' and `end` < '2025-01-08 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:17:18] Production.INFO: count ==1171 [2025-01-08 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:17:04 - End Time 2025-01-08 21:17:04 [2025-01-08 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204929', 'tblTempUsageDetail_20' ) start [2025-01-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204929', 'tblTempUsageDetail_20' ) end [2025-01-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204929', 'tblTempVendorCDR_20' ) start [2025-01-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204929', 'tblTempVendorCDR_20' ) end [2025-01-08 21:17:18] Production.INFO: ProcessCDR(1,14204929,1,1,2) [2025-01-08 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204929', 'tblTempUsageDetail_20' ) start [2025-01-08 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204929', 'tblTempUsageDetail_20' ) end [2025-01-08 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:17:21] Production.INFO: ==17036== Releasing lock... [2025-01-08 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:17:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:18:05 [end_date_ymd] => 2025-01-08 21:18:05 [RateCDR] => 1 ) [2025-01-08 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:18:05' and `end` < '2025-01-08 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:18:20] Production.INFO: count ==1169 [2025-01-08 21:18:20] Production.ERROR: pbx CDR StartTime 2025-01-08 18:18:05 - End Time 2025-01-08 21:18:05 [2025-01-08 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204934', 'tblTempUsageDetail_20' ) start [2025-01-08 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204934', 'tblTempUsageDetail_20' ) end [2025-01-08 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204934', 'tblTempVendorCDR_20' ) start [2025-01-08 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204934', 'tblTempVendorCDR_20' ) end [2025-01-08 21:18:20] Production.INFO: ProcessCDR(1,14204934,1,1,2) [2025-01-08 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204934', 'tblTempUsageDetail_20' ) start [2025-01-08 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204934', 'tblTempUsageDetail_20' ) end [2025-01-08 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:18:23] Production.INFO: ==17111== Releasing lock... [2025-01-08 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:18:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:19:05 [end_date_ymd] => 2025-01-08 21:19:05 [RateCDR] => 1 ) [2025-01-08 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:19:05' and `end` < '2025-01-08 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:19:19] Production.INFO: count ==1164 [2025-01-08 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:19:05 - End Time 2025-01-08 21:19:05 [2025-01-08 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204939', 'tblTempUsageDetail_20' ) start [2025-01-08 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204939', 'tblTempUsageDetail_20' ) end [2025-01-08 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204939', 'tblTempVendorCDR_20' ) start [2025-01-08 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204939', 'tblTempVendorCDR_20' ) end [2025-01-08 21:19:19] Production.INFO: ProcessCDR(1,14204939,1,1,2) [2025-01-08 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204939', 'tblTempUsageDetail_20' ) start [2025-01-08 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204939', 'tblTempUsageDetail_20' ) end [2025-01-08 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:19:23] Production.INFO: ==17190== Releasing lock... [2025-01-08 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:20:05 [end_date_ymd] => 2025-01-08 21:20:05 [RateCDR] => 1 ) [2025-01-08 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:20:05' and `end` < '2025-01-08 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:20:19] Production.INFO: count ==1164 [2025-01-08 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:20:05 - End Time 2025-01-08 21:20:05 [2025-01-08 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204944', 'tblTempUsageDetail_20' ) start [2025-01-08 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204944', 'tblTempUsageDetail_20' ) end [2025-01-08 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204944', 'tblTempVendorCDR_20' ) start [2025-01-08 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204944', 'tblTempVendorCDR_20' ) end [2025-01-08 21:20:19] Production.INFO: ProcessCDR(1,14204944,1,1,2) [2025-01-08 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204944', 'tblTempUsageDetail_20' ) start [2025-01-08 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204944', 'tblTempUsageDetail_20' ) end [2025-01-08 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:20:22] Production.INFO: ==17263== Releasing lock... [2025-01-08 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:20:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-08 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:21:05 [end_date_ymd] => 2025-01-08 21:21:05 [RateCDR] => 1 ) [2025-01-08 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:21:05' and `end` < '2025-01-08 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:21:19] Production.INFO: count ==1146 [2025-01-08 21:21:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:21:05 - End Time 2025-01-08 21:21:05 [2025-01-08 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204950', 'tblTempUsageDetail_20' ) start [2025-01-08 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204950', 'tblTempUsageDetail_20' ) end [2025-01-08 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204950', 'tblTempVendorCDR_20' ) start [2025-01-08 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204950', 'tblTempVendorCDR_20' ) end [2025-01-08 21:21:19] Production.INFO: ProcessCDR(1,14204950,1,1,2) [2025-01-08 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204950', 'tblTempUsageDetail_20' ) start [2025-01-08 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204950', 'tblTempUsageDetail_20' ) end [2025-01-08 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:21:22] Production.INFO: ==17334== Releasing lock... [2025-01-08 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:21:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 21:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:22:04 [end_date_ymd] => 2025-01-08 21:22:04 [RateCDR] => 1 ) [2025-01-08 21:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:22:04' and `end` < '2025-01-08 21:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:22:18] Production.INFO: count ==1146 [2025-01-08 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:22:04 - End Time 2025-01-08 21:22:04 [2025-01-08 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204955', 'tblTempUsageDetail_20' ) start [2025-01-08 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204955', 'tblTempUsageDetail_20' ) end [2025-01-08 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204955', 'tblTempVendorCDR_20' ) start [2025-01-08 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204955', 'tblTempVendorCDR_20' ) end [2025-01-08 21:22:18] Production.INFO: ProcessCDR(1,14204955,1,1,2) [2025-01-08 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204955', 'tblTempUsageDetail_20' ) start [2025-01-08 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204955', 'tblTempUsageDetail_20' ) end [2025-01-08 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:22:21] Production.INFO: ==17405== Releasing lock... [2025-01-08 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:22:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:23:05 [end_date_ymd] => 2025-01-08 21:23:05 [RateCDR] => 1 ) [2025-01-08 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:23:05' and `end` < '2025-01-08 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:23:18] Production.INFO: count ==1145 [2025-01-08 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:23:05 - End Time 2025-01-08 21:23:05 [2025-01-08 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204960', 'tblTempUsageDetail_20' ) start [2025-01-08 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204960', 'tblTempUsageDetail_20' ) end [2025-01-08 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204960', 'tblTempVendorCDR_20' ) start [2025-01-08 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204960', 'tblTempVendorCDR_20' ) end [2025-01-08 21:23:18] Production.INFO: ProcessCDR(1,14204960,1,1,2) [2025-01-08 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204960', 'tblTempUsageDetail_20' ) start [2025-01-08 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204960', 'tblTempUsageDetail_20' ) end [2025-01-08 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:23:21] Production.INFO: ==17480== Releasing lock... [2025-01-08 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:23:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-08 21:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:24:04 [end_date_ymd] => 2025-01-08 21:24:04 [RateCDR] => 1 ) [2025-01-08 21:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:24:04' and `end` < '2025-01-08 21:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:24:17] Production.INFO: count ==1124 [2025-01-08 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:24:04 - End Time 2025-01-08 21:24:04 [2025-01-08 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204965', 'tblTempUsageDetail_20' ) start [2025-01-08 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204965', 'tblTempUsageDetail_20' ) end [2025-01-08 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204965', 'tblTempVendorCDR_20' ) start [2025-01-08 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204965', 'tblTempVendorCDR_20' ) end [2025-01-08 21:24:18] Production.INFO: ProcessCDR(1,14204965,1,1,2) [2025-01-08 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204965', 'tblTempUsageDetail_20' ) start [2025-01-08 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204965', 'tblTempUsageDetail_20' ) end [2025-01-08 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:24:21] Production.INFO: ==17555== Releasing lock... [2025-01-08 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:24:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-08 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:25:05 [end_date_ymd] => 2025-01-08 21:25:05 [RateCDR] => 1 ) [2025-01-08 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:25:05' and `end` < '2025-01-08 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:25:18] Production.INFO: count ==1118 [2025-01-08 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:25:05 - End Time 2025-01-08 21:25:05 [2025-01-08 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204970', 'tblTempUsageDetail_20' ) start [2025-01-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204970', 'tblTempUsageDetail_20' ) end [2025-01-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204970', 'tblTempVendorCDR_20' ) start [2025-01-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204970', 'tblTempVendorCDR_20' ) end [2025-01-08 21:25:18] Production.INFO: ProcessCDR(1,14204970,1,1,2) [2025-01-08 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204970', 'tblTempUsageDetail_20' ) start [2025-01-08 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204970', 'tblTempUsageDetail_20' ) end [2025-01-08 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:25:21] Production.INFO: ==17625== Releasing lock... [2025-01-08 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:25:21] Production.INFO: 36 MB #Memory Used# [2025-01-08 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:26:05 [end_date_ymd] => 2025-01-08 21:26:05 [RateCDR] => 1 ) [2025-01-08 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:26:05' and `end` < '2025-01-08 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:26:19] Production.INFO: count ==1101 [2025-01-08 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:26:05 - End Time 2025-01-08 21:26:05 [2025-01-08 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204975', 'tblTempUsageDetail_20' ) start [2025-01-08 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204975', 'tblTempUsageDetail_20' ) end [2025-01-08 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204975', 'tblTempVendorCDR_20' ) start [2025-01-08 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204975', 'tblTempVendorCDR_20' ) end [2025-01-08 21:26:19] Production.INFO: ProcessCDR(1,14204975,1,1,2) [2025-01-08 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204975', 'tblTempUsageDetail_20' ) start [2025-01-08 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204975', 'tblTempUsageDetail_20' ) end [2025-01-08 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:26:22] Production.INFO: ==17734== Releasing lock... [2025-01-08 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:26:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-08 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:27:04 [end_date_ymd] => 2025-01-08 21:27:04 [RateCDR] => 1 ) [2025-01-08 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:27:04' and `end` < '2025-01-08 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:27:17] Production.INFO: count ==1101 [2025-01-08 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:27:04 - End Time 2025-01-08 21:27:04 [2025-01-08 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204980', 'tblTempUsageDetail_20' ) start [2025-01-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204980', 'tblTempUsageDetail_20' ) end [2025-01-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204980', 'tblTempVendorCDR_20' ) start [2025-01-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204980', 'tblTempVendorCDR_20' ) end [2025-01-08 21:27:18] Production.INFO: ProcessCDR(1,14204980,1,1,2) [2025-01-08 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204980', 'tblTempUsageDetail_20' ) start [2025-01-08 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204980', 'tblTempUsageDetail_20' ) end [2025-01-08 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:27:21] Production.INFO: ==17805== Releasing lock... [2025-01-08 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:27:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-08 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:28:05 [end_date_ymd] => 2025-01-08 21:28:05 [RateCDR] => 1 ) [2025-01-08 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:28:05' and `end` < '2025-01-08 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:28:18] Production.INFO: count ==1098 [2025-01-08 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:28:05 - End Time 2025-01-08 21:28:05 [2025-01-08 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204985', 'tblTempUsageDetail_20' ) start [2025-01-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204985', 'tblTempUsageDetail_20' ) end [2025-01-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204985', 'tblTempVendorCDR_20' ) start [2025-01-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204985', 'tblTempVendorCDR_20' ) end [2025-01-08 21:28:18] Production.INFO: ProcessCDR(1,14204985,1,1,2) [2025-01-08 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204985', 'tblTempUsageDetail_20' ) start [2025-01-08 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204985', 'tblTempUsageDetail_20' ) end [2025-01-08 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:28:21] Production.INFO: ==17874== Releasing lock... [2025-01-08 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:28:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-08 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:29:04 [end_date_ymd] => 2025-01-08 21:29:04 [RateCDR] => 1 ) [2025-01-08 21:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:29:04' and `end` < '2025-01-08 21:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:29:17] Production.INFO: count ==1095 [2025-01-08 21:29:17] Production.ERROR: pbx CDR StartTime 2025-01-08 18:29:04 - End Time 2025-01-08 21:29:04 [2025-01-08 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204990', 'tblTempUsageDetail_20' ) start [2025-01-08 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204990', 'tblTempUsageDetail_20' ) end [2025-01-08 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204990', 'tblTempVendorCDR_20' ) start [2025-01-08 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204990', 'tblTempVendorCDR_20' ) end [2025-01-08 21:29:17] Production.INFO: ProcessCDR(1,14204990,1,1,2) [2025-01-08 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204990', 'tblTempUsageDetail_20' ) start [2025-01-08 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204990', 'tblTempUsageDetail_20' ) end [2025-01-08 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:29:21] Production.INFO: ==17944== Releasing lock... [2025-01-08 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:29:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-08 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:30:06 [end_date_ymd] => 2025-01-08 21:30:06 [RateCDR] => 1 ) [2025-01-08 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:30:06' and `end` < '2025-01-08 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:30:20] Production.INFO: count ==1092 [2025-01-08 21:30:20] Production.ERROR: pbx CDR StartTime 2025-01-08 18:30:06 - End Time 2025-01-08 21:30:06 [2025-01-08 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204996', 'tblTempUsageDetail_20' ) start [2025-01-08 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14204996', 'tblTempUsageDetail_20' ) end [2025-01-08 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204996', 'tblTempVendorCDR_20' ) start [2025-01-08 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14204996', 'tblTempVendorCDR_20' ) end [2025-01-08 21:30:20] Production.INFO: ProcessCDR(1,14204996,1,1,2) [2025-01-08 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14204996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14204996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14204996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14204996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204996', 'tblTempUsageDetail_20' ) start [2025-01-08 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14204996', 'tblTempUsageDetail_20' ) end [2025-01-08 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:30:23] Production.INFO: ==18019== Releasing lock... [2025-01-08 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:30:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-08 21:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:31:04 [end_date_ymd] => 2025-01-08 21:31:04 [RateCDR] => 1 ) [2025-01-08 21:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:31:04' and `end` < '2025-01-08 21:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:31:18] Production.INFO: count ==1026 [2025-01-08 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:31:04 - End Time 2025-01-08 21:31:04 [2025-01-08 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205001', 'tblTempUsageDetail_20' ) start [2025-01-08 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205001', 'tblTempUsageDetail_20' ) end [2025-01-08 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205001', 'tblTempVendorCDR_20' ) start [2025-01-08 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205001', 'tblTempVendorCDR_20' ) end [2025-01-08 21:31:18] Production.INFO: ProcessCDR(1,14205001,1,1,2) [2025-01-08 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205001', 'tblTempUsageDetail_20' ) start [2025-01-08 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205001', 'tblTempUsageDetail_20' ) end [2025-01-08 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:31:21] Production.INFO: ==18100== Releasing lock... [2025-01-08 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:31:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-08 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:32:05 [end_date_ymd] => 2025-01-08 21:32:05 [RateCDR] => 1 ) [2025-01-08 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:32:05' and `end` < '2025-01-08 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:32:19] Production.INFO: count ==1013 [2025-01-08 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:32:05 - End Time 2025-01-08 21:32:05 [2025-01-08 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205006', 'tblTempUsageDetail_20' ) start [2025-01-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205006', 'tblTempUsageDetail_20' ) end [2025-01-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205006', 'tblTempVendorCDR_20' ) start [2025-01-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205006', 'tblTempVendorCDR_20' ) end [2025-01-08 21:32:19] Production.INFO: ProcessCDR(1,14205006,1,1,2) [2025-01-08 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205006', 'tblTempUsageDetail_20' ) start [2025-01-08 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205006', 'tblTempUsageDetail_20' ) end [2025-01-08 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:32:22] Production.INFO: ==18174== Releasing lock... [2025-01-08 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:32:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-08 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:33:05 [end_date_ymd] => 2025-01-08 21:33:05 [RateCDR] => 1 ) [2025-01-08 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:33:05' and `end` < '2025-01-08 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:33:18] Production.INFO: count ==995 [2025-01-08 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:33:05 - End Time 2025-01-08 21:33:05 [2025-01-08 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205011', 'tblTempUsageDetail_20' ) start [2025-01-08 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205011', 'tblTempUsageDetail_20' ) end [2025-01-08 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205011', 'tblTempVendorCDR_20' ) start [2025-01-08 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205011', 'tblTempVendorCDR_20' ) end [2025-01-08 21:33:18] Production.INFO: ProcessCDR(1,14205011,1,1,2) [2025-01-08 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205011', 'tblTempUsageDetail_20' ) start [2025-01-08 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205011', 'tblTempUsageDetail_20' ) end [2025-01-08 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:33:22] Production.INFO: ==18243== Releasing lock... [2025-01-08 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:33:22] Production.INFO: 35 MB #Memory Used# [2025-01-08 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:34:05 [end_date_ymd] => 2025-01-08 21:34:05 [RateCDR] => 1 ) [2025-01-08 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:34:05' and `end` < '2025-01-08 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:34:18] Production.INFO: count ==993 [2025-01-08 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:34:05 - End Time 2025-01-08 21:34:05 [2025-01-08 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205016', 'tblTempUsageDetail_20' ) start [2025-01-08 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205016', 'tblTempUsageDetail_20' ) end [2025-01-08 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205016', 'tblTempVendorCDR_20' ) start [2025-01-08 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205016', 'tblTempVendorCDR_20' ) end [2025-01-08 21:34:18] Production.INFO: ProcessCDR(1,14205016,1,1,2) [2025-01-08 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205016', 'tblTempUsageDetail_20' ) start [2025-01-08 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205016', 'tblTempUsageDetail_20' ) end [2025-01-08 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:34:21] Production.INFO: ==18312== Releasing lock... [2025-01-08 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:34:21] Production.INFO: 35 MB #Memory Used# [2025-01-08 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:35:04 [end_date_ymd] => 2025-01-08 21:35:04 [RateCDR] => 1 ) [2025-01-08 21:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:35:04' and `end` < '2025-01-08 21:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:35:17] Production.INFO: count ==993 [2025-01-08 21:35:17] Production.ERROR: pbx CDR StartTime 2025-01-08 18:35:04 - End Time 2025-01-08 21:35:04 [2025-01-08 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205021', 'tblTempUsageDetail_20' ) start [2025-01-08 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205021', 'tblTempUsageDetail_20' ) end [2025-01-08 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205021', 'tblTempVendorCDR_20' ) start [2025-01-08 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205021', 'tblTempVendorCDR_20' ) end [2025-01-08 21:35:17] Production.INFO: ProcessCDR(1,14205021,1,1,2) [2025-01-08 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205021', 'tblTempUsageDetail_20' ) start [2025-01-08 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205021', 'tblTempUsageDetail_20' ) end [2025-01-08 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:35:21] Production.INFO: ==18381== Releasing lock... [2025-01-08 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:35:21] Production.INFO: 35 MB #Memory Used# [2025-01-08 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:36:04 [end_date_ymd] => 2025-01-08 21:36:04 [RateCDR] => 1 ) [2025-01-08 21:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:36:04' and `end` < '2025-01-08 21:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:36:17] Production.INFO: count ==992 [2025-01-08 21:36:17] Production.ERROR: pbx CDR StartTime 2025-01-08 18:36:04 - End Time 2025-01-08 21:36:04 [2025-01-08 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205026', 'tblTempUsageDetail_20' ) start [2025-01-08 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205026', 'tblTempUsageDetail_20' ) end [2025-01-08 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205026', 'tblTempVendorCDR_20' ) start [2025-01-08 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205026', 'tblTempVendorCDR_20' ) end [2025-01-08 21:36:17] Production.INFO: ProcessCDR(1,14205026,1,1,2) [2025-01-08 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205026', 'tblTempUsageDetail_20' ) start [2025-01-08 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205026', 'tblTempUsageDetail_20' ) end [2025-01-08 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:36:21] Production.INFO: ==18453== Releasing lock... [2025-01-08 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:36:21] Production.INFO: 35 MB #Memory Used# [2025-01-08 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:37:05 [end_date_ymd] => 2025-01-08 21:37:05 [RateCDR] => 1 ) [2025-01-08 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:37:05' and `end` < '2025-01-08 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:37:19] Production.INFO: count ==983 [2025-01-08 21:37:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:37:05 - End Time 2025-01-08 21:37:05 [2025-01-08 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205031', 'tblTempUsageDetail_20' ) start [2025-01-08 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205031', 'tblTempUsageDetail_20' ) end [2025-01-08 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205031', 'tblTempVendorCDR_20' ) start [2025-01-08 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205031', 'tblTempVendorCDR_20' ) end [2025-01-08 21:37:19] Production.INFO: ProcessCDR(1,14205031,1,1,2) [2025-01-08 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205031', 'tblTempUsageDetail_20' ) start [2025-01-08 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205031', 'tblTempUsageDetail_20' ) end [2025-01-08 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:37:22] Production.INFO: ==18522== Releasing lock... [2025-01-08 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:37:22] Production.INFO: 35 MB #Memory Used# [2025-01-08 21:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:38:04 [end_date_ymd] => 2025-01-08 21:38:04 [RateCDR] => 1 ) [2025-01-08 21:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:38:04' and `end` < '2025-01-08 21:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:38:18] Production.INFO: count ==983 [2025-01-08 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:38:04 - End Time 2025-01-08 21:38:04 [2025-01-08 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205036', 'tblTempUsageDetail_20' ) start [2025-01-08 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205036', 'tblTempUsageDetail_20' ) end [2025-01-08 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205036', 'tblTempVendorCDR_20' ) start [2025-01-08 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205036', 'tblTempVendorCDR_20' ) end [2025-01-08 21:38:18] Production.INFO: ProcessCDR(1,14205036,1,1,2) [2025-01-08 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205036', 'tblTempUsageDetail_20' ) start [2025-01-08 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205036', 'tblTempUsageDetail_20' ) end [2025-01-08 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:38:21] Production.INFO: ==18599== Releasing lock... [2025-01-08 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:38:21] Production.INFO: 35 MB #Memory Used# [2025-01-08 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:39:05 [end_date_ymd] => 2025-01-08 21:39:05 [RateCDR] => 1 ) [2025-01-08 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:39:05' and `end` < '2025-01-08 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:39:18] Production.INFO: count ==982 [2025-01-08 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:39:05 - End Time 2025-01-08 21:39:05 [2025-01-08 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205041', 'tblTempUsageDetail_20' ) start [2025-01-08 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205041', 'tblTempUsageDetail_20' ) end [2025-01-08 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205041', 'tblTempVendorCDR_20' ) start [2025-01-08 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205041', 'tblTempVendorCDR_20' ) end [2025-01-08 21:39:18] Production.INFO: ProcessCDR(1,14205041,1,1,2) [2025-01-08 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205041', 'tblTempUsageDetail_20' ) start [2025-01-08 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205041', 'tblTempUsageDetail_20' ) end [2025-01-08 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:39:21] Production.INFO: ==18670== Releasing lock... [2025-01-08 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:39:21] Production.INFO: 35 MB #Memory Used# [2025-01-08 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:40:05 [end_date_ymd] => 2025-01-08 21:40:05 [RateCDR] => 1 ) [2025-01-08 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:40:05' and `end` < '2025-01-08 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:40:18] Production.INFO: count ==968 [2025-01-08 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:40:05 - End Time 2025-01-08 21:40:05 [2025-01-08 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205046', 'tblTempUsageDetail_20' ) start [2025-01-08 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205046', 'tblTempUsageDetail_20' ) end [2025-01-08 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205046', 'tblTempVendorCDR_20' ) start [2025-01-08 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205046', 'tblTempVendorCDR_20' ) end [2025-01-08 21:40:18] Production.INFO: ProcessCDR(1,14205046,1,1,2) [2025-01-08 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205046', 'tblTempUsageDetail_20' ) start [2025-01-08 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205046', 'tblTempUsageDetail_20' ) end [2025-01-08 21:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:40:21] Production.INFO: ==18743== Releasing lock... [2025-01-08 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:40:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-08 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:41:04 [end_date_ymd] => 2025-01-08 21:41:04 [RateCDR] => 1 ) [2025-01-08 21:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:41:04' and `end` < '2025-01-08 21:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:41:18] Production.INFO: count ==950 [2025-01-08 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:41:04 - End Time 2025-01-08 21:41:04 [2025-01-08 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205052', 'tblTempUsageDetail_20' ) start [2025-01-08 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205052', 'tblTempUsageDetail_20' ) end [2025-01-08 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205052', 'tblTempVendorCDR_20' ) start [2025-01-08 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205052', 'tblTempVendorCDR_20' ) end [2025-01-08 21:41:18] Production.INFO: ProcessCDR(1,14205052,1,1,2) [2025-01-08 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205052', 'tblTempUsageDetail_20' ) start [2025-01-08 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205052', 'tblTempUsageDetail_20' ) end [2025-01-08 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:41:21] Production.INFO: ==18817== Releasing lock... [2025-01-08 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:41:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-08 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:42:05 [end_date_ymd] => 2025-01-08 21:42:05 [RateCDR] => 1 ) [2025-01-08 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:42:05' and `end` < '2025-01-08 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:42:18] Production.INFO: count ==949 [2025-01-08 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:42:05 - End Time 2025-01-08 21:42:05 [2025-01-08 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205057', 'tblTempUsageDetail_20' ) start [2025-01-08 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205057', 'tblTempUsageDetail_20' ) end [2025-01-08 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205057', 'tblTempVendorCDR_20' ) start [2025-01-08 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205057', 'tblTempVendorCDR_20' ) end [2025-01-08 21:42:18] Production.INFO: ProcessCDR(1,14205057,1,1,2) [2025-01-08 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205057', 'tblTempUsageDetail_20' ) start [2025-01-08 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205057', 'tblTempUsageDetail_20' ) end [2025-01-08 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:42:22] Production.INFO: ==18927== Releasing lock... [2025-01-08 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:42:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-08 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:43:05 [end_date_ymd] => 2025-01-08 21:43:05 [RateCDR] => 1 ) [2025-01-08 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:43:05' and `end` < '2025-01-08 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:43:18] Production.INFO: count ==947 [2025-01-08 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:43:05 - End Time 2025-01-08 21:43:05 [2025-01-08 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205062', 'tblTempUsageDetail_20' ) start [2025-01-08 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205062', 'tblTempUsageDetail_20' ) end [2025-01-08 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205062', 'tblTempVendorCDR_20' ) start [2025-01-08 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205062', 'tblTempVendorCDR_20' ) end [2025-01-08 21:43:18] Production.INFO: ProcessCDR(1,14205062,1,1,2) [2025-01-08 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205062', 'tblTempUsageDetail_20' ) start [2025-01-08 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205062', 'tblTempUsageDetail_20' ) end [2025-01-08 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:43:21] Production.INFO: ==18997== Releasing lock... [2025-01-08 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:43:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-08 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:44:05 [end_date_ymd] => 2025-01-08 21:44:05 [RateCDR] => 1 ) [2025-01-08 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:44:05' and `end` < '2025-01-08 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:44:18] Production.INFO: count ==941 [2025-01-08 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:44:05 - End Time 2025-01-08 21:44:05 [2025-01-08 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205067', 'tblTempUsageDetail_20' ) start [2025-01-08 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205067', 'tblTempUsageDetail_20' ) end [2025-01-08 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205067', 'tblTempVendorCDR_20' ) start [2025-01-08 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205067', 'tblTempVendorCDR_20' ) end [2025-01-08 21:44:18] Production.INFO: ProcessCDR(1,14205067,1,1,2) [2025-01-08 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205067', 'tblTempUsageDetail_20' ) start [2025-01-08 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205067', 'tblTempUsageDetail_20' ) end [2025-01-08 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:44:21] Production.INFO: ==19069== Releasing lock... [2025-01-08 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:44:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-08 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:45:04 [end_date_ymd] => 2025-01-08 21:45:04 [RateCDR] => 1 ) [2025-01-08 21:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:45:04' and `end` < '2025-01-08 21:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:45:17] Production.INFO: count ==942 [2025-01-08 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:45:04 - End Time 2025-01-08 21:45:04 [2025-01-08 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205072', 'tblTempUsageDetail_20' ) start [2025-01-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205072', 'tblTempUsageDetail_20' ) end [2025-01-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205072', 'tblTempVendorCDR_20' ) start [2025-01-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205072', 'tblTempVendorCDR_20' ) end [2025-01-08 21:45:18] Production.INFO: ProcessCDR(1,14205072,1,1,2) [2025-01-08 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205072', 'tblTempUsageDetail_20' ) start [2025-01-08 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205072', 'tblTempUsageDetail_20' ) end [2025-01-08 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:45:21] Production.INFO: ==19141== Releasing lock... [2025-01-08 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:45:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-08 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:46:05 [end_date_ymd] => 2025-01-08 21:46:05 [RateCDR] => 1 ) [2025-01-08 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:46:05' and `end` < '2025-01-08 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:46:20] Production.INFO: count ==940 [2025-01-08 21:46:20] Production.ERROR: pbx CDR StartTime 2025-01-08 18:46:05 - End Time 2025-01-08 21:46:05 [2025-01-08 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205077', 'tblTempUsageDetail_20' ) start [2025-01-08 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205077', 'tblTempUsageDetail_20' ) end [2025-01-08 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205077', 'tblTempVendorCDR_20' ) start [2025-01-08 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205077', 'tblTempVendorCDR_20' ) end [2025-01-08 21:46:20] Production.INFO: ProcessCDR(1,14205077,1,1,2) [2025-01-08 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205077', 'tblTempUsageDetail_20' ) start [2025-01-08 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205077', 'tblTempUsageDetail_20' ) end [2025-01-08 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:46:23] Production.INFO: ==19211== Releasing lock... [2025-01-08 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:46:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-08 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:47:05 [end_date_ymd] => 2025-01-08 21:47:05 [RateCDR] => 1 ) [2025-01-08 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:47:05' and `end` < '2025-01-08 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:47:18] Production.INFO: count ==933 [2025-01-08 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:47:05 - End Time 2025-01-08 21:47:05 [2025-01-08 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205082', 'tblTempUsageDetail_20' ) start [2025-01-08 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205082', 'tblTempUsageDetail_20' ) end [2025-01-08 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205082', 'tblTempVendorCDR_20' ) start [2025-01-08 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205082', 'tblTempVendorCDR_20' ) end [2025-01-08 21:47:18] Production.INFO: ProcessCDR(1,14205082,1,1,2) [2025-01-08 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205082', 'tblTempUsageDetail_20' ) start [2025-01-08 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205082', 'tblTempUsageDetail_20' ) end [2025-01-08 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:47:21] Production.INFO: ==19281== Releasing lock... [2025-01-08 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:47:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-08 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:48:05 [end_date_ymd] => 2025-01-08 21:48:05 [RateCDR] => 1 ) [2025-01-08 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:48:05' and `end` < '2025-01-08 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:48:19] Production.INFO: count ==932 [2025-01-08 21:48:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:48:05 - End Time 2025-01-08 21:48:05 [2025-01-08 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205087', 'tblTempUsageDetail_20' ) start [2025-01-08 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205087', 'tblTempUsageDetail_20' ) end [2025-01-08 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205087', 'tblTempVendorCDR_20' ) start [2025-01-08 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205087', 'tblTempVendorCDR_20' ) end [2025-01-08 21:48:19] Production.INFO: ProcessCDR(1,14205087,1,1,2) [2025-01-08 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205087', 'tblTempUsageDetail_20' ) start [2025-01-08 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205087', 'tblTempUsageDetail_20' ) end [2025-01-08 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:48:22] Production.INFO: ==19352== Releasing lock... [2025-01-08 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:48:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-08 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:49:04 [end_date_ymd] => 2025-01-08 21:49:04 [RateCDR] => 1 ) [2025-01-08 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:49:04' and `end` < '2025-01-08 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:49:18] Production.INFO: count ==932 [2025-01-08 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:49:04 - End Time 2025-01-08 21:49:04 [2025-01-08 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205092', 'tblTempUsageDetail_20' ) start [2025-01-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205092', 'tblTempUsageDetail_20' ) end [2025-01-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205092', 'tblTempVendorCDR_20' ) start [2025-01-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205092', 'tblTempVendorCDR_20' ) end [2025-01-08 21:49:18] Production.INFO: ProcessCDR(1,14205092,1,1,2) [2025-01-08 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205092', 'tblTempUsageDetail_20' ) start [2025-01-08 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205092', 'tblTempUsageDetail_20' ) end [2025-01-08 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:49:22] Production.INFO: ==19423== Releasing lock... [2025-01-08 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:49:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-08 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:50:05 [end_date_ymd] => 2025-01-08 21:50:05 [RateCDR] => 1 ) [2025-01-08 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:50:05' and `end` < '2025-01-08 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:50:18] Production.INFO: count ==932 [2025-01-08 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:50:05 - End Time 2025-01-08 21:50:05 [2025-01-08 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205098', 'tblTempUsageDetail_20' ) start [2025-01-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205098', 'tblTempUsageDetail_20' ) end [2025-01-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205098', 'tblTempVendorCDR_20' ) start [2025-01-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205098', 'tblTempVendorCDR_20' ) end [2025-01-08 21:50:19] Production.INFO: ProcessCDR(1,14205098,1,1,2) [2025-01-08 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205098', 'tblTempUsageDetail_20' ) start [2025-01-08 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205098', 'tblTempUsageDetail_20' ) end [2025-01-08 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:50:23] Production.INFO: ==19499== Releasing lock... [2025-01-08 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:50:23] Production.INFO: 34.5 MB #Memory Used# [2025-01-08 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:51:05 [end_date_ymd] => 2025-01-08 21:51:05 [RateCDR] => 1 ) [2025-01-08 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:51:05' and `end` < '2025-01-08 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:51:18] Production.INFO: count ==921 [2025-01-08 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:51:05 - End Time 2025-01-08 21:51:05 [2025-01-08 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205103', 'tblTempUsageDetail_20' ) start [2025-01-08 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205103', 'tblTempUsageDetail_20' ) end [2025-01-08 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205103', 'tblTempVendorCDR_20' ) start [2025-01-08 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205103', 'tblTempVendorCDR_20' ) end [2025-01-08 21:51:18] Production.INFO: ProcessCDR(1,14205103,1,1,2) [2025-01-08 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205103', 'tblTempUsageDetail_20' ) start [2025-01-08 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205103', 'tblTempUsageDetail_20' ) end [2025-01-08 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:51:23] Production.INFO: ==19572== Releasing lock... [2025-01-08 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:51:23] Production.INFO: 34 MB #Memory Used# [2025-01-08 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:52:05 [end_date_ymd] => 2025-01-08 21:52:05 [RateCDR] => 1 ) [2025-01-08 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:52:05' and `end` < '2025-01-08 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:52:18] Production.INFO: count ==909 [2025-01-08 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:52:05 - End Time 2025-01-08 21:52:05 [2025-01-08 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205108', 'tblTempUsageDetail_20' ) start [2025-01-08 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205108', 'tblTempUsageDetail_20' ) end [2025-01-08 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205108', 'tblTempVendorCDR_20' ) start [2025-01-08 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205108', 'tblTempVendorCDR_20' ) end [2025-01-08 21:52:18] Production.INFO: ProcessCDR(1,14205108,1,1,2) [2025-01-08 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205108', 'tblTempUsageDetail_20' ) start [2025-01-08 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205108', 'tblTempUsageDetail_20' ) end [2025-01-08 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:52:21] Production.INFO: ==19643== Releasing lock... [2025-01-08 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:52:21] Production.INFO: 34 MB #Memory Used# [2025-01-08 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:53:04 [end_date_ymd] => 2025-01-08 21:53:04 [RateCDR] => 1 ) [2025-01-08 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:53:04' and `end` < '2025-01-08 21:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:53:19] Production.INFO: count ==907 [2025-01-08 21:53:19] Production.ERROR: pbx CDR StartTime 2025-01-08 18:53:04 - End Time 2025-01-08 21:53:04 [2025-01-08 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205113', 'tblTempUsageDetail_20' ) start [2025-01-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205113', 'tblTempUsageDetail_20' ) end [2025-01-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205113', 'tblTempVendorCDR_20' ) start [2025-01-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205113', 'tblTempVendorCDR_20' ) end [2025-01-08 21:53:19] Production.INFO: ProcessCDR(1,14205113,1,1,2) [2025-01-08 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205113', 'tblTempUsageDetail_20' ) start [2025-01-08 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205113', 'tblTempUsageDetail_20' ) end [2025-01-08 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:53:22] Production.INFO: ==19716== Releasing lock... [2025-01-08 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:53:22] Production.INFO: 34 MB #Memory Used# [2025-01-08 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:54:05 [end_date_ymd] => 2025-01-08 21:54:05 [RateCDR] => 1 ) [2025-01-08 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:54:05' and `end` < '2025-01-08 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:54:18] Production.INFO: count ==907 [2025-01-08 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:54:05 - End Time 2025-01-08 21:54:05 [2025-01-08 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205118', 'tblTempUsageDetail_20' ) start [2025-01-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205118', 'tblTempUsageDetail_20' ) end [2025-01-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205118', 'tblTempVendorCDR_20' ) start [2025-01-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205118', 'tblTempVendorCDR_20' ) end [2025-01-08 21:54:18] Production.INFO: ProcessCDR(1,14205118,1,1,2) [2025-01-08 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205118', 'tblTempUsageDetail_20' ) start [2025-01-08 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205118', 'tblTempUsageDetail_20' ) end [2025-01-08 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:54:21] Production.INFO: ==19789== Releasing lock... [2025-01-08 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:54:21] Production.INFO: 34 MB #Memory Used# [2025-01-08 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:55:05 [end_date_ymd] => 2025-01-08 21:55:05 [RateCDR] => 1 ) [2025-01-08 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:55:05' and `end` < '2025-01-08 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:55:18] Production.INFO: count ==907 [2025-01-08 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:55:05 - End Time 2025-01-08 21:55:05 [2025-01-08 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205123', 'tblTempUsageDetail_20' ) start [2025-01-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205123', 'tblTempUsageDetail_20' ) end [2025-01-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205123', 'tblTempVendorCDR_20' ) start [2025-01-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205123', 'tblTempVendorCDR_20' ) end [2025-01-08 21:55:18] Production.INFO: ProcessCDR(1,14205123,1,1,2) [2025-01-08 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205123', 'tblTempUsageDetail_20' ) start [2025-01-08 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205123', 'tblTempUsageDetail_20' ) end [2025-01-08 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:55:21] Production.INFO: ==19860== Releasing lock... [2025-01-08 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:55:21] Production.INFO: 34 MB #Memory Used# [2025-01-08 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:56:04 [end_date_ymd] => 2025-01-08 21:56:04 [RateCDR] => 1 ) [2025-01-08 21:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:56:04' and `end` < '2025-01-08 21:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:56:17] Production.INFO: count ==906 [2025-01-08 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:56:04 - End Time 2025-01-08 21:56:04 [2025-01-08 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205128', 'tblTempUsageDetail_20' ) start [2025-01-08 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205128', 'tblTempUsageDetail_20' ) end [2025-01-08 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205128', 'tblTempVendorCDR_20' ) start [2025-01-08 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205128', 'tblTempVendorCDR_20' ) end [2025-01-08 21:56:18] Production.INFO: ProcessCDR(1,14205128,1,1,2) [2025-01-08 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205128', 'tblTempUsageDetail_20' ) start [2025-01-08 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205128', 'tblTempUsageDetail_20' ) end [2025-01-08 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:56:21] Production.INFO: ==19929== Releasing lock... [2025-01-08 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:56:21] Production.INFO: 34 MB #Memory Used# [2025-01-08 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:57:05 [end_date_ymd] => 2025-01-08 21:57:05 [RateCDR] => 1 ) [2025-01-08 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:57:05' and `end` < '2025-01-08 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:57:18] Production.INFO: count ==899 [2025-01-08 21:57:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:57:05 - End Time 2025-01-08 21:57:05 [2025-01-08 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205133', 'tblTempUsageDetail_20' ) start [2025-01-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205133', 'tblTempUsageDetail_20' ) end [2025-01-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205133', 'tblTempVendorCDR_20' ) start [2025-01-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205133', 'tblTempVendorCDR_20' ) end [2025-01-08 21:57:18] Production.INFO: ProcessCDR(1,14205133,1,1,2) [2025-01-08 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205133', 'tblTempUsageDetail_20' ) start [2025-01-08 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205133', 'tblTempUsageDetail_20' ) end [2025-01-08 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:57:21] Production.INFO: ==20043== Releasing lock... [2025-01-08 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:57:21] Production.INFO: 34 MB #Memory Used# [2025-01-08 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:58:05 [end_date_ymd] => 2025-01-08 21:58:05 [RateCDR] => 1 ) [2025-01-08 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:58:05' and `end` < '2025-01-08 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:58:20] Production.INFO: count ==898 [2025-01-08 21:58:20] Production.ERROR: pbx CDR StartTime 2025-01-08 18:58:05 - End Time 2025-01-08 21:58:05 [2025-01-08 21:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205138', 'tblTempUsageDetail_20' ) start [2025-01-08 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205138', 'tblTempUsageDetail_20' ) end [2025-01-08 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205138', 'tblTempVendorCDR_20' ) start [2025-01-08 21:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205138', 'tblTempVendorCDR_20' ) end [2025-01-08 21:58:20] Production.INFO: ProcessCDR(1,14205138,1,1,2) [2025-01-08 21:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205138', 'tblTempUsageDetail_20' ) start [2025-01-08 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205138', 'tblTempUsageDetail_20' ) end [2025-01-08 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:58:23] Production.INFO: ==20116== Releasing lock... [2025-01-08 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:58:23] Production.INFO: 34 MB #Memory Used# [2025-01-08 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 18:59:05 [end_date_ymd] => 2025-01-08 21:59:05 [RateCDR] => 1 ) [2025-01-08 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 18:59:05' and `end` < '2025-01-08 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 21:59:18] Production.INFO: count ==895 [2025-01-08 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-08 18:59:05 - End Time 2025-01-08 21:59:05 [2025-01-08 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205143', 'tblTempUsageDetail_20' ) start [2025-01-08 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205143', 'tblTempUsageDetail_20' ) end [2025-01-08 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205143', 'tblTempVendorCDR_20' ) start [2025-01-08 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205143', 'tblTempVendorCDR_20' ) end [2025-01-08 21:59:18] Production.INFO: ProcessCDR(1,14205143,1,1,2) [2025-01-08 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205143', 'tblTempUsageDetail_20' ) start [2025-01-08 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205143', 'tblTempUsageDetail_20' ) end [2025-01-08 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 21:59:21] Production.INFO: ==20187== Releasing lock... [2025-01-08 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 21:59:21] Production.INFO: 34 MB #Memory Used# [2025-01-08 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:00:05 [end_date_ymd] => 2025-01-08 22:00:05 [RateCDR] => 1 ) [2025-01-08 22:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:00:05' and `end` < '2025-01-08 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:00:18] Production.INFO: count ==882 [2025-01-08 22:00:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:00:05 - End Time 2025-01-08 22:00:05 [2025-01-08 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205147', 'tblTempUsageDetail_20' ) start [2025-01-08 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205147', 'tblTempUsageDetail_20' ) end [2025-01-08 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205147', 'tblTempVendorCDR_20' ) start [2025-01-08 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205147', 'tblTempVendorCDR_20' ) end [2025-01-08 22:00:18] Production.INFO: ProcessCDR(1,14205147,1,1,2) [2025-01-08 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205147', 'tblTempUsageDetail_20' ) start [2025-01-08 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205147', 'tblTempUsageDetail_20' ) end [2025-01-08 22:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:00:21] Production.INFO: ==20264== Releasing lock... [2025-01-08 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:00:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-08 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:01:05 [end_date_ymd] => 2025-01-08 22:01:05 [RateCDR] => 1 ) [2025-01-08 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:01:05' and `end` < '2025-01-08 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:01:18] Production.INFO: count ==846 [2025-01-08 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:01:05 - End Time 2025-01-08 22:01:05 [2025-01-08 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205154', 'tblTempUsageDetail_20' ) start [2025-01-08 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205154', 'tblTempUsageDetail_20' ) end [2025-01-08 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205154', 'tblTempVendorCDR_20' ) start [2025-01-08 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205154', 'tblTempVendorCDR_20' ) end [2025-01-08 22:01:18] Production.INFO: ProcessCDR(1,14205154,1,1,2) [2025-01-08 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205154', 'tblTempUsageDetail_20' ) start [2025-01-08 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205154', 'tblTempUsageDetail_20' ) end [2025-01-08 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:01:22] Production.INFO: ==20352== Releasing lock... [2025-01-08 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:01:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:02:05 [end_date_ymd] => 2025-01-08 22:02:05 [RateCDR] => 1 ) [2025-01-08 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:02:05' and `end` < '2025-01-08 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:02:18] Production.INFO: count ==845 [2025-01-08 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:02:05 - End Time 2025-01-08 22:02:05 [2025-01-08 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205159', 'tblTempUsageDetail_20' ) start [2025-01-08 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205159', 'tblTempUsageDetail_20' ) end [2025-01-08 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205159', 'tblTempVendorCDR_20' ) start [2025-01-08 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205159', 'tblTempVendorCDR_20' ) end [2025-01-08 22:02:18] Production.INFO: ProcessCDR(1,14205159,1,1,2) [2025-01-08 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205159', 'tblTempUsageDetail_20' ) start [2025-01-08 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205159', 'tblTempUsageDetail_20' ) end [2025-01-08 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:02:23] Production.INFO: ==20422== Releasing lock... [2025-01-08 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:02:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:03:04 [end_date_ymd] => 2025-01-08 22:03:04 [RateCDR] => 1 ) [2025-01-08 22:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:03:04' and `end` < '2025-01-08 22:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:03:19] Production.INFO: count ==847 [2025-01-08 22:03:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:03:04 - End Time 2025-01-08 22:03:04 [2025-01-08 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205164', 'tblTempUsageDetail_20' ) start [2025-01-08 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205164', 'tblTempUsageDetail_20' ) end [2025-01-08 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205164', 'tblTempVendorCDR_20' ) start [2025-01-08 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205164', 'tblTempVendorCDR_20' ) end [2025-01-08 22:03:19] Production.INFO: ProcessCDR(1,14205164,1,1,2) [2025-01-08 22:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205164', 'tblTempUsageDetail_20' ) start [2025-01-08 22:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205164', 'tblTempUsageDetail_20' ) end [2025-01-08 22:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:03:24] Production.INFO: ==20491== Releasing lock... [2025-01-08 22:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:03:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:04:05 [end_date_ymd] => 2025-01-08 22:04:05 [RateCDR] => 1 ) [2025-01-08 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:04:05' and `end` < '2025-01-08 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:04:18] Production.INFO: count ==847 [2025-01-08 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:04:05 - End Time 2025-01-08 22:04:05 [2025-01-08 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205169', 'tblTempUsageDetail_20' ) start [2025-01-08 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205169', 'tblTempUsageDetail_20' ) end [2025-01-08 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205169', 'tblTempVendorCDR_20' ) start [2025-01-08 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205169', 'tblTempVendorCDR_20' ) end [2025-01-08 22:04:18] Production.INFO: ProcessCDR(1,14205169,1,1,2) [2025-01-08 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205169', 'tblTempUsageDetail_20' ) start [2025-01-08 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205169', 'tblTempUsageDetail_20' ) end [2025-01-08 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:04:21] Production.INFO: ==20567== Releasing lock... [2025-01-08 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:04:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:05:05 [end_date_ymd] => 2025-01-08 22:05:05 [RateCDR] => 1 ) [2025-01-08 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:05:05' and `end` < '2025-01-08 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:05:18] Production.INFO: count ==847 [2025-01-08 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:05:05 - End Time 2025-01-08 22:05:05 [2025-01-08 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205174', 'tblTempUsageDetail_20' ) start [2025-01-08 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205174', 'tblTempUsageDetail_20' ) end [2025-01-08 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205174', 'tblTempVendorCDR_20' ) start [2025-01-08 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205174', 'tblTempVendorCDR_20' ) end [2025-01-08 22:05:18] Production.INFO: ProcessCDR(1,14205174,1,1,2) [2025-01-08 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205174', 'tblTempUsageDetail_20' ) start [2025-01-08 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205174', 'tblTempUsageDetail_20' ) end [2025-01-08 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:05:22] Production.INFO: ==20641== Releasing lock... [2025-01-08 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:06:05 [end_date_ymd] => 2025-01-08 22:06:05 [RateCDR] => 1 ) [2025-01-08 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:06:05' and `end` < '2025-01-08 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:06:18] Production.INFO: count ==842 [2025-01-08 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:06:05 - End Time 2025-01-08 22:06:05 [2025-01-08 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205179', 'tblTempUsageDetail_20' ) start [2025-01-08 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205179', 'tblTempUsageDetail_20' ) end [2025-01-08 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205179', 'tblTempVendorCDR_20' ) start [2025-01-08 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205179', 'tblTempVendorCDR_20' ) end [2025-01-08 22:06:18] Production.INFO: ProcessCDR(1,14205179,1,1,2) [2025-01-08 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205179', 'tblTempUsageDetail_20' ) start [2025-01-08 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205179', 'tblTempUsageDetail_20' ) end [2025-01-08 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:06:21] Production.INFO: ==20711== Releasing lock... [2025-01-08 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:06:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:07:05 [end_date_ymd] => 2025-01-08 22:07:05 [RateCDR] => 1 ) [2025-01-08 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:07:05' and `end` < '2025-01-08 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:07:19] Production.INFO: count ==833 [2025-01-08 22:07:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:07:05 - End Time 2025-01-08 22:07:05 [2025-01-08 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205184', 'tblTempUsageDetail_20' ) start [2025-01-08 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205184', 'tblTempUsageDetail_20' ) end [2025-01-08 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205184', 'tblTempVendorCDR_20' ) start [2025-01-08 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205184', 'tblTempVendorCDR_20' ) end [2025-01-08 22:07:19] Production.INFO: ProcessCDR(1,14205184,1,1,2) [2025-01-08 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205184', 'tblTempUsageDetail_20' ) start [2025-01-08 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205184', 'tblTempUsageDetail_20' ) end [2025-01-08 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:07:22] Production.INFO: ==20783== Releasing lock... [2025-01-08 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:07:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:08:05 [end_date_ymd] => 2025-01-08 22:08:05 [RateCDR] => 1 ) [2025-01-08 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:08:05' and `end` < '2025-01-08 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:08:19] Production.INFO: count ==832 [2025-01-08 22:08:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:08:05 - End Time 2025-01-08 22:08:05 [2025-01-08 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205189', 'tblTempUsageDetail_20' ) start [2025-01-08 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205189', 'tblTempUsageDetail_20' ) end [2025-01-08 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205189', 'tblTempVendorCDR_20' ) start [2025-01-08 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205189', 'tblTempVendorCDR_20' ) end [2025-01-08 22:08:19] Production.INFO: ProcessCDR(1,14205189,1,1,2) [2025-01-08 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205189', 'tblTempUsageDetail_20' ) start [2025-01-08 22:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205189', 'tblTempUsageDetail_20' ) end [2025-01-08 22:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:08:24] Production.INFO: ==20861== Releasing lock... [2025-01-08 22:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:08:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:09:05 [end_date_ymd] => 2025-01-08 22:09:05 [RateCDR] => 1 ) [2025-01-08 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:09:05' and `end` < '2025-01-08 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:09:19] Production.INFO: count ==828 [2025-01-08 22:09:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:09:05 - End Time 2025-01-08 22:09:05 [2025-01-08 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205194', 'tblTempUsageDetail_20' ) start [2025-01-08 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205194', 'tblTempUsageDetail_20' ) end [2025-01-08 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205194', 'tblTempVendorCDR_20' ) start [2025-01-08 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205194', 'tblTempVendorCDR_20' ) end [2025-01-08 22:09:19] Production.INFO: ProcessCDR(1,14205194,1,1,2) [2025-01-08 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205194', 'tblTempUsageDetail_20' ) start [2025-01-08 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205194', 'tblTempUsageDetail_20' ) end [2025-01-08 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:09:22] Production.INFO: ==20931== Releasing lock... [2025-01-08 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:09:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:10:05 [end_date_ymd] => 2025-01-08 22:10:05 [RateCDR] => 1 ) [2025-01-08 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:10:05' and `end` < '2025-01-08 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:10:19] Production.INFO: count ==826 [2025-01-08 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:10:05 - End Time 2025-01-08 22:10:05 [2025-01-08 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205199', 'tblTempUsageDetail_20' ) start [2025-01-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205199', 'tblTempUsageDetail_20' ) end [2025-01-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205199', 'tblTempVendorCDR_20' ) start [2025-01-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205199', 'tblTempVendorCDR_20' ) end [2025-01-08 22:10:19] Production.INFO: ProcessCDR(1,14205199,1,1,2) [2025-01-08 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205199', 'tblTempUsageDetail_20' ) start [2025-01-08 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205199', 'tblTempUsageDetail_20' ) end [2025-01-08 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:10:22] Production.INFO: ==21007== Releasing lock... [2025-01-08 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:11:04 [end_date_ymd] => 2025-01-08 22:11:04 [RateCDR] => 1 ) [2025-01-08 22:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:11:04' and `end` < '2025-01-08 22:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:11:18] Production.INFO: count ==794 [2025-01-08 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:11:04 - End Time 2025-01-08 22:11:04 [2025-01-08 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205205', 'tblTempUsageDetail_20' ) start [2025-01-08 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205205', 'tblTempUsageDetail_20' ) end [2025-01-08 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205205', 'tblTempVendorCDR_20' ) start [2025-01-08 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205205', 'tblTempVendorCDR_20' ) end [2025-01-08 22:11:18] Production.INFO: ProcessCDR(1,14205205,1,1,2) [2025-01-08 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205205', 'tblTempUsageDetail_20' ) start [2025-01-08 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205205', 'tblTempUsageDetail_20' ) end [2025-01-08 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:11:21] Production.INFO: ==21082== Releasing lock... [2025-01-08 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:12:05 [end_date_ymd] => 2025-01-08 22:12:05 [RateCDR] => 1 ) [2025-01-08 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:12:05' and `end` < '2025-01-08 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:12:18] Production.INFO: count ==794 [2025-01-08 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:12:05 - End Time 2025-01-08 22:12:05 [2025-01-08 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205210', 'tblTempUsageDetail_20' ) start [2025-01-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205210', 'tblTempUsageDetail_20' ) end [2025-01-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205210', 'tblTempVendorCDR_20' ) start [2025-01-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205210', 'tblTempVendorCDR_20' ) end [2025-01-08 22:12:18] Production.INFO: ProcessCDR(1,14205210,1,1,2) [2025-01-08 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205210', 'tblTempUsageDetail_20' ) start [2025-01-08 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205210', 'tblTempUsageDetail_20' ) end [2025-01-08 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:12:21] Production.INFO: ==21155== Releasing lock... [2025-01-08 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:13:04 [end_date_ymd] => 2025-01-08 22:13:04 [RateCDR] => 1 ) [2025-01-08 22:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:13:04' and `end` < '2025-01-08 22:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:13:17] Production.INFO: count ==795 [2025-01-08 22:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:13:04 - End Time 2025-01-08 22:13:04 [2025-01-08 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205215', 'tblTempUsageDetail_20' ) start [2025-01-08 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205215', 'tblTempUsageDetail_20' ) end [2025-01-08 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205215', 'tblTempVendorCDR_20' ) start [2025-01-08 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205215', 'tblTempVendorCDR_20' ) end [2025-01-08 22:13:18] Production.INFO: ProcessCDR(1,14205215,1,1,2) [2025-01-08 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205215', 'tblTempUsageDetail_20' ) start [2025-01-08 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205215', 'tblTempUsageDetail_20' ) end [2025-01-08 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:13:22] Production.INFO: ==21263== Releasing lock... [2025-01-08 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:13:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:14:05 [end_date_ymd] => 2025-01-08 22:14:05 [RateCDR] => 1 ) [2025-01-08 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:14:05' and `end` < '2025-01-08 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:14:18] Production.INFO: count ==793 [2025-01-08 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:14:05 - End Time 2025-01-08 22:14:05 [2025-01-08 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205220', 'tblTempUsageDetail_20' ) start [2025-01-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205220', 'tblTempUsageDetail_20' ) end [2025-01-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205220', 'tblTempVendorCDR_20' ) start [2025-01-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205220', 'tblTempVendorCDR_20' ) end [2025-01-08 22:14:18] Production.INFO: ProcessCDR(1,14205220,1,1,2) [2025-01-08 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205220', 'tblTempUsageDetail_20' ) start [2025-01-08 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205220', 'tblTempUsageDetail_20' ) end [2025-01-08 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:14:22] Production.INFO: ==21336== Releasing lock... [2025-01-08 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:15:05 [end_date_ymd] => 2025-01-08 22:15:05 [RateCDR] => 1 ) [2025-01-08 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:15:05' and `end` < '2025-01-08 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:15:18] Production.INFO: count ==795 [2025-01-08 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:15:05 - End Time 2025-01-08 22:15:05 [2025-01-08 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205225', 'tblTempUsageDetail_20' ) start [2025-01-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205225', 'tblTempUsageDetail_20' ) end [2025-01-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205225', 'tblTempVendorCDR_20' ) start [2025-01-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205225', 'tblTempVendorCDR_20' ) end [2025-01-08 22:15:18] Production.INFO: ProcessCDR(1,14205225,1,1,2) [2025-01-08 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205225', 'tblTempUsageDetail_20' ) start [2025-01-08 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205225', 'tblTempUsageDetail_20' ) end [2025-01-08 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:15:21] Production.INFO: ==21408== Releasing lock... [2025-01-08 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:15:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:16:05 [end_date_ymd] => 2025-01-08 22:16:05 [RateCDR] => 1 ) [2025-01-08 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:16:05' and `end` < '2025-01-08 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:16:18] Production.INFO: count ==795 [2025-01-08 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:16:05 - End Time 2025-01-08 22:16:05 [2025-01-08 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205230', 'tblTempUsageDetail_20' ) start [2025-01-08 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205230', 'tblTempUsageDetail_20' ) end [2025-01-08 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205230', 'tblTempVendorCDR_20' ) start [2025-01-08 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205230', 'tblTempVendorCDR_20' ) end [2025-01-08 22:16:18] Production.INFO: ProcessCDR(1,14205230,1,1,2) [2025-01-08 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205230', 'tblTempUsageDetail_20' ) start [2025-01-08 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205230', 'tblTempUsageDetail_20' ) end [2025-01-08 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:16:22] Production.INFO: ==21483== Releasing lock... [2025-01-08 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:17:05 [end_date_ymd] => 2025-01-08 22:17:05 [RateCDR] => 1 ) [2025-01-08 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:17:05' and `end` < '2025-01-08 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:17:18] Production.INFO: count ==795 [2025-01-08 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:17:05 - End Time 2025-01-08 22:17:05 [2025-01-08 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205235', 'tblTempUsageDetail_20' ) start [2025-01-08 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205235', 'tblTempUsageDetail_20' ) end [2025-01-08 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205235', 'tblTempVendorCDR_20' ) start [2025-01-08 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205235', 'tblTempVendorCDR_20' ) end [2025-01-08 22:17:18] Production.INFO: ProcessCDR(1,14205235,1,1,2) [2025-01-08 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205235', 'tblTempUsageDetail_20' ) start [2025-01-08 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205235', 'tblTempUsageDetail_20' ) end [2025-01-08 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:17:22] Production.INFO: ==21555== Releasing lock... [2025-01-08 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:17:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:18:04 [end_date_ymd] => 2025-01-08 22:18:04 [RateCDR] => 1 ) [2025-01-08 22:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:18:04' and `end` < '2025-01-08 22:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:18:17] Production.INFO: count ==796 [2025-01-08 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:18:04 - End Time 2025-01-08 22:18:04 [2025-01-08 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205240', 'tblTempUsageDetail_20' ) start [2025-01-08 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205240', 'tblTempUsageDetail_20' ) end [2025-01-08 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205240', 'tblTempVendorCDR_20' ) start [2025-01-08 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205240', 'tblTempVendorCDR_20' ) end [2025-01-08 22:18:18] Production.INFO: ProcessCDR(1,14205240,1,1,2) [2025-01-08 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205240', 'tblTempUsageDetail_20' ) start [2025-01-08 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205240', 'tblTempUsageDetail_20' ) end [2025-01-08 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:18:22] Production.INFO: ==21629== Releasing lock... [2025-01-08 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:18:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:19:05 [end_date_ymd] => 2025-01-08 22:19:05 [RateCDR] => 1 ) [2025-01-08 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:19:05' and `end` < '2025-01-08 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:19:18] Production.INFO: count ==793 [2025-01-08 22:19:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:19:05 - End Time 2025-01-08 22:19:05 [2025-01-08 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205245', 'tblTempUsageDetail_20' ) start [2025-01-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205245', 'tblTempUsageDetail_20' ) end [2025-01-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205245', 'tblTempVendorCDR_20' ) start [2025-01-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205245', 'tblTempVendorCDR_20' ) end [2025-01-08 22:19:18] Production.INFO: ProcessCDR(1,14205245,1,1,2) [2025-01-08 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205245', 'tblTempUsageDetail_20' ) start [2025-01-08 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205245', 'tblTempUsageDetail_20' ) end [2025-01-08 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:19:21] Production.INFO: ==21699== Releasing lock... [2025-01-08 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:19:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-08 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:20:05 [end_date_ymd] => 2025-01-08 22:20:05 [RateCDR] => 1 ) [2025-01-08 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:20:05' and `end` < '2025-01-08 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:20:18] Production.INFO: count ==794 [2025-01-08 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:20:05 - End Time 2025-01-08 22:20:05 [2025-01-08 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205250', 'tblTempUsageDetail_20' ) start [2025-01-08 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205250', 'tblTempUsageDetail_20' ) end [2025-01-08 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205250', 'tblTempVendorCDR_20' ) start [2025-01-08 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205250', 'tblTempVendorCDR_20' ) end [2025-01-08 22:20:18] Production.INFO: ProcessCDR(1,14205250,1,1,2) [2025-01-08 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205250', 'tblTempUsageDetail_20' ) start [2025-01-08 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205250', 'tblTempUsageDetail_20' ) end [2025-01-08 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:20:23] Production.INFO: ==21773== Releasing lock... [2025-01-08 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:20:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-08 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:21:05 [end_date_ymd] => 2025-01-08 22:21:05 [RateCDR] => 1 ) [2025-01-08 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:21:05' and `end` < '2025-01-08 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:21:19] Production.INFO: count ==777 [2025-01-08 22:21:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:21:05 - End Time 2025-01-08 22:21:05 [2025-01-08 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205256', 'tblTempUsageDetail_20' ) start [2025-01-08 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205256', 'tblTempUsageDetail_20' ) end [2025-01-08 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205256', 'tblTempVendorCDR_20' ) start [2025-01-08 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205256', 'tblTempVendorCDR_20' ) end [2025-01-08 22:21:19] Production.INFO: ProcessCDR(1,14205256,1,1,2) [2025-01-08 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205256', 'tblTempUsageDetail_20' ) start [2025-01-08 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205256', 'tblTempUsageDetail_20' ) end [2025-01-08 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:21:23] Production.INFO: ==21846== Releasing lock... [2025-01-08 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:21:23] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:22:05 [end_date_ymd] => 2025-01-08 22:22:05 [RateCDR] => 1 ) [2025-01-08 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:22:05' and `end` < '2025-01-08 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:22:18] Production.INFO: count ==777 [2025-01-08 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:22:05 - End Time 2025-01-08 22:22:05 [2025-01-08 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205261', 'tblTempUsageDetail_20' ) start [2025-01-08 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205261', 'tblTempUsageDetail_20' ) end [2025-01-08 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205261', 'tblTempVendorCDR_20' ) start [2025-01-08 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205261', 'tblTempVendorCDR_20' ) end [2025-01-08 22:22:18] Production.INFO: ProcessCDR(1,14205261,1,1,2) [2025-01-08 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205261', 'tblTempUsageDetail_20' ) start [2025-01-08 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205261', 'tblTempUsageDetail_20' ) end [2025-01-08 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:22:21] Production.INFO: ==21921== Releasing lock... [2025-01-08 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:22:21] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:23:05 [end_date_ymd] => 2025-01-08 22:23:05 [RateCDR] => 1 ) [2025-01-08 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:23:05' and `end` < '2025-01-08 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:23:18] Production.INFO: count ==777 [2025-01-08 22:23:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:23:05 - End Time 2025-01-08 22:23:05 [2025-01-08 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205266', 'tblTempUsageDetail_20' ) start [2025-01-08 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205266', 'tblTempUsageDetail_20' ) end [2025-01-08 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205266', 'tblTempVendorCDR_20' ) start [2025-01-08 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205266', 'tblTempVendorCDR_20' ) end [2025-01-08 22:23:19] Production.INFO: ProcessCDR(1,14205266,1,1,2) [2025-01-08 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205266', 'tblTempUsageDetail_20' ) start [2025-01-08 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205266', 'tblTempUsageDetail_20' ) end [2025-01-08 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:23:23] Production.INFO: ==21995== Releasing lock... [2025-01-08 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:23:23] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:24:04 [end_date_ymd] => 2025-01-08 22:24:04 [RateCDR] => 1 ) [2025-01-08 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:24:04' and `end` < '2025-01-08 22:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:24:18] Production.INFO: count ==776 [2025-01-08 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:24:04 - End Time 2025-01-08 22:24:04 [2025-01-08 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205271', 'tblTempUsageDetail_20' ) start [2025-01-08 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205271', 'tblTempUsageDetail_20' ) end [2025-01-08 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205271', 'tblTempVendorCDR_20' ) start [2025-01-08 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205271', 'tblTempVendorCDR_20' ) end [2025-01-08 22:24:18] Production.INFO: ProcessCDR(1,14205271,1,1,2) [2025-01-08 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205271', 'tblTempUsageDetail_20' ) start [2025-01-08 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205271', 'tblTempUsageDetail_20' ) end [2025-01-08 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:24:21] Production.INFO: ==22064== Releasing lock... [2025-01-08 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:24:21] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:25:05 [end_date_ymd] => 2025-01-08 22:25:05 [RateCDR] => 1 ) [2025-01-08 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:25:05' and `end` < '2025-01-08 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:25:18] Production.INFO: count ==776 [2025-01-08 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:25:05 - End Time 2025-01-08 22:25:05 [2025-01-08 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205276', 'tblTempUsageDetail_20' ) start [2025-01-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205276', 'tblTempUsageDetail_20' ) end [2025-01-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205276', 'tblTempVendorCDR_20' ) start [2025-01-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205276', 'tblTempVendorCDR_20' ) end [2025-01-08 22:25:18] Production.INFO: ProcessCDR(1,14205276,1,1,2) [2025-01-08 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205276', 'tblTempUsageDetail_20' ) start [2025-01-08 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205276', 'tblTempUsageDetail_20' ) end [2025-01-08 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:25:21] Production.INFO: ==22136== Releasing lock... [2025-01-08 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:25:21] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:26:04 [end_date_ymd] => 2025-01-08 22:26:04 [RateCDR] => 1 ) [2025-01-08 22:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:26:04' and `end` < '2025-01-08 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:26:17] Production.INFO: count ==777 [2025-01-08 22:26:17] Production.ERROR: pbx CDR StartTime 2025-01-08 19:26:04 - End Time 2025-01-08 22:26:04 [2025-01-08 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205281', 'tblTempUsageDetail_20' ) start [2025-01-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205281', 'tblTempUsageDetail_20' ) end [2025-01-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205281', 'tblTempVendorCDR_20' ) start [2025-01-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205281', 'tblTempVendorCDR_20' ) end [2025-01-08 22:26:17] Production.INFO: ProcessCDR(1,14205281,1,1,2) [2025-01-08 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205281', 'tblTempUsageDetail_20' ) start [2025-01-08 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205281', 'tblTempUsageDetail_20' ) end [2025-01-08 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:26:22] Production.INFO: ==22207== Releasing lock... [2025-01-08 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:26:22] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:27:05 [end_date_ymd] => 2025-01-08 22:27:05 [RateCDR] => 1 ) [2025-01-08 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:27:05' and `end` < '2025-01-08 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:27:19] Production.INFO: count ==777 [2025-01-08 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:27:05 - End Time 2025-01-08 22:27:05 [2025-01-08 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205286', 'tblTempUsageDetail_20' ) start [2025-01-08 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205286', 'tblTempUsageDetail_20' ) end [2025-01-08 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205286', 'tblTempVendorCDR_20' ) start [2025-01-08 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205286', 'tblTempVendorCDR_20' ) end [2025-01-08 22:27:19] Production.INFO: ProcessCDR(1,14205286,1,1,2) [2025-01-08 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205286', 'tblTempUsageDetail_20' ) start [2025-01-08 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205286', 'tblTempUsageDetail_20' ) end [2025-01-08 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:27:23] Production.INFO: ==22277== Releasing lock... [2025-01-08 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:27:23] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:28:04 [end_date_ymd] => 2025-01-08 22:28:04 [RateCDR] => 1 ) [2025-01-08 22:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:28:04' and `end` < '2025-01-08 22:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:28:17] Production.INFO: count ==771 [2025-01-08 22:28:17] Production.ERROR: pbx CDR StartTime 2025-01-08 19:28:04 - End Time 2025-01-08 22:28:04 [2025-01-08 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205291', 'tblTempUsageDetail_20' ) start [2025-01-08 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205291', 'tblTempUsageDetail_20' ) end [2025-01-08 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205291', 'tblTempVendorCDR_20' ) start [2025-01-08 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205291', 'tblTempVendorCDR_20' ) end [2025-01-08 22:28:17] Production.INFO: ProcessCDR(1,14205291,1,1,2) [2025-01-08 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205291', 'tblTempUsageDetail_20' ) start [2025-01-08 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205291', 'tblTempUsageDetail_20' ) end [2025-01-08 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:28:22] Production.INFO: ==22387== Releasing lock... [2025-01-08 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:28:22] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:29:05 [end_date_ymd] => 2025-01-08 22:29:05 [RateCDR] => 1 ) [2025-01-08 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:29:05' and `end` < '2025-01-08 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:29:19] Production.INFO: count ==760 [2025-01-08 22:29:20] Production.ERROR: pbx CDR StartTime 2025-01-08 19:29:05 - End Time 2025-01-08 22:29:05 [2025-01-08 22:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205296', 'tblTempUsageDetail_20' ) start [2025-01-08 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205296', 'tblTempUsageDetail_20' ) end [2025-01-08 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205296', 'tblTempVendorCDR_20' ) start [2025-01-08 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205296', 'tblTempVendorCDR_20' ) end [2025-01-08 22:29:20] Production.INFO: ProcessCDR(1,14205296,1,1,2) [2025-01-08 22:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205296', 'tblTempUsageDetail_20' ) start [2025-01-08 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205296', 'tblTempUsageDetail_20' ) end [2025-01-08 22:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:29:23] Production.INFO: ==22457== Releasing lock... [2025-01-08 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:29:23] Production.INFO: 33 MB #Memory Used# [2025-01-08 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:30:05 [end_date_ymd] => 2025-01-08 22:30:05 [RateCDR] => 1 ) [2025-01-08 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:30:05' and `end` < '2025-01-08 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:30:18] Production.INFO: count ==755 [2025-01-08 22:30:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:30:05 - End Time 2025-01-08 22:30:05 [2025-01-08 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205301', 'tblTempUsageDetail_20' ) start [2025-01-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205301', 'tblTempUsageDetail_20' ) end [2025-01-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205301', 'tblTempVendorCDR_20' ) start [2025-01-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205301', 'tblTempVendorCDR_20' ) end [2025-01-08 22:30:18] Production.INFO: ProcessCDR(1,14205301,1,1,2) [2025-01-08 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205301', 'tblTempUsageDetail_20' ) start [2025-01-08 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205301', 'tblTempUsageDetail_20' ) end [2025-01-08 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:30:23] Production.INFO: ==22530== Releasing lock... [2025-01-08 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:30:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-08 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:31:05 [end_date_ymd] => 2025-01-08 22:31:05 [RateCDR] => 1 ) [2025-01-08 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:31:05' and `end` < '2025-01-08 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:31:18] Production.INFO: count ==702 [2025-01-08 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:31:05 - End Time 2025-01-08 22:31:05 [2025-01-08 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205307', 'tblTempUsageDetail_20' ) start [2025-01-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205307', 'tblTempUsageDetail_20' ) end [2025-01-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205307', 'tblTempVendorCDR_20' ) start [2025-01-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205307', 'tblTempVendorCDR_20' ) end [2025-01-08 22:31:18] Production.INFO: ProcessCDR(1,14205307,1,1,2) [2025-01-08 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205307', 'tblTempUsageDetail_20' ) start [2025-01-08 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205307', 'tblTempUsageDetail_20' ) end [2025-01-08 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:31:21] Production.INFO: ==22605== Releasing lock... [2025-01-08 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-08 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:32:05 [end_date_ymd] => 2025-01-08 22:32:05 [RateCDR] => 1 ) [2025-01-08 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:32:05' and `end` < '2025-01-08 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:32:18] Production.INFO: count ==701 [2025-01-08 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:32:05 - End Time 2025-01-08 22:32:05 [2025-01-08 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205312', 'tblTempUsageDetail_20' ) start [2025-01-08 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205312', 'tblTempUsageDetail_20' ) end [2025-01-08 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205312', 'tblTempVendorCDR_20' ) start [2025-01-08 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205312', 'tblTempVendorCDR_20' ) end [2025-01-08 22:32:18] Production.INFO: ProcessCDR(1,14205312,1,1,2) [2025-01-08 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205312', 'tblTempUsageDetail_20' ) start [2025-01-08 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205312', 'tblTempUsageDetail_20' ) end [2025-01-08 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:32:21] Production.INFO: ==22674== Releasing lock... [2025-01-08 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-08 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:33:05 [end_date_ymd] => 2025-01-08 22:33:05 [RateCDR] => 1 ) [2025-01-08 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:33:05' and `end` < '2025-01-08 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:33:20] Production.INFO: count ==691 [2025-01-08 22:33:20] Production.ERROR: pbx CDR StartTime 2025-01-08 19:33:05 - End Time 2025-01-08 22:33:05 [2025-01-08 22:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205317', 'tblTempUsageDetail_20' ) start [2025-01-08 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205317', 'tblTempUsageDetail_20' ) end [2025-01-08 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205317', 'tblTempVendorCDR_20' ) start [2025-01-08 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205317', 'tblTempVendorCDR_20' ) end [2025-01-08 22:33:20] Production.INFO: ProcessCDR(1,14205317,1,1,2) [2025-01-08 22:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205317', 'tblTempUsageDetail_20' ) start [2025-01-08 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205317', 'tblTempUsageDetail_20' ) end [2025-01-08 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:33:23] Production.INFO: ==22745== Releasing lock... [2025-01-08 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:33:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:34:05 [end_date_ymd] => 2025-01-08 22:34:05 [RateCDR] => 1 ) [2025-01-08 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:34:05' and `end` < '2025-01-08 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:34:18] Production.INFO: count ==690 [2025-01-08 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:34:05 - End Time 2025-01-08 22:34:05 [2025-01-08 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205322', 'tblTempUsageDetail_20' ) start [2025-01-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205322', 'tblTempUsageDetail_20' ) end [2025-01-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205322', 'tblTempVendorCDR_20' ) start [2025-01-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205322', 'tblTempVendorCDR_20' ) end [2025-01-08 22:34:18] Production.INFO: ProcessCDR(1,14205322,1,1,2) [2025-01-08 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205322', 'tblTempUsageDetail_20' ) start [2025-01-08 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205322', 'tblTempUsageDetail_20' ) end [2025-01-08 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:34:21] Production.INFO: ==22817== Releasing lock... [2025-01-08 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:35:04 [end_date_ymd] => 2025-01-08 22:35:04 [RateCDR] => 1 ) [2025-01-08 22:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:35:04' and `end` < '2025-01-08 22:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:35:19] Production.INFO: count ==689 [2025-01-08 22:35:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:35:04 - End Time 2025-01-08 22:35:04 [2025-01-08 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205327', 'tblTempUsageDetail_20' ) start [2025-01-08 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205327', 'tblTempUsageDetail_20' ) end [2025-01-08 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205327', 'tblTempVendorCDR_20' ) start [2025-01-08 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205327', 'tblTempVendorCDR_20' ) end [2025-01-08 22:35:19] Production.INFO: ProcessCDR(1,14205327,1,1,2) [2025-01-08 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205327', 'tblTempUsageDetail_20' ) start [2025-01-08 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205327', 'tblTempUsageDetail_20' ) end [2025-01-08 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:35:22] Production.INFO: ==22888== Releasing lock... [2025-01-08 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:36:05 [end_date_ymd] => 2025-01-08 22:36:05 [RateCDR] => 1 ) [2025-01-08 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:36:05' and `end` < '2025-01-08 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:36:18] Production.INFO: count ==688 [2025-01-08 22:36:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:36:05 - End Time 2025-01-08 22:36:05 [2025-01-08 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205332', 'tblTempUsageDetail_20' ) start [2025-01-08 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205332', 'tblTempUsageDetail_20' ) end [2025-01-08 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205332', 'tblTempVendorCDR_20' ) start [2025-01-08 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205332', 'tblTempVendorCDR_20' ) end [2025-01-08 22:36:19] Production.INFO: ProcessCDR(1,14205332,1,1,2) [2025-01-08 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205332', 'tblTempUsageDetail_20' ) start [2025-01-08 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205332', 'tblTempUsageDetail_20' ) end [2025-01-08 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:36:22] Production.INFO: ==22958== Releasing lock... [2025-01-08 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:37:04 [end_date_ymd] => 2025-01-08 22:37:04 [RateCDR] => 1 ) [2025-01-08 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:37:04' and `end` < '2025-01-08 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:37:17] Production.INFO: count ==687 [2025-01-08 22:37:17] Production.ERROR: pbx CDR StartTime 2025-01-08 19:37:04 - End Time 2025-01-08 22:37:04 [2025-01-08 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205337', 'tblTempUsageDetail_20' ) start [2025-01-08 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205337', 'tblTempUsageDetail_20' ) end [2025-01-08 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205337', 'tblTempVendorCDR_20' ) start [2025-01-08 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205337', 'tblTempVendorCDR_20' ) end [2025-01-08 22:37:17] Production.INFO: ProcessCDR(1,14205337,1,1,2) [2025-01-08 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205337', 'tblTempUsageDetail_20' ) start [2025-01-08 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205337', 'tblTempUsageDetail_20' ) end [2025-01-08 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:37:21] Production.INFO: ==23032== Releasing lock... [2025-01-08 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:38:05 [end_date_ymd] => 2025-01-08 22:38:05 [RateCDR] => 1 ) [2025-01-08 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:38:05' and `end` < '2025-01-08 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:38:19] Production.INFO: count ==687 [2025-01-08 22:38:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:38:05 - End Time 2025-01-08 22:38:05 [2025-01-08 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205342', 'tblTempUsageDetail_20' ) start [2025-01-08 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205342', 'tblTempUsageDetail_20' ) end [2025-01-08 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205342', 'tblTempVendorCDR_20' ) start [2025-01-08 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205342', 'tblTempVendorCDR_20' ) end [2025-01-08 22:38:19] Production.INFO: ProcessCDR(1,14205342,1,1,2) [2025-01-08 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205342', 'tblTempUsageDetail_20' ) start [2025-01-08 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205342', 'tblTempUsageDetail_20' ) end [2025-01-08 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:38:22] Production.INFO: ==23103== Releasing lock... [2025-01-08 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:39:05 [end_date_ymd] => 2025-01-08 22:39:05 [RateCDR] => 1 ) [2025-01-08 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:39:05' and `end` < '2025-01-08 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:39:18] Production.INFO: count ==687 [2025-01-08 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:39:05 - End Time 2025-01-08 22:39:05 [2025-01-08 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205347', 'tblTempUsageDetail_20' ) start [2025-01-08 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205347', 'tblTempUsageDetail_20' ) end [2025-01-08 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205347', 'tblTempVendorCDR_20' ) start [2025-01-08 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205347', 'tblTempVendorCDR_20' ) end [2025-01-08 22:39:18] Production.INFO: ProcessCDR(1,14205347,1,1,2) [2025-01-08 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205347', 'tblTempUsageDetail_20' ) start [2025-01-08 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205347', 'tblTempUsageDetail_20' ) end [2025-01-08 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:39:21] Production.INFO: ==23175== Releasing lock... [2025-01-08 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:40:05 [end_date_ymd] => 2025-01-08 22:40:05 [RateCDR] => 1 ) [2025-01-08 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:40:05' and `end` < '2025-01-08 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:40:19] Production.INFO: count ==686 [2025-01-08 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:40:05 - End Time 2025-01-08 22:40:05 [2025-01-08 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205352', 'tblTempUsageDetail_20' ) start [2025-01-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205352', 'tblTempUsageDetail_20' ) end [2025-01-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205352', 'tblTempVendorCDR_20' ) start [2025-01-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205352', 'tblTempVendorCDR_20' ) end [2025-01-08 22:40:19] Production.INFO: ProcessCDR(1,14205352,1,1,2) [2025-01-08 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205352', 'tblTempUsageDetail_20' ) start [2025-01-08 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205352', 'tblTempUsageDetail_20' ) end [2025-01-08 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:40:22] Production.INFO: ==23259== Releasing lock... [2025-01-08 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:41:05 [end_date_ymd] => 2025-01-08 22:41:05 [RateCDR] => 1 ) [2025-01-08 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:41:05' and `end` < '2025-01-08 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:41:19] Production.INFO: count ==671 [2025-01-08 22:41:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:41:05 - End Time 2025-01-08 22:41:05 [2025-01-08 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205358', 'tblTempUsageDetail_20' ) start [2025-01-08 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205358', 'tblTempUsageDetail_20' ) end [2025-01-08 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205358', 'tblTempVendorCDR_20' ) start [2025-01-08 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205358', 'tblTempVendorCDR_20' ) end [2025-01-08 22:41:19] Production.INFO: ProcessCDR(1,14205358,1,1,2) [2025-01-08 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205358', 'tblTempUsageDetail_20' ) start [2025-01-08 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205358', 'tblTempUsageDetail_20' ) end [2025-01-08 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:41:23] Production.INFO: ==23366== Releasing lock... [2025-01-08 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:42:05 [end_date_ymd] => 2025-01-08 22:42:05 [RateCDR] => 1 ) [2025-01-08 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:42:05' and `end` < '2025-01-08 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:42:19] Production.INFO: count ==671 [2025-01-08 22:42:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:42:05 - End Time 2025-01-08 22:42:05 [2025-01-08 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205363', 'tblTempUsageDetail_20' ) start [2025-01-08 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205363', 'tblTempUsageDetail_20' ) end [2025-01-08 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205363', 'tblTempVendorCDR_20' ) start [2025-01-08 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205363', 'tblTempVendorCDR_20' ) end [2025-01-08 22:42:19] Production.INFO: ProcessCDR(1,14205363,1,1,2) [2025-01-08 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205363', 'tblTempUsageDetail_20' ) start [2025-01-08 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205363', 'tblTempUsageDetail_20' ) end [2025-01-08 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:42:22] Production.INFO: ==23471== Releasing lock... [2025-01-08 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:43:04 [end_date_ymd] => 2025-01-08 22:43:04 [RateCDR] => 1 ) [2025-01-08 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:43:04' and `end` < '2025-01-08 22:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:43:17] Production.INFO: count ==669 [2025-01-08 22:43:17] Production.ERROR: pbx CDR StartTime 2025-01-08 19:43:04 - End Time 2025-01-08 22:43:04 [2025-01-08 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205368', 'tblTempUsageDetail_20' ) start [2025-01-08 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205368', 'tblTempUsageDetail_20' ) end [2025-01-08 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205368', 'tblTempVendorCDR_20' ) start [2025-01-08 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205368', 'tblTempVendorCDR_20' ) end [2025-01-08 22:43:17] Production.INFO: ProcessCDR(1,14205368,1,1,2) [2025-01-08 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205368', 'tblTempUsageDetail_20' ) start [2025-01-08 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205368', 'tblTempUsageDetail_20' ) end [2025-01-08 22:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:43:20] Production.INFO: ==23571== Releasing lock... [2025-01-08 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:43:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:44:05 [end_date_ymd] => 2025-01-08 22:44:05 [RateCDR] => 1 ) [2025-01-08 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:44:05' and `end` < '2025-01-08 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:44:18] Production.INFO: count ==667 [2025-01-08 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:44:05 - End Time 2025-01-08 22:44:05 [2025-01-08 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205373', 'tblTempUsageDetail_20' ) start [2025-01-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205373', 'tblTempUsageDetail_20' ) end [2025-01-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205373', 'tblTempVendorCDR_20' ) start [2025-01-08 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205373', 'tblTempVendorCDR_20' ) end [2025-01-08 22:44:18] Production.INFO: ProcessCDR(1,14205373,1,1,2) [2025-01-08 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205373', 'tblTempUsageDetail_20' ) start [2025-01-08 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205373', 'tblTempUsageDetail_20' ) end [2025-01-08 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:44:21] Production.INFO: ==23717== Releasing lock... [2025-01-08 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-08 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:45:05 [end_date_ymd] => 2025-01-08 22:45:05 [RateCDR] => 1 ) [2025-01-08 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:45:05' and `end` < '2025-01-08 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:45:18] Production.INFO: count ==664 [2025-01-08 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:45:05 - End Time 2025-01-08 22:45:05 [2025-01-08 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205378', 'tblTempUsageDetail_20' ) start [2025-01-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205378', 'tblTempUsageDetail_20' ) end [2025-01-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205378', 'tblTempVendorCDR_20' ) start [2025-01-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205378', 'tblTempVendorCDR_20' ) end [2025-01-08 22:45:18] Production.INFO: ProcessCDR(1,14205378,1,1,2) [2025-01-08 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205378', 'tblTempUsageDetail_20' ) start [2025-01-08 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205378', 'tblTempUsageDetail_20' ) end [2025-01-08 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:45:22] Production.INFO: ==23821== Releasing lock... [2025-01-08 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:46:05 [end_date_ymd] => 2025-01-08 22:46:05 [RateCDR] => 1 ) [2025-01-08 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:46:05' and `end` < '2025-01-08 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:46:17] Production.INFO: count ==663 [2025-01-08 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:46:05 - End Time 2025-01-08 22:46:05 [2025-01-08 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205383', 'tblTempUsageDetail_20' ) start [2025-01-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205383', 'tblTempUsageDetail_20' ) end [2025-01-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205383', 'tblTempVendorCDR_20' ) start [2025-01-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205383', 'tblTempVendorCDR_20' ) end [2025-01-08 22:46:18] Production.INFO: ProcessCDR(1,14205383,1,1,2) [2025-01-08 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205383', 'tblTempUsageDetail_20' ) start [2025-01-08 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205383', 'tblTempUsageDetail_20' ) end [2025-01-08 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:46:21] Production.INFO: ==23924== Releasing lock... [2025-01-08 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:47:05 [end_date_ymd] => 2025-01-08 22:47:05 [RateCDR] => 1 ) [2025-01-08 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:47:05' and `end` < '2025-01-08 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:47:19] Production.INFO: count ==663 [2025-01-08 22:47:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:47:05 - End Time 2025-01-08 22:47:05 [2025-01-08 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205388', 'tblTempUsageDetail_20' ) start [2025-01-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205388', 'tblTempUsageDetail_20' ) end [2025-01-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205388', 'tblTempVendorCDR_20' ) start [2025-01-08 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205388', 'tblTempVendorCDR_20' ) end [2025-01-08 22:47:19] Production.INFO: ProcessCDR(1,14205388,1,1,2) [2025-01-08 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205388', 'tblTempUsageDetail_20' ) start [2025-01-08 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205388', 'tblTempUsageDetail_20' ) end [2025-01-08 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:47:22] Production.INFO: ==24028== Releasing lock... [2025-01-08 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:48:05 [end_date_ymd] => 2025-01-08 22:48:05 [RateCDR] => 1 ) [2025-01-08 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:48:05' and `end` < '2025-01-08 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:48:19] Production.INFO: count ==663 [2025-01-08 22:48:20] Production.ERROR: pbx CDR StartTime 2025-01-08 19:48:05 - End Time 2025-01-08 22:48:05 [2025-01-08 22:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205393', 'tblTempUsageDetail_20' ) start [2025-01-08 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205393', 'tblTempUsageDetail_20' ) end [2025-01-08 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205393', 'tblTempVendorCDR_20' ) start [2025-01-08 22:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205393', 'tblTempVendorCDR_20' ) end [2025-01-08 22:48:20] Production.INFO: ProcessCDR(1,14205393,1,1,2) [2025-01-08 22:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205393', 'tblTempUsageDetail_20' ) start [2025-01-08 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205393', 'tblTempUsageDetail_20' ) end [2025-01-08 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:48:23] Production.INFO: ==24134== Releasing lock... [2025-01-08 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:48:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:49:05 [end_date_ymd] => 2025-01-08 22:49:05 [RateCDR] => 1 ) [2025-01-08 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:49:05' and `end` < '2025-01-08 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:49:18] Production.INFO: count ==663 [2025-01-08 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:49:05 - End Time 2025-01-08 22:49:05 [2025-01-08 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205398', 'tblTempUsageDetail_20' ) start [2025-01-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205398', 'tblTempUsageDetail_20' ) end [2025-01-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205398', 'tblTempVendorCDR_20' ) start [2025-01-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205398', 'tblTempVendorCDR_20' ) end [2025-01-08 22:49:18] Production.INFO: ProcessCDR(1,14205398,1,1,2) [2025-01-08 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205398', 'tblTempUsageDetail_20' ) start [2025-01-08 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205398', 'tblTempUsageDetail_20' ) end [2025-01-08 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:49:21] Production.INFO: ==24237== Releasing lock... [2025-01-08 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:49:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:50:05 [end_date_ymd] => 2025-01-08 22:50:05 [RateCDR] => 1 ) [2025-01-08 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:50:05' and `end` < '2025-01-08 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:50:18] Production.INFO: count ==653 [2025-01-08 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:50:05 - End Time 2025-01-08 22:50:05 [2025-01-08 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205403', 'tblTempUsageDetail_20' ) start [2025-01-08 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205403', 'tblTempUsageDetail_20' ) end [2025-01-08 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205403', 'tblTempVendorCDR_20' ) start [2025-01-08 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205403', 'tblTempVendorCDR_20' ) end [2025-01-08 22:50:18] Production.INFO: ProcessCDR(1,14205403,1,1,2) [2025-01-08 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205403', 'tblTempUsageDetail_20' ) start [2025-01-08 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205403', 'tblTempUsageDetail_20' ) end [2025-01-08 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:50:21] Production.INFO: ==24344== Releasing lock... [2025-01-08 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:50:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-08 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:51:04 [end_date_ymd] => 2025-01-08 22:51:04 [RateCDR] => 1 ) [2025-01-08 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:51:04' and `end` < '2025-01-08 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:51:20] Production.INFO: count ==625 [2025-01-08 22:51:20] Production.ERROR: pbx CDR StartTime 2025-01-08 19:51:04 - End Time 2025-01-08 22:51:04 [2025-01-08 22:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205405', 'tblTempUsageDetail_20' ) start [2025-01-08 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205405', 'tblTempUsageDetail_20' ) end [2025-01-08 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205405', 'tblTempVendorCDR_20' ) start [2025-01-08 22:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205405', 'tblTempVendorCDR_20' ) end [2025-01-08 22:51:20] Production.INFO: ProcessCDR(1,14205405,1,1,2) [2025-01-08 22:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205405', 'tblTempUsageDetail_20' ) start [2025-01-08 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205405', 'tblTempUsageDetail_20' ) end [2025-01-08 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:51:23] Production.INFO: ==24454== Releasing lock... [2025-01-08 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:51:23] Production.INFO: 32 MB #Memory Used# [2025-01-08 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:52:04 [end_date_ymd] => 2025-01-08 22:52:04 [RateCDR] => 1 ) [2025-01-08 22:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:52:04' and `end` < '2025-01-08 22:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:52:17] Production.INFO: count ==623 [2025-01-08 22:52:17] Production.ERROR: pbx CDR StartTime 2025-01-08 19:52:04 - End Time 2025-01-08 22:52:04 [2025-01-08 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205414', 'tblTempUsageDetail_20' ) start [2025-01-08 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205414', 'tblTempUsageDetail_20' ) end [2025-01-08 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205414', 'tblTempVendorCDR_20' ) start [2025-01-08 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205414', 'tblTempVendorCDR_20' ) end [2025-01-08 22:52:17] Production.INFO: ProcessCDR(1,14205414,1,1,2) [2025-01-08 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205414', 'tblTempUsageDetail_20' ) start [2025-01-08 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205414', 'tblTempUsageDetail_20' ) end [2025-01-08 22:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:52:20] Production.INFO: ==24568== Releasing lock... [2025-01-08 22:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:52:20] Production.INFO: 32 MB #Memory Used# [2025-01-08 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:53:05 [end_date_ymd] => 2025-01-08 22:53:05 [RateCDR] => 1 ) [2025-01-08 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:53:05' and `end` < '2025-01-08 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:53:20] Production.INFO: count ==619 [2025-01-08 22:53:20] Production.ERROR: pbx CDR StartTime 2025-01-08 19:53:05 - End Time 2025-01-08 22:53:05 [2025-01-08 22:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205419', 'tblTempUsageDetail_20' ) start [2025-01-08 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205419', 'tblTempUsageDetail_20' ) end [2025-01-08 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205419', 'tblTempVendorCDR_20' ) start [2025-01-08 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205419', 'tblTempVendorCDR_20' ) end [2025-01-08 22:53:20] Production.INFO: ProcessCDR(1,14205419,1,1,2) [2025-01-08 22:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205419', 'tblTempUsageDetail_20' ) start [2025-01-08 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205419', 'tblTempUsageDetail_20' ) end [2025-01-08 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:53:23] Production.INFO: ==24705== Releasing lock... [2025-01-08 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:53:23] Production.INFO: 32 MB #Memory Used# [2025-01-08 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:54:05 [end_date_ymd] => 2025-01-08 22:54:05 [RateCDR] => 1 ) [2025-01-08 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:54:05' and `end` < '2025-01-08 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:54:19] Production.INFO: count ==620 [2025-01-08 22:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 19:54:05 - End Time 2025-01-08 22:54:05 [2025-01-08 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205424', 'tblTempUsageDetail_20' ) start [2025-01-08 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205424', 'tblTempUsageDetail_20' ) end [2025-01-08 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205424', 'tblTempVendorCDR_20' ) start [2025-01-08 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205424', 'tblTempVendorCDR_20' ) end [2025-01-08 22:54:19] Production.INFO: ProcessCDR(1,14205424,1,1,2) [2025-01-08 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205424', 'tblTempUsageDetail_20' ) start [2025-01-08 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205424', 'tblTempUsageDetail_20' ) end [2025-01-08 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:54:22] Production.INFO: ==24847== Releasing lock... [2025-01-08 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:54:22] Production.INFO: 32 MB #Memory Used# [2025-01-08 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:55:04 [end_date_ymd] => 2025-01-08 22:55:04 [RateCDR] => 1 ) [2025-01-08 22:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:55:04' and `end` < '2025-01-08 22:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:55:18] Production.INFO: count ==620 [2025-01-08 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:55:04 - End Time 2025-01-08 22:55:04 [2025-01-08 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205429', 'tblTempUsageDetail_20' ) start [2025-01-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205429', 'tblTempUsageDetail_20' ) end [2025-01-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205429', 'tblTempVendorCDR_20' ) start [2025-01-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205429', 'tblTempVendorCDR_20' ) end [2025-01-08 22:55:18] Production.INFO: ProcessCDR(1,14205429,1,1,2) [2025-01-08 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205429', 'tblTempUsageDetail_20' ) start [2025-01-08 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205429', 'tblTempUsageDetail_20' ) end [2025-01-08 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:55:21] Production.INFO: ==24988== Releasing lock... [2025-01-08 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:55:21] Production.INFO: 32 MB #Memory Used# [2025-01-08 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:56:05 [end_date_ymd] => 2025-01-08 22:56:05 [RateCDR] => 1 ) [2025-01-08 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:56:05' and `end` < '2025-01-08 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:56:18] Production.INFO: count ==620 [2025-01-08 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-08 19:56:05 - End Time 2025-01-08 22:56:05 [2025-01-08 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205434', 'tblTempUsageDetail_20' ) start [2025-01-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205434', 'tblTempUsageDetail_20' ) end [2025-01-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205434', 'tblTempVendorCDR_20' ) start [2025-01-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205434', 'tblTempVendorCDR_20' ) end [2025-01-08 22:56:18] Production.INFO: ProcessCDR(1,14205434,1,1,2) [2025-01-08 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205434', 'tblTempUsageDetail_20' ) start [2025-01-08 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205434', 'tblTempUsageDetail_20' ) end [2025-01-08 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:56:21] Production.INFO: ==25098== Releasing lock... [2025-01-08 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:56:21] Production.INFO: 32 MB #Memory Used# [2025-01-08 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:57:05 [end_date_ymd] => 2025-01-08 22:57:05 [RateCDR] => 1 ) [2025-01-08 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:57:05' and `end` < '2025-01-08 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:57:20] Production.INFO: count ==620 [2025-01-08 22:57:20] Production.ERROR: pbx CDR StartTime 2025-01-08 19:57:05 - End Time 2025-01-08 22:57:05 [2025-01-08 22:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205439', 'tblTempUsageDetail_20' ) start [2025-01-08 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205439', 'tblTempUsageDetail_20' ) end [2025-01-08 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205439', 'tblTempVendorCDR_20' ) start [2025-01-08 22:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205439', 'tblTempVendorCDR_20' ) end [2025-01-08 22:57:20] Production.INFO: ProcessCDR(1,14205439,1,1,2) [2025-01-08 22:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205439', 'tblTempUsageDetail_20' ) start [2025-01-08 22:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205439', 'tblTempUsageDetail_20' ) end [2025-01-08 22:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:57:24] Production.INFO: ==25204== Releasing lock... [2025-01-08 22:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:57:24] Production.INFO: 32 MB #Memory Used# [2025-01-08 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:58:04 [end_date_ymd] => 2025-01-08 22:58:04 [RateCDR] => 1 ) [2025-01-08 22:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:58:04' and `end` < '2025-01-08 22:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:58:17] Production.INFO: count ==619 [2025-01-08 22:58:17] Production.ERROR: pbx CDR StartTime 2025-01-08 19:58:04 - End Time 2025-01-08 22:58:04 [2025-01-08 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205444', 'tblTempUsageDetail_20' ) start [2025-01-08 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205444', 'tblTempUsageDetail_20' ) end [2025-01-08 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205444', 'tblTempVendorCDR_20' ) start [2025-01-08 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205444', 'tblTempVendorCDR_20' ) end [2025-01-08 22:58:17] Production.INFO: ProcessCDR(1,14205444,1,1,2) [2025-01-08 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205444', 'tblTempUsageDetail_20' ) start [2025-01-08 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205444', 'tblTempUsageDetail_20' ) end [2025-01-08 22:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:58:20] Production.INFO: ==25311== Releasing lock... [2025-01-08 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:58:20] Production.INFO: 32 MB #Memory Used# [2025-01-08 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 19:59:05 [end_date_ymd] => 2025-01-08 22:59:05 [RateCDR] => 1 ) [2025-01-08 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 19:59:05' and `end` < '2025-01-08 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 22:59:21] Production.INFO: count ==619 [2025-01-08 22:59:21] Production.ERROR: pbx CDR StartTime 2025-01-08 19:59:05 - End Time 2025-01-08 22:59:05 [2025-01-08 22:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 22:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205449', 'tblTempUsageDetail_20' ) start [2025-01-08 22:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205449', 'tblTempUsageDetail_20' ) end [2025-01-08 22:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205449', 'tblTempVendorCDR_20' ) start [2025-01-08 22:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205449', 'tblTempVendorCDR_20' ) end [2025-01-08 22:59:21] Production.INFO: ProcessCDR(1,14205449,1,1,2) [2025-01-08 22:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 22:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205449', 'tblTempUsageDetail_20' ) start [2025-01-08 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205449', 'tblTempUsageDetail_20' ) end [2025-01-08 22:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 22:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 22:59:24] Production.INFO: ==25419== Releasing lock... [2025-01-08 22:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 22:59:24] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:00:05 [end_date_ymd] => 2025-01-08 23:00:05 [RateCDR] => 1 ) [2025-01-08 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:00:05' and `end` < '2025-01-08 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:00:19] Production.INFO: count ==618 [2025-01-08 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:00:05 - End Time 2025-01-08 23:00:05 [2025-01-08 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205454', 'tblTempUsageDetail_20' ) start [2025-01-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205454', 'tblTempUsageDetail_20' ) end [2025-01-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205454', 'tblTempVendorCDR_20' ) start [2025-01-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205454', 'tblTempVendorCDR_20' ) end [2025-01-08 23:00:19] Production.INFO: ProcessCDR(1,14205454,1,1,2) [2025-01-08 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205454', 'tblTempUsageDetail_20' ) start [2025-01-08 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205454', 'tblTempUsageDetail_20' ) end [2025-01-08 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:00:23] Production.INFO: ==25567== Releasing lock... [2025-01-08 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:00:23] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:01:04 [end_date_ymd] => 2025-01-08 23:01:04 [RateCDR] => 1 ) [2025-01-08 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:01:04' and `end` < '2025-01-08 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:01:19] Production.INFO: count ==615 [2025-01-08 23:01:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:01:04 - End Time 2025-01-08 23:01:04 [2025-01-08 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205460', 'tblTempUsageDetail_20' ) start [2025-01-08 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205460', 'tblTempUsageDetail_20' ) end [2025-01-08 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205460', 'tblTempVendorCDR_20' ) start [2025-01-08 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205460', 'tblTempVendorCDR_20' ) end [2025-01-08 23:01:19] Production.INFO: ProcessCDR(1,14205460,1,1,2) [2025-01-08 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205460', 'tblTempUsageDetail_20' ) start [2025-01-08 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205460', 'tblTempUsageDetail_20' ) end [2025-01-08 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:01:22] Production.INFO: ==25771== Releasing lock... [2025-01-08 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:01:22] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:02:05 [end_date_ymd] => 2025-01-08 23:02:05 [RateCDR] => 1 ) [2025-01-08 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:02:05' and `end` < '2025-01-08 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:02:21] Production.INFO: count ==616 [2025-01-08 23:02:21] Production.ERROR: pbx CDR StartTime 2025-01-08 20:02:05 - End Time 2025-01-08 23:02:05 [2025-01-08 23:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205465', 'tblTempUsageDetail_20' ) start [2025-01-08 23:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205465', 'tblTempUsageDetail_20' ) end [2025-01-08 23:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205465', 'tblTempVendorCDR_20' ) start [2025-01-08 23:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205465', 'tblTempVendorCDR_20' ) end [2025-01-08 23:02:21] Production.INFO: ProcessCDR(1,14205465,1,1,2) [2025-01-08 23:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205465', 'tblTempUsageDetail_20' ) start [2025-01-08 23:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205465', 'tblTempUsageDetail_20' ) end [2025-01-08 23:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:02:24] Production.INFO: ==25888== Releasing lock... [2025-01-08 23:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:02:24] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:03:05 [end_date_ymd] => 2025-01-08 23:03:05 [RateCDR] => 1 ) [2025-01-08 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:03:05' and `end` < '2025-01-08 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:03:18] Production.INFO: count ==616 [2025-01-08 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:03:05 - End Time 2025-01-08 23:03:05 [2025-01-08 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205470', 'tblTempUsageDetail_20' ) start [2025-01-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205470', 'tblTempUsageDetail_20' ) end [2025-01-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205470', 'tblTempVendorCDR_20' ) start [2025-01-08 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205470', 'tblTempVendorCDR_20' ) end [2025-01-08 23:03:18] Production.INFO: ProcessCDR(1,14205470,1,1,2) [2025-01-08 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205470', 'tblTempUsageDetail_20' ) start [2025-01-08 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205470', 'tblTempUsageDetail_20' ) end [2025-01-08 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:03:21] Production.INFO: ==26013== Releasing lock... [2025-01-08 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:03:21] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:04:05 [end_date_ymd] => 2025-01-08 23:04:05 [RateCDR] => 1 ) [2025-01-08 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:04:05' and `end` < '2025-01-08 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:04:18] Production.INFO: count ==616 [2025-01-08 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:04:05 - End Time 2025-01-08 23:04:05 [2025-01-08 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205475', 'tblTempUsageDetail_20' ) start [2025-01-08 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205475', 'tblTempUsageDetail_20' ) end [2025-01-08 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205475', 'tblTempVendorCDR_20' ) start [2025-01-08 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205475', 'tblTempVendorCDR_20' ) end [2025-01-08 23:04:18] Production.INFO: ProcessCDR(1,14205475,1,1,2) [2025-01-08 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205475', 'tblTempUsageDetail_20' ) start [2025-01-08 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205475', 'tblTempUsageDetail_20' ) end [2025-01-08 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:04:22] Production.INFO: ==26142== Releasing lock... [2025-01-08 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:04:22] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:05:04 [end_date_ymd] => 2025-01-08 23:05:04 [RateCDR] => 1 ) [2025-01-08 23:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:05:04' and `end` < '2025-01-08 23:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:05:17] Production.INFO: count ==616 [2025-01-08 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:05:04 - End Time 2025-01-08 23:05:04 [2025-01-08 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205480', 'tblTempUsageDetail_20' ) start [2025-01-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205480', 'tblTempUsageDetail_20' ) end [2025-01-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205480', 'tblTempVendorCDR_20' ) start [2025-01-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205480', 'tblTempVendorCDR_20' ) end [2025-01-08 23:05:18] Production.INFO: ProcessCDR(1,14205480,1,1,2) [2025-01-08 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205480', 'tblTempUsageDetail_20' ) start [2025-01-08 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205480', 'tblTempUsageDetail_20' ) end [2025-01-08 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:05:21] Production.INFO: ==26343== Releasing lock... [2025-01-08 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:05:21] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:06:05 [end_date_ymd] => 2025-01-08 23:06:05 [RateCDR] => 1 ) [2025-01-08 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:06:05' and `end` < '2025-01-08 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:06:22] Production.INFO: count ==617 [2025-01-08 23:06:22] Production.ERROR: pbx CDR StartTime 2025-01-08 20:06:05 - End Time 2025-01-08 23:06:05 [2025-01-08 23:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205485', 'tblTempUsageDetail_20' ) start [2025-01-08 23:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205485', 'tblTempUsageDetail_20' ) end [2025-01-08 23:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205485', 'tblTempVendorCDR_20' ) start [2025-01-08 23:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205485', 'tblTempVendorCDR_20' ) end [2025-01-08 23:06:22] Production.INFO: ProcessCDR(1,14205485,1,1,2) [2025-01-08 23:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205485', 'tblTempUsageDetail_20' ) start [2025-01-08 23:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205485', 'tblTempUsageDetail_20' ) end [2025-01-08 23:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:06:26] Production.INFO: ==26462== Releasing lock... [2025-01-08 23:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:06:26] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:07:04 [end_date_ymd] => 2025-01-08 23:07:04 [RateCDR] => 1 ) [2025-01-08 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:07:04' and `end` < '2025-01-08 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:07:18] Production.INFO: count ==617 [2025-01-08 23:07:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:07:04 - End Time 2025-01-08 23:07:04 [2025-01-08 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205490', 'tblTempUsageDetail_20' ) start [2025-01-08 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205490', 'tblTempUsageDetail_20' ) end [2025-01-08 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205490', 'tblTempVendorCDR_20' ) start [2025-01-08 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205490', 'tblTempVendorCDR_20' ) end [2025-01-08 23:07:18] Production.INFO: ProcessCDR(1,14205490,1,1,2) [2025-01-08 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205490', 'tblTempUsageDetail_20' ) start [2025-01-08 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205490', 'tblTempUsageDetail_20' ) end [2025-01-08 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:07:21] Production.INFO: ==26554== Releasing lock... [2025-01-08 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:07:21] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:08:05 [end_date_ymd] => 2025-01-08 23:08:05 [RateCDR] => 1 ) [2025-01-08 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:08:05' and `end` < '2025-01-08 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:08:21] Production.INFO: count ==617 [2025-01-08 23:08:21] Production.ERROR: pbx CDR StartTime 2025-01-08 20:08:05 - End Time 2025-01-08 23:08:05 [2025-01-08 23:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205495', 'tblTempUsageDetail_20' ) start [2025-01-08 23:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205495', 'tblTempUsageDetail_20' ) end [2025-01-08 23:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205495', 'tblTempVendorCDR_20' ) start [2025-01-08 23:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205495', 'tblTempVendorCDR_20' ) end [2025-01-08 23:08:21] Production.INFO: ProcessCDR(1,14205495,1,1,2) [2025-01-08 23:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205495', 'tblTempUsageDetail_20' ) start [2025-01-08 23:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205495', 'tblTempUsageDetail_20' ) end [2025-01-08 23:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:08:24] Production.INFO: ==26726== Releasing lock... [2025-01-08 23:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:08:24] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:09:05 [end_date_ymd] => 2025-01-08 23:09:05 [RateCDR] => 1 ) [2025-01-08 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:09:05' and `end` < '2025-01-08 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:09:20] Production.INFO: count ==617 [2025-01-08 23:09:20] Production.ERROR: pbx CDR StartTime 2025-01-08 20:09:05 - End Time 2025-01-08 23:09:05 [2025-01-08 23:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205500', 'tblTempUsageDetail_20' ) start [2025-01-08 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205500', 'tblTempUsageDetail_20' ) end [2025-01-08 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205500', 'tblTempVendorCDR_20' ) start [2025-01-08 23:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205500', 'tblTempVendorCDR_20' ) end [2025-01-08 23:09:20] Production.INFO: ProcessCDR(1,14205500,1,1,2) [2025-01-08 23:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205500', 'tblTempUsageDetail_20' ) start [2025-01-08 23:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205500', 'tblTempUsageDetail_20' ) end [2025-01-08 23:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:09:23] Production.INFO: ==26817== Releasing lock... [2025-01-08 23:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:09:23] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:10:05 [end_date_ymd] => 2025-01-08 23:10:05 [RateCDR] => 1 ) [2025-01-08 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:10:05' and `end` < '2025-01-08 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:10:18] Production.INFO: count ==617 [2025-01-08 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:10:05 - End Time 2025-01-08 23:10:05 [2025-01-08 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205506', 'tblTempUsageDetail_20' ) start [2025-01-08 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205506', 'tblTempUsageDetail_20' ) end [2025-01-08 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205506', 'tblTempVendorCDR_20' ) start [2025-01-08 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205506', 'tblTempVendorCDR_20' ) end [2025-01-08 23:10:18] Production.INFO: ProcessCDR(1,14205506,1,1,2) [2025-01-08 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205506', 'tblTempUsageDetail_20' ) start [2025-01-08 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205506', 'tblTempUsageDetail_20' ) end [2025-01-08 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:10:22] Production.INFO: ==26911== Releasing lock... [2025-01-08 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:10:22] Production.INFO: 32 MB #Memory Used# [2025-01-08 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:11:05 [end_date_ymd] => 2025-01-08 23:11:05 [RateCDR] => 1 ) [2025-01-08 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:11:05' and `end` < '2025-01-08 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:11:21] Production.INFO: count ==586 [2025-01-08 23:11:21] Production.ERROR: pbx CDR StartTime 2025-01-08 20:11:05 - End Time 2025-01-08 23:11:05 [2025-01-08 23:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205511', 'tblTempUsageDetail_20' ) start [2025-01-08 23:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205511', 'tblTempUsageDetail_20' ) end [2025-01-08 23:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205511', 'tblTempVendorCDR_20' ) start [2025-01-08 23:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205511', 'tblTempVendorCDR_20' ) end [2025-01-08 23:11:21] Production.INFO: ProcessCDR(1,14205511,1,1,2) [2025-01-08 23:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205511', 'tblTempUsageDetail_20' ) start [2025-01-08 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205511', 'tblTempUsageDetail_20' ) end [2025-01-08 23:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:11:24] Production.INFO: ==27014== Releasing lock... [2025-01-08 23:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:11:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:12:05 [end_date_ymd] => 2025-01-08 23:12:05 [RateCDR] => 1 ) [2025-01-08 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:12:05' and `end` < '2025-01-08 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:12:18] Production.INFO: count ==584 [2025-01-08 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:12:05 - End Time 2025-01-08 23:12:05 [2025-01-08 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205516', 'tblTempUsageDetail_20' ) start [2025-01-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205516', 'tblTempUsageDetail_20' ) end [2025-01-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205516', 'tblTempVendorCDR_20' ) start [2025-01-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205516', 'tblTempVendorCDR_20' ) end [2025-01-08 23:12:18] Production.INFO: ProcessCDR(1,14205516,1,1,2) [2025-01-08 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205516', 'tblTempUsageDetail_20' ) start [2025-01-08 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205516', 'tblTempUsageDetail_20' ) end [2025-01-08 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:12:21] Production.INFO: ==27191== Releasing lock... [2025-01-08 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:13:05 [end_date_ymd] => 2025-01-08 23:13:05 [RateCDR] => 1 ) [2025-01-08 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:13:05' and `end` < '2025-01-08 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:13:18] Production.INFO: count ==584 [2025-01-08 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:13:05 - End Time 2025-01-08 23:13:05 [2025-01-08 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205521', 'tblTempUsageDetail_20' ) start [2025-01-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205521', 'tblTempUsageDetail_20' ) end [2025-01-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205521', 'tblTempVendorCDR_20' ) start [2025-01-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205521', 'tblTempVendorCDR_20' ) end [2025-01-08 23:13:18] Production.INFO: ProcessCDR(1,14205521,1,1,2) [2025-01-08 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205521', 'tblTempUsageDetail_20' ) start [2025-01-08 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205521', 'tblTempUsageDetail_20' ) end [2025-01-08 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:13:21] Production.INFO: ==27304== Releasing lock... [2025-01-08 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:14:04 [end_date_ymd] => 2025-01-08 23:14:04 [RateCDR] => 1 ) [2025-01-08 23:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:14:04' and `end` < '2025-01-08 23:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:14:18] Production.INFO: count ==583 [2025-01-08 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:14:04 - End Time 2025-01-08 23:14:04 [2025-01-08 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205526', 'tblTempUsageDetail_20' ) start [2025-01-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205526', 'tblTempUsageDetail_20' ) end [2025-01-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205526', 'tblTempVendorCDR_20' ) start [2025-01-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205526', 'tblTempVendorCDR_20' ) end [2025-01-08 23:14:18] Production.INFO: ProcessCDR(1,14205526,1,1,2) [2025-01-08 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205526', 'tblTempUsageDetail_20' ) start [2025-01-08 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205526', 'tblTempUsageDetail_20' ) end [2025-01-08 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:14:22] Production.INFO: ==27419== Releasing lock... [2025-01-08 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:14:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:15:05 [end_date_ymd] => 2025-01-08 23:15:05 [RateCDR] => 1 ) [2025-01-08 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:15:05' and `end` < '2025-01-08 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:15:18] Production.INFO: count ==583 [2025-01-08 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:15:05 - End Time 2025-01-08 23:15:05 [2025-01-08 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205531', 'tblTempUsageDetail_20' ) start [2025-01-08 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205531', 'tblTempUsageDetail_20' ) end [2025-01-08 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205531', 'tblTempVendorCDR_20' ) start [2025-01-08 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205531', 'tblTempVendorCDR_20' ) end [2025-01-08 23:15:18] Production.INFO: ProcessCDR(1,14205531,1,1,2) [2025-01-08 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205531', 'tblTempUsageDetail_20' ) start [2025-01-08 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205531', 'tblTempUsageDetail_20' ) end [2025-01-08 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:15:22] Production.INFO: ==27651== Releasing lock... [2025-01-08 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:16:05 [end_date_ymd] => 2025-01-08 23:16:05 [RateCDR] => 1 ) [2025-01-08 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:16:05' and `end` < '2025-01-08 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:16:18] Production.INFO: count ==583 [2025-01-08 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:16:05 - End Time 2025-01-08 23:16:05 [2025-01-08 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205536', 'tblTempUsageDetail_20' ) start [2025-01-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205536', 'tblTempUsageDetail_20' ) end [2025-01-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205536', 'tblTempVendorCDR_20' ) start [2025-01-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205536', 'tblTempVendorCDR_20' ) end [2025-01-08 23:16:18] Production.INFO: ProcessCDR(1,14205536,1,1,2) [2025-01-08 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205536', 'tblTempUsageDetail_20' ) start [2025-01-08 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205536', 'tblTempUsageDetail_20' ) end [2025-01-08 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:16:21] Production.INFO: ==27768== Releasing lock... [2025-01-08 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:17:05 [end_date_ymd] => 2025-01-08 23:17:05 [RateCDR] => 1 ) [2025-01-08 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:17:05' and `end` < '2025-01-08 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:17:18] Production.INFO: count ==583 [2025-01-08 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:17:05 - End Time 2025-01-08 23:17:05 [2025-01-08 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205541', 'tblTempUsageDetail_20' ) start [2025-01-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205541', 'tblTempUsageDetail_20' ) end [2025-01-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205541', 'tblTempVendorCDR_20' ) start [2025-01-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205541', 'tblTempVendorCDR_20' ) end [2025-01-08 23:17:18] Production.INFO: ProcessCDR(1,14205541,1,1,2) [2025-01-08 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205541', 'tblTempUsageDetail_20' ) start [2025-01-08 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205541', 'tblTempUsageDetail_20' ) end [2025-01-08 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:17:21] Production.INFO: ==27865== Releasing lock... [2025-01-08 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:18:05 [end_date_ymd] => 2025-01-08 23:18:05 [RateCDR] => 1 ) [2025-01-08 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:18:05' and `end` < '2025-01-08 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:18:18] Production.INFO: count ==583 [2025-01-08 23:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:18:05 - End Time 2025-01-08 23:18:05 [2025-01-08 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205546', 'tblTempUsageDetail_20' ) start [2025-01-08 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205546', 'tblTempUsageDetail_20' ) end [2025-01-08 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205546', 'tblTempVendorCDR_20' ) start [2025-01-08 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205546', 'tblTempVendorCDR_20' ) end [2025-01-08 23:18:18] Production.INFO: ProcessCDR(1,14205546,1,1,2) [2025-01-08 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205546', 'tblTempUsageDetail_20' ) start [2025-01-08 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205546', 'tblTempUsageDetail_20' ) end [2025-01-08 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:18:21] Production.INFO: ==27957== Releasing lock... [2025-01-08 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:18:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:19:05 [end_date_ymd] => 2025-01-08 23:19:05 [RateCDR] => 1 ) [2025-01-08 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:19:05' and `end` < '2025-01-08 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:19:20] Production.INFO: count ==583 [2025-01-08 23:19:20] Production.ERROR: pbx CDR StartTime 2025-01-08 20:19:05 - End Time 2025-01-08 23:19:05 [2025-01-08 23:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205551', 'tblTempUsageDetail_20' ) start [2025-01-08 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205551', 'tblTempUsageDetail_20' ) end [2025-01-08 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205551', 'tblTempVendorCDR_20' ) start [2025-01-08 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205551', 'tblTempVendorCDR_20' ) end [2025-01-08 23:19:20] Production.INFO: ProcessCDR(1,14205551,1,1,2) [2025-01-08 23:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205551', 'tblTempUsageDetail_20' ) start [2025-01-08 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205551', 'tblTempUsageDetail_20' ) end [2025-01-08 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:19:23] Production.INFO: ==28052== Releasing lock... [2025-01-08 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:19:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:20:05 [end_date_ymd] => 2025-01-08 23:20:05 [RateCDR] => 1 ) [2025-01-08 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:20:05' and `end` < '2025-01-08 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:20:18] Production.INFO: count ==578 [2025-01-08 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:20:05 - End Time 2025-01-08 23:20:05 [2025-01-08 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205557', 'tblTempUsageDetail_20' ) start [2025-01-08 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205557', 'tblTempUsageDetail_20' ) end [2025-01-08 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205557', 'tblTempVendorCDR_20' ) start [2025-01-08 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205557', 'tblTempVendorCDR_20' ) end [2025-01-08 23:20:18] Production.INFO: ProcessCDR(1,14205557,1,1,2) [2025-01-08 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205557', 'tblTempUsageDetail_20' ) start [2025-01-08 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205557', 'tblTempUsageDetail_20' ) end [2025-01-08 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:20:21] Production.INFO: ==28150== Releasing lock... [2025-01-08 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:20:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-08 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:21:05 [end_date_ymd] => 2025-01-08 23:21:05 [RateCDR] => 1 ) [2025-01-08 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:21:05' and `end` < '2025-01-08 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:21:19] Production.INFO: count ==541 [2025-01-08 23:21:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:21:05 - End Time 2025-01-08 23:21:05 [2025-01-08 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205562', 'tblTempUsageDetail_20' ) start [2025-01-08 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205562', 'tblTempUsageDetail_20' ) end [2025-01-08 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205562', 'tblTempVendorCDR_20' ) start [2025-01-08 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205562', 'tblTempVendorCDR_20' ) end [2025-01-08 23:21:19] Production.INFO: ProcessCDR(1,14205562,1,1,2) [2025-01-08 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205562', 'tblTempUsageDetail_20' ) start [2025-01-08 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205562', 'tblTempUsageDetail_20' ) end [2025-01-08 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:21:22] Production.INFO: ==28239== Releasing lock... [2025-01-08 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:21:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-08 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:22:05 [end_date_ymd] => 2025-01-08 23:22:05 [RateCDR] => 1 ) [2025-01-08 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:22:05' and `end` < '2025-01-08 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:22:19] Production.INFO: count ==540 [2025-01-08 23:22:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:22:05 - End Time 2025-01-08 23:22:05 [2025-01-08 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205567', 'tblTempUsageDetail_20' ) start [2025-01-08 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205567', 'tblTempUsageDetail_20' ) end [2025-01-08 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205567', 'tblTempVendorCDR_20' ) start [2025-01-08 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205567', 'tblTempVendorCDR_20' ) end [2025-01-08 23:22:19] Production.INFO: ProcessCDR(1,14205567,1,1,2) [2025-01-08 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205567', 'tblTempUsageDetail_20' ) start [2025-01-08 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205567', 'tblTempUsageDetail_20' ) end [2025-01-08 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:22:22] Production.INFO: ==28319== Releasing lock... [2025-01-08 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:22:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-08 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:23:05 [end_date_ymd] => 2025-01-08 23:23:05 [RateCDR] => 1 ) [2025-01-08 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:23:05' and `end` < '2025-01-08 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:23:18] Production.INFO: count ==535 [2025-01-08 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:23:05 - End Time 2025-01-08 23:23:05 [2025-01-08 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205572', 'tblTempUsageDetail_20' ) start [2025-01-08 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205572', 'tblTempUsageDetail_20' ) end [2025-01-08 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205572', 'tblTempVendorCDR_20' ) start [2025-01-08 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205572', 'tblTempVendorCDR_20' ) end [2025-01-08 23:23:18] Production.INFO: ProcessCDR(1,14205572,1,1,2) [2025-01-08 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205572', 'tblTempUsageDetail_20' ) start [2025-01-08 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205572', 'tblTempUsageDetail_20' ) end [2025-01-08 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:23:21] Production.INFO: ==28393== Releasing lock... [2025-01-08 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:24:05 [end_date_ymd] => 2025-01-08 23:24:05 [RateCDR] => 1 ) [2025-01-08 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:24:05' and `end` < '2025-01-08 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:24:19] Production.INFO: count ==532 [2025-01-08 23:24:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:24:05 - End Time 2025-01-08 23:24:05 [2025-01-08 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205577', 'tblTempUsageDetail_20' ) start [2025-01-08 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205577', 'tblTempUsageDetail_20' ) end [2025-01-08 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205577', 'tblTempVendorCDR_20' ) start [2025-01-08 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205577', 'tblTempVendorCDR_20' ) end [2025-01-08 23:24:19] Production.INFO: ProcessCDR(1,14205577,1,1,2) [2025-01-08 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205577', 'tblTempUsageDetail_20' ) start [2025-01-08 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205577', 'tblTempUsageDetail_20' ) end [2025-01-08 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:24:22] Production.INFO: ==28464== Releasing lock... [2025-01-08 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:24:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:25:04 [end_date_ymd] => 2025-01-08 23:25:04 [RateCDR] => 1 ) [2025-01-08 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:25:04' and `end` < '2025-01-08 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:25:18] Production.INFO: count ==521 [2025-01-08 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:25:04 - End Time 2025-01-08 23:25:04 [2025-01-08 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205582', 'tblTempUsageDetail_20' ) start [2025-01-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205582', 'tblTempUsageDetail_20' ) end [2025-01-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205582', 'tblTempVendorCDR_20' ) start [2025-01-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205582', 'tblTempVendorCDR_20' ) end [2025-01-08 23:25:18] Production.INFO: ProcessCDR(1,14205582,1,1,2) [2025-01-08 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205582', 'tblTempUsageDetail_20' ) start [2025-01-08 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205582', 'tblTempUsageDetail_20' ) end [2025-01-08 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:25:21] Production.INFO: ==28534== Releasing lock... [2025-01-08 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:26:05 [end_date_ymd] => 2025-01-08 23:26:05 [RateCDR] => 1 ) [2025-01-08 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:26:05' and `end` < '2025-01-08 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:26:18] Production.INFO: count ==521 [2025-01-08 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:26:05 - End Time 2025-01-08 23:26:05 [2025-01-08 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205587', 'tblTempUsageDetail_20' ) start [2025-01-08 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205587', 'tblTempUsageDetail_20' ) end [2025-01-08 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205587', 'tblTempVendorCDR_20' ) start [2025-01-08 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205587', 'tblTempVendorCDR_20' ) end [2025-01-08 23:26:18] Production.INFO: ProcessCDR(1,14205587,1,1,2) [2025-01-08 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205587', 'tblTempUsageDetail_20' ) start [2025-01-08 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205587', 'tblTempUsageDetail_20' ) end [2025-01-08 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:26:21] Production.INFO: ==28606== Releasing lock... [2025-01-08 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:27:05 [end_date_ymd] => 2025-01-08 23:27:05 [RateCDR] => 1 ) [2025-01-08 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:27:05' and `end` < '2025-01-08 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:27:18] Production.INFO: count ==519 [2025-01-08 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:27:05 - End Time 2025-01-08 23:27:05 [2025-01-08 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205592', 'tblTempUsageDetail_20' ) start [2025-01-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205592', 'tblTempUsageDetail_20' ) end [2025-01-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205592', 'tblTempVendorCDR_20' ) start [2025-01-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205592', 'tblTempVendorCDR_20' ) end [2025-01-08 23:27:18] Production.INFO: ProcessCDR(1,14205592,1,1,2) [2025-01-08 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205592', 'tblTempUsageDetail_20' ) start [2025-01-08 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205592', 'tblTempUsageDetail_20' ) end [2025-01-08 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:27:21] Production.INFO: ==28679== Releasing lock... [2025-01-08 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:28:05 [end_date_ymd] => 2025-01-08 23:28:05 [RateCDR] => 1 ) [2025-01-08 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:28:05' and `end` < '2025-01-08 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:28:18] Production.INFO: count ==519 [2025-01-08 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:28:05 - End Time 2025-01-08 23:28:05 [2025-01-08 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205597', 'tblTempUsageDetail_20' ) start [2025-01-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205597', 'tblTempUsageDetail_20' ) end [2025-01-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205597', 'tblTempVendorCDR_20' ) start [2025-01-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205597', 'tblTempVendorCDR_20' ) end [2025-01-08 23:28:18] Production.INFO: ProcessCDR(1,14205597,1,1,2) [2025-01-08 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205597', 'tblTempUsageDetail_20' ) start [2025-01-08 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205597', 'tblTempUsageDetail_20' ) end [2025-01-08 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:28:21] Production.INFO: ==28750== Releasing lock... [2025-01-08 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:29:05 [end_date_ymd] => 2025-01-08 23:29:05 [RateCDR] => 1 ) [2025-01-08 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:29:05' and `end` < '2025-01-08 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:29:19] Production.INFO: count ==518 [2025-01-08 23:29:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:29:05 - End Time 2025-01-08 23:29:05 [2025-01-08 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205602', 'tblTempUsageDetail_20' ) start [2025-01-08 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205602', 'tblTempUsageDetail_20' ) end [2025-01-08 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205602', 'tblTempVendorCDR_20' ) start [2025-01-08 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205602', 'tblTempVendorCDR_20' ) end [2025-01-08 23:29:19] Production.INFO: ProcessCDR(1,14205602,1,1,2) [2025-01-08 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205602', 'tblTempUsageDetail_20' ) start [2025-01-08 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205602', 'tblTempUsageDetail_20' ) end [2025-01-08 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:29:22] Production.INFO: ==28819== Releasing lock... [2025-01-08 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:29:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:30:06 [end_date_ymd] => 2025-01-08 23:30:06 [RateCDR] => 1 ) [2025-01-08 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:30:06' and `end` < '2025-01-08 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:30:19] Production.INFO: count ==523 [2025-01-08 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:30:06 - End Time 2025-01-08 23:30:06 [2025-01-08 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205608', 'tblTempUsageDetail_20' ) start [2025-01-08 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205608', 'tblTempUsageDetail_20' ) end [2025-01-08 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205608', 'tblTempVendorCDR_20' ) start [2025-01-08 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205608', 'tblTempVendorCDR_20' ) end [2025-01-08 23:30:19] Production.INFO: ProcessCDR(1,14205608,1,1,2) [2025-01-08 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205608', 'tblTempUsageDetail_20' ) start [2025-01-08 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205608', 'tblTempUsageDetail_20' ) end [2025-01-08 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:30:22] Production.INFO: ==28891== Releasing lock... [2025-01-08 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:31:04 [end_date_ymd] => 2025-01-08 23:31:04 [RateCDR] => 1 ) [2025-01-08 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:31:04' and `end` < '2025-01-08 23:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:31:17] Production.INFO: count ==511 [2025-01-08 23:31:17] Production.ERROR: pbx CDR StartTime 2025-01-08 20:31:04 - End Time 2025-01-08 23:31:04 [2025-01-08 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205613', 'tblTempUsageDetail_20' ) start [2025-01-08 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205613', 'tblTempUsageDetail_20' ) end [2025-01-08 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205613', 'tblTempVendorCDR_20' ) start [2025-01-08 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205613', 'tblTempVendorCDR_20' ) end [2025-01-08 23:31:17] Production.INFO: ProcessCDR(1,14205613,1,1,2) [2025-01-08 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205613', 'tblTempUsageDetail_20' ) start [2025-01-08 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205613', 'tblTempUsageDetail_20' ) end [2025-01-08 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:31:21] Production.INFO: ==29004== Releasing lock... [2025-01-08 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:32:05 [end_date_ymd] => 2025-01-08 23:32:05 [RateCDR] => 1 ) [2025-01-08 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:32:05' and `end` < '2025-01-08 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:32:20] Production.INFO: count ==510 [2025-01-08 23:32:20] Production.ERROR: pbx CDR StartTime 2025-01-08 20:32:05 - End Time 2025-01-08 23:32:05 [2025-01-08 23:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205618', 'tblTempUsageDetail_20' ) start [2025-01-08 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205618', 'tblTempUsageDetail_20' ) end [2025-01-08 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205618', 'tblTempVendorCDR_20' ) start [2025-01-08 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205618', 'tblTempVendorCDR_20' ) end [2025-01-08 23:32:20] Production.INFO: ProcessCDR(1,14205618,1,1,2) [2025-01-08 23:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205618', 'tblTempUsageDetail_20' ) start [2025-01-08 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205618', 'tblTempUsageDetail_20' ) end [2025-01-08 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:32:23] Production.INFO: ==29074== Releasing lock... [2025-01-08 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:32:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:33:04 [end_date_ymd] => 2025-01-08 23:33:04 [RateCDR] => 1 ) [2025-01-08 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:33:04' and `end` < '2025-01-08 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:33:20] Production.INFO: count ==509 [2025-01-08 23:33:20] Production.ERROR: pbx CDR StartTime 2025-01-08 20:33:04 - End Time 2025-01-08 23:33:04 [2025-01-08 23:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205623', 'tblTempUsageDetail_20' ) start [2025-01-08 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205623', 'tblTempUsageDetail_20' ) end [2025-01-08 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205623', 'tblTempVendorCDR_20' ) start [2025-01-08 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205623', 'tblTempVendorCDR_20' ) end [2025-01-08 23:33:20] Production.INFO: ProcessCDR(1,14205623,1,1,2) [2025-01-08 23:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205623', 'tblTempUsageDetail_20' ) start [2025-01-08 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205623', 'tblTempUsageDetail_20' ) end [2025-01-08 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:33:23] Production.INFO: ==29147== Releasing lock... [2025-01-08 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:33:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:34:05 [end_date_ymd] => 2025-01-08 23:34:05 [RateCDR] => 1 ) [2025-01-08 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:34:05' and `end` < '2025-01-08 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:34:18] Production.INFO: count ==510 [2025-01-08 23:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:34:05 - End Time 2025-01-08 23:34:05 [2025-01-08 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205628', 'tblTempUsageDetail_20' ) start [2025-01-08 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205628', 'tblTempUsageDetail_20' ) end [2025-01-08 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205628', 'tblTempVendorCDR_20' ) start [2025-01-08 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205628', 'tblTempVendorCDR_20' ) end [2025-01-08 23:34:18] Production.INFO: ProcessCDR(1,14205628,1,1,2) [2025-01-08 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205628', 'tblTempUsageDetail_20' ) start [2025-01-08 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205628', 'tblTempUsageDetail_20' ) end [2025-01-08 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:34:22] Production.INFO: ==29220== Releasing lock... [2025-01-08 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:35:04 [end_date_ymd] => 2025-01-08 23:35:04 [RateCDR] => 1 ) [2025-01-08 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:35:04' and `end` < '2025-01-08 23:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:35:17] Production.INFO: count ==502 [2025-01-08 23:35:17] Production.ERROR: pbx CDR StartTime 2025-01-08 20:35:04 - End Time 2025-01-08 23:35:04 [2025-01-08 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205633', 'tblTempUsageDetail_20' ) start [2025-01-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205633', 'tblTempUsageDetail_20' ) end [2025-01-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205633', 'tblTempVendorCDR_20' ) start [2025-01-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205633', 'tblTempVendorCDR_20' ) end [2025-01-08 23:35:17] Production.INFO: ProcessCDR(1,14205633,1,1,2) [2025-01-08 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205633', 'tblTempUsageDetail_20' ) start [2025-01-08 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205633', 'tblTempUsageDetail_20' ) end [2025-01-08 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:35:21] Production.INFO: ==29294== Releasing lock... [2025-01-08 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:35:21] Production.INFO: 31 MB #Memory Used# [2025-01-08 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:36:05 [end_date_ymd] => 2025-01-08 23:36:05 [RateCDR] => 1 ) [2025-01-08 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:36:05' and `end` < '2025-01-08 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:36:18] Production.INFO: count ==505 [2025-01-08 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:36:05 - End Time 2025-01-08 23:36:05 [2025-01-08 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205638', 'tblTempUsageDetail_20' ) start [2025-01-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205638', 'tblTempUsageDetail_20' ) end [2025-01-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205638', 'tblTempVendorCDR_20' ) start [2025-01-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205638', 'tblTempVendorCDR_20' ) end [2025-01-08 23:36:18] Production.INFO: ProcessCDR(1,14205638,1,1,2) [2025-01-08 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205638', 'tblTempUsageDetail_20' ) start [2025-01-08 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205638', 'tblTempUsageDetail_20' ) end [2025-01-08 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:36:22] Production.INFO: ==29363== Releasing lock... [2025-01-08 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:36:22] Production.INFO: 31 MB #Memory Used# [2025-01-08 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:37:04 [end_date_ymd] => 2025-01-08 23:37:04 [RateCDR] => 1 ) [2025-01-08 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:37:04' and `end` < '2025-01-08 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:37:17] Production.INFO: count ==510 [2025-01-08 23:37:17] Production.ERROR: pbx CDR StartTime 2025-01-08 20:37:04 - End Time 2025-01-08 23:37:04 [2025-01-08 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205643', 'tblTempUsageDetail_20' ) start [2025-01-08 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205643', 'tblTempUsageDetail_20' ) end [2025-01-08 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205643', 'tblTempVendorCDR_20' ) start [2025-01-08 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205643', 'tblTempVendorCDR_20' ) end [2025-01-08 23:37:17] Production.INFO: ProcessCDR(1,14205643,1,1,2) [2025-01-08 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205643', 'tblTempUsageDetail_20' ) start [2025-01-08 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205643', 'tblTempUsageDetail_20' ) end [2025-01-08 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:37:21] Production.INFO: ==29432== Releasing lock... [2025-01-08 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:38:05 [end_date_ymd] => 2025-01-08 23:38:05 [RateCDR] => 1 ) [2025-01-08 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:38:05' and `end` < '2025-01-08 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:38:18] Production.INFO: count ==510 [2025-01-08 23:38:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:38:05 - End Time 2025-01-08 23:38:05 [2025-01-08 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205648', 'tblTempUsageDetail_20' ) start [2025-01-08 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205648', 'tblTempUsageDetail_20' ) end [2025-01-08 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205648', 'tblTempVendorCDR_20' ) start [2025-01-08 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205648', 'tblTempVendorCDR_20' ) end [2025-01-08 23:38:18] Production.INFO: ProcessCDR(1,14205648,1,1,2) [2025-01-08 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205648', 'tblTempUsageDetail_20' ) start [2025-01-08 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205648', 'tblTempUsageDetail_20' ) end [2025-01-08 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:38:21] Production.INFO: ==29503== Releasing lock... [2025-01-08 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:39:05 [end_date_ymd] => 2025-01-08 23:39:05 [RateCDR] => 1 ) [2025-01-08 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:39:05' and `end` < '2025-01-08 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:39:19] Production.INFO: count ==510 [2025-01-08 23:39:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:39:05 - End Time 2025-01-08 23:39:05 [2025-01-08 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205653', 'tblTempUsageDetail_20' ) start [2025-01-08 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205653', 'tblTempUsageDetail_20' ) end [2025-01-08 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205653', 'tblTempVendorCDR_20' ) start [2025-01-08 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205653', 'tblTempVendorCDR_20' ) end [2025-01-08 23:39:19] Production.INFO: ProcessCDR(1,14205653,1,1,2) [2025-01-08 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205653', 'tblTempUsageDetail_20' ) start [2025-01-08 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205653', 'tblTempUsageDetail_20' ) end [2025-01-08 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:39:22] Production.INFO: ==29576== Releasing lock... [2025-01-08 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:40:06 [end_date_ymd] => 2025-01-08 23:40:06 [RateCDR] => 1 ) [2025-01-08 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:40:06' and `end` < '2025-01-08 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:40:19] Production.INFO: count ==510 [2025-01-08 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:40:06 - End Time 2025-01-08 23:40:06 [2025-01-08 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205659', 'tblTempUsageDetail_20' ) start [2025-01-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205659', 'tblTempUsageDetail_20' ) end [2025-01-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205659', 'tblTempVendorCDR_20' ) start [2025-01-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205659', 'tblTempVendorCDR_20' ) end [2025-01-08 23:40:19] Production.INFO: ProcessCDR(1,14205659,1,1,2) [2025-01-08 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205659', 'tblTempUsageDetail_20' ) start [2025-01-08 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205659', 'tblTempUsageDetail_20' ) end [2025-01-08 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:40:22] Production.INFO: ==29650== Releasing lock... [2025-01-08 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:40:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:41:04 [end_date_ymd] => 2025-01-08 23:41:04 [RateCDR] => 1 ) [2025-01-08 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:41:04' and `end` < '2025-01-08 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:41:17] Production.INFO: count ==523 [2025-01-08 23:41:17] Production.ERROR: pbx CDR StartTime 2025-01-08 20:41:04 - End Time 2025-01-08 23:41:04 [2025-01-08 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205664', 'tblTempUsageDetail_20' ) start [2025-01-08 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205664', 'tblTempUsageDetail_20' ) end [2025-01-08 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205664', 'tblTempVendorCDR_20' ) start [2025-01-08 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205664', 'tblTempVendorCDR_20' ) end [2025-01-08 23:41:17] Production.INFO: ProcessCDR(1,14205664,1,1,2) [2025-01-08 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205664', 'tblTempUsageDetail_20' ) start [2025-01-08 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205664', 'tblTempUsageDetail_20' ) end [2025-01-08 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:41:20] Production.INFO: ==29722== Releasing lock... [2025-01-08 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:41:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:42:05 [end_date_ymd] => 2025-01-08 23:42:05 [RateCDR] => 1 ) [2025-01-08 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:42:05' and `end` < '2025-01-08 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:42:20] Production.INFO: count ==527 [2025-01-08 23:42:20] Production.ERROR: pbx CDR StartTime 2025-01-08 20:42:05 - End Time 2025-01-08 23:42:05 [2025-01-08 23:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205669', 'tblTempUsageDetail_20' ) start [2025-01-08 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205669', 'tblTempUsageDetail_20' ) end [2025-01-08 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205669', 'tblTempVendorCDR_20' ) start [2025-01-08 23:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205669', 'tblTempVendorCDR_20' ) end [2025-01-08 23:42:20] Production.INFO: ProcessCDR(1,14205669,1,1,2) [2025-01-08 23:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205669', 'tblTempUsageDetail_20' ) start [2025-01-08 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205669', 'tblTempUsageDetail_20' ) end [2025-01-08 23:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:42:23] Production.INFO: ==29793== Releasing lock... [2025-01-08 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:42:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:43:05 [end_date_ymd] => 2025-01-08 23:43:05 [RateCDR] => 1 ) [2025-01-08 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:43:05' and `end` < '2025-01-08 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:43:18] Production.INFO: count ==526 [2025-01-08 23:43:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:43:05 - End Time 2025-01-08 23:43:05 [2025-01-08 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205674', 'tblTempUsageDetail_20' ) start [2025-01-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205674', 'tblTempUsageDetail_20' ) end [2025-01-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205674', 'tblTempVendorCDR_20' ) start [2025-01-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205674', 'tblTempVendorCDR_20' ) end [2025-01-08 23:43:18] Production.INFO: ProcessCDR(1,14205674,1,1,2) [2025-01-08 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205674', 'tblTempUsageDetail_20' ) start [2025-01-08 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205674', 'tblTempUsageDetail_20' ) end [2025-01-08 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:43:21] Production.INFO: ==29865== Releasing lock... [2025-01-08 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:44:05 [end_date_ymd] => 2025-01-08 23:44:05 [RateCDR] => 1 ) [2025-01-08 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:44:05' and `end` < '2025-01-08 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:44:18] Production.INFO: count ==528 [2025-01-08 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:44:05 - End Time 2025-01-08 23:44:05 [2025-01-08 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205679', 'tblTempUsageDetail_20' ) start [2025-01-08 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205679', 'tblTempUsageDetail_20' ) end [2025-01-08 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205679', 'tblTempVendorCDR_20' ) start [2025-01-08 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205679', 'tblTempVendorCDR_20' ) end [2025-01-08 23:44:18] Production.INFO: ProcessCDR(1,14205679,1,1,2) [2025-01-08 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205679', 'tblTempUsageDetail_20' ) start [2025-01-08 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205679', 'tblTempUsageDetail_20' ) end [2025-01-08 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:44:22] Production.INFO: ==29936== Releasing lock... [2025-01-08 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:44:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:45:05 [end_date_ymd] => 2025-01-08 23:45:05 [RateCDR] => 1 ) [2025-01-08 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:45:05' and `end` < '2025-01-08 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:45:18] Production.INFO: count ==526 [2025-01-08 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:45:05 - End Time 2025-01-08 23:45:05 [2025-01-08 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205684', 'tblTempUsageDetail_20' ) start [2025-01-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205684', 'tblTempUsageDetail_20' ) end [2025-01-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205684', 'tblTempVendorCDR_20' ) start [2025-01-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205684', 'tblTempVendorCDR_20' ) end [2025-01-08 23:45:18] Production.INFO: ProcessCDR(1,14205684,1,1,2) [2025-01-08 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205684', 'tblTempUsageDetail_20' ) start [2025-01-08 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205684', 'tblTempUsageDetail_20' ) end [2025-01-08 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:45:21] Production.INFO: ==30007== Releasing lock... [2025-01-08 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:45:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:46:04 [end_date_ymd] => 2025-01-08 23:46:04 [RateCDR] => 1 ) [2025-01-08 23:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:46:04' and `end` < '2025-01-08 23:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:46:17] Production.INFO: count ==524 [2025-01-08 23:46:17] Production.ERROR: pbx CDR StartTime 2025-01-08 20:46:04 - End Time 2025-01-08 23:46:04 [2025-01-08 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205689', 'tblTempUsageDetail_20' ) start [2025-01-08 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205689', 'tblTempUsageDetail_20' ) end [2025-01-08 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205689', 'tblTempVendorCDR_20' ) start [2025-01-08 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205689', 'tblTempVendorCDR_20' ) end [2025-01-08 23:46:17] Production.INFO: ProcessCDR(1,14205689,1,1,2) [2025-01-08 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205689', 'tblTempUsageDetail_20' ) start [2025-01-08 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205689', 'tblTempUsageDetail_20' ) end [2025-01-08 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:46:22] Production.INFO: ==30115== Releasing lock... [2025-01-08 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:46:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:47:05 [end_date_ymd] => 2025-01-08 23:47:05 [RateCDR] => 1 ) [2025-01-08 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:47:05' and `end` < '2025-01-08 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:47:19] Production.INFO: count ==518 [2025-01-08 23:47:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:47:05 - End Time 2025-01-08 23:47:05 [2025-01-08 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205694', 'tblTempUsageDetail_20' ) start [2025-01-08 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205694', 'tblTempUsageDetail_20' ) end [2025-01-08 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205694', 'tblTempVendorCDR_20' ) start [2025-01-08 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205694', 'tblTempVendorCDR_20' ) end [2025-01-08 23:47:19] Production.INFO: ProcessCDR(1,14205694,1,1,2) [2025-01-08 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205694', 'tblTempUsageDetail_20' ) start [2025-01-08 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205694', 'tblTempUsageDetail_20' ) end [2025-01-08 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:47:22] Production.INFO: ==30187== Releasing lock... [2025-01-08 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:47:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:48:04 [end_date_ymd] => 2025-01-08 23:48:04 [RateCDR] => 1 ) [2025-01-08 23:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:48:04' and `end` < '2025-01-08 23:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:48:17] Production.INFO: count ==517 [2025-01-08 23:48:17] Production.ERROR: pbx CDR StartTime 2025-01-08 20:48:04 - End Time 2025-01-08 23:48:04 [2025-01-08 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205699', 'tblTempUsageDetail_20' ) start [2025-01-08 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205699', 'tblTempUsageDetail_20' ) end [2025-01-08 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205699', 'tblTempVendorCDR_20' ) start [2025-01-08 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205699', 'tblTempVendorCDR_20' ) end [2025-01-08 23:48:17] Production.INFO: ProcessCDR(1,14205699,1,1,2) [2025-01-08 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205699', 'tblTempUsageDetail_20' ) start [2025-01-08 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205699', 'tblTempUsageDetail_20' ) end [2025-01-08 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:48:20] Production.INFO: ==30258== Releasing lock... [2025-01-08 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:48:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:49:05 [end_date_ymd] => 2025-01-08 23:49:05 [RateCDR] => 1 ) [2025-01-08 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:49:05' and `end` < '2025-01-08 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:49:19] Production.INFO: count ==517 [2025-01-08 23:49:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:49:05 - End Time 2025-01-08 23:49:05 [2025-01-08 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205704', 'tblTempUsageDetail_20' ) start [2025-01-08 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205704', 'tblTempUsageDetail_20' ) end [2025-01-08 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205704', 'tblTempVendorCDR_20' ) start [2025-01-08 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205704', 'tblTempVendorCDR_20' ) end [2025-01-08 23:49:19] Production.INFO: ProcessCDR(1,14205704,1,1,2) [2025-01-08 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205704', 'tblTempUsageDetail_20' ) start [2025-01-08 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205704', 'tblTempUsageDetail_20' ) end [2025-01-08 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:49:22] Production.INFO: ==30332== Releasing lock... [2025-01-08 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:50:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:50:04 [end_date_ymd] => 2025-01-08 23:50:04 [RateCDR] => 1 ) [2025-01-08 23:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:50:04' and `end` < '2025-01-08 23:50:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:50:19] Production.INFO: count ==521 [2025-01-08 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:50:04 - End Time 2025-01-08 23:50:04 [2025-01-08 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205709', 'tblTempUsageDetail_20' ) start [2025-01-08 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205709', 'tblTempUsageDetail_20' ) end [2025-01-08 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205709', 'tblTempVendorCDR_20' ) start [2025-01-08 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205709', 'tblTempVendorCDR_20' ) end [2025-01-08 23:50:19] Production.INFO: ProcessCDR(1,14205709,1,1,2) [2025-01-08 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205709', 'tblTempUsageDetail_20' ) start [2025-01-08 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205709', 'tblTempUsageDetail_20' ) end [2025-01-08 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:50:22] Production.INFO: ==30404== Releasing lock... [2025-01-08 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:51:04 [end_date_ymd] => 2025-01-08 23:51:04 [RateCDR] => 1 ) [2025-01-08 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:51:04' and `end` < '2025-01-08 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:51:20] Production.INFO: count ==523 [2025-01-08 23:51:20] Production.ERROR: pbx CDR StartTime 2025-01-08 20:51:04 - End Time 2025-01-08 23:51:04 [2025-01-08 23:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205715', 'tblTempUsageDetail_20' ) start [2025-01-08 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205715', 'tblTempUsageDetail_20' ) end [2025-01-08 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205715', 'tblTempVendorCDR_20' ) start [2025-01-08 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205715', 'tblTempVendorCDR_20' ) end [2025-01-08 23:51:20] Production.INFO: ProcessCDR(1,14205715,1,1,2) [2025-01-08 23:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205715', 'tblTempUsageDetail_20' ) start [2025-01-08 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205715', 'tblTempUsageDetail_20' ) end [2025-01-08 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:51:23] Production.INFO: ==30478== Releasing lock... [2025-01-08 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:51:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:52:05 [end_date_ymd] => 2025-01-08 23:52:05 [RateCDR] => 1 ) [2025-01-08 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:52:05' and `end` < '2025-01-08 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:52:18] Production.INFO: count ==521 [2025-01-08 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:52:05 - End Time 2025-01-08 23:52:05 [2025-01-08 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205720', 'tblTempUsageDetail_20' ) start [2025-01-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205720', 'tblTempUsageDetail_20' ) end [2025-01-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205720', 'tblTempVendorCDR_20' ) start [2025-01-08 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205720', 'tblTempVendorCDR_20' ) end [2025-01-08 23:52:18] Production.INFO: ProcessCDR(1,14205720,1,1,2) [2025-01-08 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205720', 'tblTempUsageDetail_20' ) start [2025-01-08 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205720', 'tblTempUsageDetail_20' ) end [2025-01-08 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:52:21] Production.INFO: ==30552== Releasing lock... [2025-01-08 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:53:05 [end_date_ymd] => 2025-01-08 23:53:05 [RateCDR] => 1 ) [2025-01-08 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:53:05' and `end` < '2025-01-08 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:53:18] Production.INFO: count ==521 [2025-01-08 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:53:05 - End Time 2025-01-08 23:53:05 [2025-01-08 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205725', 'tblTempUsageDetail_20' ) start [2025-01-08 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205725', 'tblTempUsageDetail_20' ) end [2025-01-08 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205725', 'tblTempVendorCDR_20' ) start [2025-01-08 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205725', 'tblTempVendorCDR_20' ) end [2025-01-08 23:53:18] Production.INFO: ProcessCDR(1,14205725,1,1,2) [2025-01-08 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205725', 'tblTempUsageDetail_20' ) start [2025-01-08 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205725', 'tblTempUsageDetail_20' ) end [2025-01-08 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:53:22] Production.INFO: ==30620== Releasing lock... [2025-01-08 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:53:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:54:05 [end_date_ymd] => 2025-01-08 23:54:05 [RateCDR] => 1 ) [2025-01-08 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:54:05' and `end` < '2025-01-08 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:54:18] Production.INFO: count ==521 [2025-01-08 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:54:05 - End Time 2025-01-08 23:54:05 [2025-01-08 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205730', 'tblTempUsageDetail_20' ) start [2025-01-08 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205730', 'tblTempUsageDetail_20' ) end [2025-01-08 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205730', 'tblTempVendorCDR_20' ) start [2025-01-08 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205730', 'tblTempVendorCDR_20' ) end [2025-01-08 23:54:18] Production.INFO: ProcessCDR(1,14205730,1,1,2) [2025-01-08 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205730', 'tblTempUsageDetail_20' ) start [2025-01-08 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205730', 'tblTempUsageDetail_20' ) end [2025-01-08 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:54:21] Production.INFO: ==30692== Releasing lock... [2025-01-08 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:55:05 [end_date_ymd] => 2025-01-08 23:55:05 [RateCDR] => 1 ) [2025-01-08 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:55:05' and `end` < '2025-01-08 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:55:18] Production.INFO: count ==521 [2025-01-08 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 20:55:05 - End Time 2025-01-08 23:55:05 [2025-01-08 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205735', 'tblTempUsageDetail_20' ) start [2025-01-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205735', 'tblTempUsageDetail_20' ) end [2025-01-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205735', 'tblTempVendorCDR_20' ) start [2025-01-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205735', 'tblTempVendorCDR_20' ) end [2025-01-08 23:55:18] Production.INFO: ProcessCDR(1,14205735,1,1,2) [2025-01-08 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205735', 'tblTempUsageDetail_20' ) start [2025-01-08 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205735', 'tblTempUsageDetail_20' ) end [2025-01-08 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:55:21] Production.INFO: ==30765== Releasing lock... [2025-01-08 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:55:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:56:05 [end_date_ymd] => 2025-01-08 23:56:05 [RateCDR] => 1 ) [2025-01-08 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:56:05' and `end` < '2025-01-08 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:56:19] Production.INFO: count ==520 [2025-01-08 23:56:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:56:05 - End Time 2025-01-08 23:56:05 [2025-01-08 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205740', 'tblTempUsageDetail_20' ) start [2025-01-08 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205740', 'tblTempUsageDetail_20' ) end [2025-01-08 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205740', 'tblTempVendorCDR_20' ) start [2025-01-08 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205740', 'tblTempVendorCDR_20' ) end [2025-01-08 23:56:19] Production.INFO: ProcessCDR(1,14205740,1,1,2) [2025-01-08 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205740', 'tblTempUsageDetail_20' ) start [2025-01-08 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205740', 'tblTempUsageDetail_20' ) end [2025-01-08 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:56:22] Production.INFO: ==30837== Releasing lock... [2025-01-08 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:56:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:57:05 [end_date_ymd] => 2025-01-08 23:57:05 [RateCDR] => 1 ) [2025-01-08 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:57:05' and `end` < '2025-01-08 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:57:20] Production.INFO: count ==518 [2025-01-08 23:57:20] Production.ERROR: pbx CDR StartTime 2025-01-08 20:57:05 - End Time 2025-01-08 23:57:05 [2025-01-08 23:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205745', 'tblTempUsageDetail_20' ) start [2025-01-08 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205745', 'tblTempUsageDetail_20' ) end [2025-01-08 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205745', 'tblTempVendorCDR_20' ) start [2025-01-08 23:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205745', 'tblTempVendorCDR_20' ) end [2025-01-08 23:57:20] Production.INFO: ProcessCDR(1,14205745,1,1,2) [2025-01-08 23:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205745', 'tblTempUsageDetail_20' ) start [2025-01-08 23:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205745', 'tblTempUsageDetail_20' ) end [2025-01-08 23:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:57:24] Production.INFO: ==30909== Releasing lock... [2025-01-08 23:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:57:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:58:05 [end_date_ymd] => 2025-01-08 23:58:05 [RateCDR] => 1 ) [2025-01-08 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:58:05' and `end` < '2025-01-08 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:58:19] Production.INFO: count ==518 [2025-01-08 23:58:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:58:05 - End Time 2025-01-08 23:58:05 [2025-01-08 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205750', 'tblTempUsageDetail_20' ) start [2025-01-08 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205750', 'tblTempUsageDetail_20' ) end [2025-01-08 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205750', 'tblTempVendorCDR_20' ) start [2025-01-08 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205750', 'tblTempVendorCDR_20' ) end [2025-01-08 23:58:19] Production.INFO: ProcessCDR(1,14205750,1,1,2) [2025-01-08 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205750', 'tblTempUsageDetail_20' ) start [2025-01-08 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205750', 'tblTempUsageDetail_20' ) end [2025-01-08 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:58:22] Production.INFO: ==30980== Releasing lock... [2025-01-08 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:58:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-08 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 20:59:05 [end_date_ymd] => 2025-01-08 23:59:05 [RateCDR] => 1 ) [2025-01-08 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 20:59:05' and `end` < '2025-01-08 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-08 23:59:19] Production.INFO: count ==518 [2025-01-08 23:59:19] Production.ERROR: pbx CDR StartTime 2025-01-08 20:59:05 - End Time 2025-01-08 23:59:05 [2025-01-08 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-08 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205755', 'tblTempUsageDetail_20' ) start [2025-01-08 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205755', 'tblTempUsageDetail_20' ) end [2025-01-08 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205755', 'tblTempVendorCDR_20' ) start [2025-01-08 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205755', 'tblTempVendorCDR_20' ) end [2025-01-08 23:59:19] Production.INFO: ProcessCDR(1,14205755,1,1,2) [2025-01-08 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-08 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-08 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205755', 'tblTempUsageDetail_20' ) start [2025-01-08 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205755', 'tblTempUsageDetail_20' ) end [2025-01-08 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-08 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-08 23:59:22] Production.INFO: ==31050== Releasing lock... [2025-01-08 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-08 23:59:22] Production.INFO: 31.25 MB #Memory Used#